minicrossterm/examples/program_examples
Timon 1a60924abd
Command API experiment (#175)
- Command API to introduce easier usability, better performance, and more control over to which buffer to write, and when to flush the buffer to the terminal.
2019-07-24 20:10:27 +02:00
..
first_depth_search Command API experiment (#175) 2019-07-24 20:10:27 +02:00
snake Command API experiment (#175) 2019-07-24 20:10:27 +02:00
command_bar.rs Refactor and API stabilization (#115) 2019-04-10 23:46:30 +02:00
README.md Documentation fixes (#156) 2019-06-21 18:10:46 +02:00

This folder will contain some examples of how to use this crate in a 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 a 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 a queue. To run this use cargo run --example logging