Examples cleanup (#196)

This commit is contained in:
Zrzka 2019-09-05 16:14:33 +02:00 committed by Timon
parent 68346699e1
commit b1daeccab0
4 changed files with 12 additions and 14 deletions

View File

@ -31,6 +31,10 @@ members = [
"crossterm_screen"
]
exclude = [
"examples/program_examples"
]
[dependencies]
crossterm_screen = { optional = true, path = "./crossterm_screen", version = "0.2.4" }
crossterm_cursor = { optional = true, path = "./crossterm_cursor", version = "0.2.5" }

View File

@ -3,10 +3,12 @@ This folder contains examples for version 0.3.0 Here you will find examples of a
- `color`: this is about the styling of the terminal
- `cursor`: this is about the actions you can perform with the cursor
- `terminal`: this is about the actions you can perform on the terminal
- `input`: this is about input reading.
- `input`: this is about input reading
- `key_events`: this is about reading key events
- `crossterm`: this is about the struct `Crossterm`
- `alternate_screen`: this is about switching to an alternate screen buffer
- `raw_screen`; this is about enabling raw screen
- `command`: this is about to the command api.
- `program examples`:this folder will contain some real life examples
- `raw_screen`: this is about enabling raw screen
- `command`: this is about to the command api
- `program examples`: this folder will contain some real life examples
- `command_bar`: this is a terminal application where multiple threads write to the output while you can enter
commands asynchronously

View File

@ -1,7 +1,8 @@
extern crate crossterm;
use crossterm::{
input, cursor, terminal, ClearType, Crossterm, InputEvent, KeyEvent, AlternateScreen, RawScreen, Terminal, TerminalCursor
cursor, input, terminal, AlternateScreen, ClearType, Crossterm, InputEvent, KeyEvent,
RawScreen, Terminal, TerminalCursor,
};
use std::sync::{Arc, Mutex};

View File

@ -13,12 +13,3 @@ The programs are:
This is a snake game implemented with this library.
To run this use `cargo run` in the directory of snake.
- Command Bar:
This is a terminal application where multiple threads write to the output while you can enter commands asynchronously.
To run this use `cargo run --example command_bar`
- Logging:
This is an async logging program to demonstrate asynchronous logging with a queue.
To run this use `cargo run --example logging`