Timon
f068ae69b1
Cleanup ( #45 )
...
* Removed lots of Clippy warnings and `ran cargo fmt`
2018-11-21 17:48:22 +01:00
Timon
8ac61db3c1
Merge pull request #44 from TimonPost/screen_refactor
...
Putted `Screen` behind an `Option`. Now when you call the functions: color, cursor, terminal, input you won't need to provide a screen for it 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();
```
which looks much better too.
2018-11-21 14:57:18 +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
3dfa98cba3
Increased version number to 0.4.3
2018-11-14 15:16:09 +01:00
Timon
ad8b75f448
Fixed bug flush_buf(). ( #42 )
...
* Fixed bug flush_buf() issue 42.
2018-11-14 15:13:58 +01: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
Timon
4f92c0c24f
Update README.md
2018-09-22 23:05:18 +02:00
Timon
af20e3d605
Update ReleaseNotes.md
2018-09-22 23:03:11 +02:00
TimonPost
1d99c9774a
increased version number
2018-09-22 22:56:16 +02:00
TimonPost
850c2156d3
readme file edits
2018-09-22 22:55:30 +02:00
=
5dcc6387f1
added unittests, fixed getting terminal position and tested code
2018-09-22 22:42:23 +02:00
=
61778a23a6
added unittests, fixed getting terminal position and tested code
2018-09-22 22:42:11 +02:00
TimonPost
a2bb9ecff5
added tests
2018-09-21 22:22:25 +02:00
TimonPost
9bda408e43
Merge branch 'master' into development
2018-09-21 21:36:31 +02:00
TimonPost
a9f47ecebc
added tests and method to convert styledobject into displayableobject
2018-09-21 21:36:25 +02:00
TimonPost
3d7748ba3d
added tests and method to convert styledobject into displayableobject
2018-09-21 21:36:03 +02:00
TimonPost
a92274c028
added displaying functionality of StyledObject
2018-09-20 22:24:10 +02:00
TimonPost
e0b0e232ea
function was not good alligned and removed as_any() and as_any_mut() from output
2018-09-16 12:40:02 +02:00
Eliza Weisman
0eba0e2056
Attempt to make AnsiOutput
play nicer with write!
2018-09-16 11:50:32 +02:00
TimonPost
4d60ac91b3
updated docs
2018-08-29 22:28:59 +02:00
Timon
0578e940bf
Update Cargo.toml
2018-08-29 22:19:10 +02:00
Timon
13e68b4ed0
Update README.md
2018-08-29 22:17:31 +02:00
Timon
e8e8e6242d
Update README.md
2018-08-29 22:15:22 +02:00
TimonPost
f2581c39c0
Merge branch 'development' of https://github.com/TimonPost/crossterm into development
2018-08-29 22:13:11 +02:00
iCiaran
7afc96fecf
Switch width and height
2018-08-29 21:51:50 +02:00
TimonPost
830eec7cc7
Merge branch 'master' of https://github.com/TimonPost/crossterm
2018-08-25 12:45:26 +02:00
TimonPost
21843bc8ce
removed import
2018-08-25 12:44:44 +02:00
Timon
05f287bb64
Update README.md
2018-08-25 12:09:01 +02:00
TimonPost
410009dc46
updated doc
2018-08-25 12:00:39 +02:00
TimonPost
26060a56eb
merge
2018-08-25 11:32:27 +02:00
TimonPost
c40cdb0774
rounding up
2018-08-25 11:24:51 +02:00
TimonPost
5777eaab1d
chagnes
2018-08-25 11:04:42 +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
TimonPost
308cc743d1
fix
2018-08-24 18:48:25 +02:00
=
a0cf8907a5
changed mut third try ....
2018-08-24 18:37:34 +02:00
=
9da3cb82d2
mut change
2018-08-24 18:35:13 +02:00
=
91b7cb775b
mut chagne
2018-08-24 18:32:48 +02:00
TimonPost
a98a13b7de
changes
2018-08-24 18:29:55 +02:00
TimonPost
c9c0a4efac
merge
2018-08-23 23:01:33 +02:00
TimonPost
ce15004975
added drop disable
2018-08-23 22:59:51 +02:00
=
b70996dcf4
fix
2018-08-23 22:20:11 +02:00
=
f1959589c8
some fixes
2018-08-23 22:16:31 +02:00
=
7f05f6e8a7
some fixes
2018-08-23 22:15:58 +02:00
=
99fffee6b3
fixed raw mode
2018-08-23 18:15:18 +02:00
TimonPost
cc55c190d8
Removed downcast for HANDLE WinAPi. Also we do not need to keep track of current HANDLE since this will now be gotton from CreateFileW
2018-08-22 19:58:30 +02:00
TimonPost
c848beb721
Added Sync markers
2018-08-21 21:17:53 +02:00
=
b98f549a73
changed enter check
2018-08-21 18:28:31 +02:00