From 93d64ae68b2ee271b3a8215c50925f492778e5ef Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Tue, 25 Jun 2024 22:21:48 +0200 Subject: Remove dependency on libc crate --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index b70679b..b456a05 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,22 @@ sudo install target/release/textgraph /usr/local/bin/textgraph sudo install textgraph.1 /usr/share/man/man1/textgraph.1 ``` +### Features + +By default `libc` and `ansi` is enabled. + +The `libc` feature makes the program able to get the terminal size, +and catch signals like SIGINT. +The last part is needed if you want the program to use the alternate screen +in filter-mode. +It does not currently use the `libc`-crate, but it does use c-functions. + +The `ansi` feature enables the use of ansi escape codes, +this is used for manipulating the terminal. +Like adding colors to the graph, +and switching back and fourth from the alternate screen +(this will only happen when `libc` also is enabled). + ## Example 1 Some examples of the different modes, from the same input file with random numbers ### Star mode -- cgit v1.2.3