Commit Graph

13 Commits

Author SHA1 Message Date
Timon
f068ae69b1
Cleanup (#45)
* Removed lots of Clippy warnings and `ran cargo fmt`
2018-11-21 17:48:22 +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
timon
61188e6353 removed in examples for unused variables 2018-10-07 17:16:35 +02:00
timon
cb08b6b984 clean up 2018-10-07 17:16:35 +02:00
=
29ae520ea8 Tested unix improved some exampels 2018-08-24 23:51:39 +02:00
TimonPost
ff41d4f244 fixed some bugs, checked documentation and incremented version number 2018-08-24 23:44:34 +02:00
TimonPost
9102108b3a changes 2018-08-24 18:49:25 +02:00
=
9da3cb82d2 mut change 2018-08-24 18:35:13 +02:00
=
f1959589c8 some fixes 2018-08-23 22:16:31 +02:00
=
99fffee6b3 fixed raw mode 2018-08-23 18:15:18 +02:00
=
b98f549a73 changed enter check 2018-08-21 18:28:31 +02:00
=
5b0a6dddaa bug fixe 2018-08-21 18:22:22 +02:00
TimonPost
a8de072a0a windows changes 2018-08-21 18:05:53 +02:00