File: README.md

package info (click to toggle)
rust-termimad 0.34.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,080 kB
  • sloc: sh: 2; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 551 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
This example demonstrates how to build

* a default skin
* a skin which would only use ASCII characters
* a skin which would not use ANSI escape codes
* a skin combining both properties

Run this example with

    cargo run --example high-compatibility

This adaptation to terminal capabilities is illustrated in [dysk](https://github.com/Canop/dysk):

![dysk](../../doc/dysk-nocolor-ascii.png)

Most applications should also automatically disable ANSI codes when the output isn't a tty (which happens for example when the output is piped to a file).