minicrossterm/examples
Timon Post b717d306c3 Putted Screen behind an Option. Now when you call the functions: color, cursor, terminal, input you won't need to provide a Screen anymore.
When you want to work with the 'alternate screen' you can call the following functions: terminal::from_screen etc. Which will give you an instance to the back of the module you are calling it in.

So instead of:

let color = color(Screen::default());
let cursor = cursor(Screen::default());
let input = input(Screen::default());
let terminal = terminal(Screen::default());

You can do:

let color = color();
let cursor = cursor();
let input = input();
let terminal = terminal();
2018-11-21 07:54:16 -08:00
..
color Putted Screen behind an Option. Now when you call the functions: color, cursor, terminal, input you won't need to provide a Screen anymore. 2018-11-21 07:54:16 -08:00
cursor Putted Screen behind an Option. Now when you call the functions: color, cursor, terminal, input you won't need to provide a Screen anymore. 2018-11-21 07:54:16 -08:00
input Putted Screen behind an Option. Now when you call the functions: color, cursor, terminal, input you won't need to provide a Screen anymore. 2018-11-21 07:54:16 -08:00
program_examples Putted Screen behind an Option. Now when you call the functions: color, cursor, terminal, input you won't need to provide a Screen anymore. 2018-11-21 07:54:16 -08:00
some_types Putted Screen behind an Option. Now when you call the functions: color, cursor, terminal, input you won't need to provide a Screen anymore. 2018-11-21 07:54:16 -08:00
terminal Putted Screen behind an Option. Now when you call the functions: color, cursor, terminal, input you won't need to provide a Screen anymore. 2018-11-21 07:54:16 -08:00
examples.rs Putted Screen behind an Option. Now when you call the functions: color, cursor, terminal, input you won't need to provide a Screen anymore. 2018-11-21 07:54:16 -08:00
README.md Tested all windows logic also fixed bug with resetting terminal color. 2018-08-12 14:51:08 +02:00

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)
  • crossterm_type (this is about the struct Crossterm)
  • program examples (this folder will contain some real life examples)