Commit Graph

14 Commits

Author SHA1 Message Date
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
Timon
f31bb1a656 Unix errors fixed and started with testing 2018-08-12 20:41:08 +00:00
TimonPost
23dc4f661e Tested all windows logic also fixed bug with resetting terminal color. 2018-08-12 14:51:08 +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
TimonPost
05ccd7cf04 created examples for each version 2018-06-09 21:56:59 +02:00
T
4c14ad836b Refactored namespaces. Added comments where needed. Alternatescreen is
working for windows 10 terminals. Refactored usings. Rearanged usings.
Raw Mode / alternate screeen windows yet to be tested. Added examples.
Refactored code
2018-03-10 17:33:06 +01:00
=
03bca7fe76 Resolve all errors unix. Now it is time to test 2018-03-05 22:06:43 +01:00
T
4212e728d5 Issue #3 and #4 are now solved, windows tested unix not yet 2018-01-30 21:20:11 +01:00
T
7a55a7be3d examples edited 2018-01-27 20:01:55 +01:00
Timon Post
6be5a41204 Added RGB and curstom ANSI value support, and tested resize terminal, safe and restore cursor position for unix terminals. And added options put attributes on font. 2018-01-27 18:26:08 +01:00
T
0df9ad1015 Added resizing terminal. Styling font with attributes for unix systems inplemented. Windows kernel refactored and cleared out some grammer mistakes. (Windows tested and unix jet to be tested). 2018-01-25 18:26:08 +01:00
Timon Post
6c4f39a0ce Crossterm works for unix now, refactored all comments and refactored code. Changed names, Making things ready for crossterm release 0.1 2018-01-17 23:06:45 +01:00
T
8b5d34c866 Created better documentation and formatted code 2018-01-09 20:36:48 +01:00