- 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
|
||
|---|---|---|
| .. | ||
| program_examples | ||
| alternate_screen.rs | ||
| crossterm.rs | ||
| cursor.rs | ||
| input.rs | ||
| key_events.rs | ||
| raw_mode.rs | ||
| README.md | ||
| style.rs | ||
| terminal.rs | ||
This folder contains examples for version 0.3.0 Here you will find examples of all the functionalities crossterm offers.
It has 4 modules:
- color (this is about all the styling of the terminal)
- cursor (this is about all the actions you can perform with the cursor)
- terminal (this is about all the actions you can perform on the terminal)
- input (this is about all input actions you can perform on with terminal)
- key_events (this is about reading occurred 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)
- program examples (this folder will contain some real life examples)