Commit Graph

7 Commits

Author SHA1 Message Date
Timon
ff9b5d9a39
Refactored winapi and moved code to (crossterm_winapi) (#67)
* Refactored winapi and moved some code to its own crate (crossterm_winapi).
2018-12-31 10:55:48 -08:00
Timon
b82736912d
Added the ability to pause the terminal (#47) 2018-11-21 22:57:39 +01:00
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
TimonPost
f7c6f36a46 Changed Crossterm type so that the user does not have to enter a reference to a Screen every function call and also updated the readme, docs,comments,examples 2018-08-14 21:40:07 +02:00
TimonPost
23dc4f661e Tested all windows logic also fixed bug with resetting terminal color. 2018-08-12 14:51:08 +02:00
TimonPost
e1bbf1689f some examples fixed added multy threaded logging example and tested input and changed styling system 2018-08-11 17:58:15 +02:00
Jojolepro
518dcadd15 Moved files around. Added duplex example (broken). Broke alternate screen trying to add compat. 2018-07-31 22:50:51 +02:00