File: README.md

package info (click to toggle)
rust-crossterm 0.28.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 828 kB
  • sloc: makefile: 2
file content (40 lines) | stat: -rw-r--r-- 1,489 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
![Lines of Code][s7] [![MIT][s2]][l2] [![Join us on Discord][s5]][l5]

# Crossterm Examples

The examples are compatible with the latest release.  

## Structure

```
├── examples
│   └── interactive-test
│   └── event-*
│   └── stderr
```
| File Name                   | Description                    | Topics                                    |
|:----------------------------|:-------------------------------|:------------------------------------------|
| `examples/interactive-test` | interactive, walk through, demo | cursor, style, event                      |
| `event-*`                   | event reading demos            | (async) event reading                     |
| `stderr`                    | crossterm over stderr demo     | raw mode, alternate screen, custom output |
| `is_tty`                    | Is this instance a tty ?       | tty                                       |

## Run examples

```bash
$ cargo run --example [file name]
```

To run the interactive-demo go into the folder `examples/interactive-demo` and run `cargo run`.

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details.

[s2]: https://img.shields.io/badge/license-MIT-blue.svg
[l2]: LICENSE

[s5]: https://img.shields.io/discord/560857607196377088.svg?logo=discord
[l5]: https://discord.gg/K4nyTDB

[s7]: https://travis-ci.org/crossterm-rs/examples.svg?branch=master