1e332daaed
- Major refactor and cleanup. - Improved performance; - No locking when writing to stdout. - UNIX doesn't have any dynamic dispatch anymore. - Windows has improved the way to check if ANSI modes are enabled. - Removed lot's of complex API calls: `from_screen`, `from_output` - Removed `Arc<TerminalOutput>` from all internal Api's. - Removed termios dependency for UNIX systems. - Upgraded deps. - Removed about 1000 lines of code - `TerminalOutput` - `Screen` - unsafe code - Some duplicated code introduced by a previous refactor. - Raw modes UNIX systems improved - Added `NoItalic` attribute |
||
---|---|---|
.. | ||
first_depth_search | ||
snake | ||
command_bar.rs | ||
README.md |
This folder will contain some examples of how to use this crate in an real live environment.
If you have created a game or something feel free to upload it, would be a great help for other people and me to make this crate better!
The programs are:
-
First depth search:
This is an search algorithm implemented visually. This program uses the following functionalities: cursor movement, coloring, alternate screen and terminal clearing. To run this use
cargo run
in the directory of first depth search. -
Snake
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 an queue. To run this use
cargo run --example logging