[−][src]Crate simpleterm
Simpleterm is a bespoke fake terminal created with piston_window.
It lets you create a window, send messages to it, grab input from the user, and display ascii art! You can also change the terminal's settings at any time, allowing you to create complicated scripts of actions.
Getting Started
- Run the example with "cargo run"
- Examine the example main.rs file and read up on the Terminal functions
- Write you own script in main.rs and try it out!
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Modules
art | Ascii art strings. |
draw | Draws rectangles and text on the terminal window. |
terminal | Creates and interacts with a terminal window. |
text | Contains functions related to text color and bounds. |
Constants
FLASH_TIME | How long should elements like "Press Enter to Continue" or the input cursor take before toggling their flash state. |
TEXT_OFFSET | Indicates the x and y offset of the text and surrounding box from the corners of the terminal window. |
TYPE_TIME | How long should the terminal take to type a single character when displaying a message. |