Console Engine
Note: Code review needed ! see this issue for more informations
This library provides simple features for handling user's input and display for terminal applications.
It uses Termion as main tool for handling the screen and inputs. You don't have to worry about initalizing anything because the lib will handle this for you.
Platforms
Works for Linux and possibly Mac (need confirmation).
Windows support will be available as soon as termion will support it See here for more info For now, you can change the cargo.toml termion dependency by this :
= { = "https://gitlab.redox-os.org/Jezza/termion", = "windows-support", = "termion"}
Note: window's input initialization requires the user to first press enter. ConsoleEngine will ask the user to press Enter while inializing.
example usage
use pixel;
use color;
use Key;
Documentation
Take a look at the generated documentation.
Examples
See examples :
- graph : Display a graph being generated with some values.
- snake : A simple game of snake.
- lines : Draw random lines of random colors on the screen.
- lines-fps : same example as lines, but with a FPS counter.
- shapes : Shape's functions testing tool
- mouse : Simple mouse clicking test
- drag-and-drop : Move a rectangle with your mouse