Commit Graph

151 Commits

Author SHA1 Message Date
Timon
ee782cc7a6
RGB and ANSI color for windows 10 suppport. (#51) 2018-11-25 05:46:08 -08:00
Timon
4d2fba2c0d
Doc updates and MdBook (#50)
* Updated readme and docs, and created an MdBook
2018-11-25 14:17:11 +01:00
Timon
b82736912d
Added the ability to pause the terminal (#47) 2018-11-21 22:57:39 +01:00
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
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
=
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
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
21843bc8ce removed import 2018-08-25 12:44:44 +02:00
TimonPost
410009dc46 updated doc 2018-08-25 12:00:39 +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
=
9da3cb82d2 mut change 2018-08-24 18:35:13 +02:00
=
91b7cb775b mut chagne 2018-08-24 18:32:48 +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
=
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
=
5b0a6dddaa bug fixe 2018-08-21 18:22:22 +02:00
TimonPost
a8de072a0a windows changes 2018-08-21 18:05:53 +02:00
TimonPost
685bc5e961 Refactor 2018-08-19 23:13:21 +02:00
TimonPost
81aa62b6ce maked stdout sync and send and tested it 2018-08-18 14:38:59 +02:00
TimonPost
18103fced3 changes 2018-08-18 12:54:06 +02:00
TimonPost
25bf065c09 Snake game example 2018-08-17 21:06:06 +02:00
TimonPost
4005634086 Overall commend improvement 2018-08-14 23:00:20 +02: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
=
d23ef22a58 Updated all examples and comments tested unix logic 2018-08-13 21:04: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
TimonPost
74ef83bb3f Quick fix logging example 2018-08-11 18:08:26 +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
TimonPost
f6b1955cae worked on some examples 2018-08-03 12:01:04 +02:00
TimonPost
14ecd33f11 merge fixes 2018-07-31 23:01:28 +02:00
TimonPost
5c5db7fdb0 started working on refactoring examples 2018-07-31 22:53: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
b3081fd9c0 added examples and changed comments 2018-07-29 21:30:09 +02:00
TimonPost
6970dfadd8 refactored all code and canged name spaces and moved code to other modules. 2018-07-28 19:26:35 +02:00
TimonPost
c7603fe79d removed git merge indicator 2018-07-28 10:17:25 +02:00
TimonPost
86a82a33cd fix merge confilict 2018-07-28 10:09:09 +02:00
TimonPost
26472359bc fixed input and cursor with new implementation 2018-07-27 22:28:30 +02:00
TimonPost
d7387ed227 rebase 2018-07-27 18:44:38 +02:00
TimonPost
403d0668a7 Created terminal type and changed alternate and raw screen 2018-07-27 18:37:31 +02:00
Timon
1499763054 fixed examples 2018-07-26 16:37:36 +00:00
Timon
1a64a21df2 unix fixed not fully tested jet 2018-07-26 16:25:20 +00:00
TimonPost
d38f406dc7 Refactored WinApi code 2018-07-24 18:06:17 +02:00
TimonPost
2cc40d5d28 refactored winapi code 2018-07-22 14:55:14 +02:00
Timon
9df976ed29 added read_char, read_line, read_async, read_async until for unix. Not 100% tested. 2018-07-21 11:11:31 +00:00
TimonPost
07502c016d read line, read char, read async and read async until implemented for windows 2018-07-20 18:00:46 +02:00
TimonPost
fcc4ca31bc base implementation for input 2018-07-19 15:11:36 +02:00
TimonPost
f4d2ab4feb fixed examples 0.3.0 2018-07-18 22:32:17 +02:00
TimonPost
66f2d04d5c removed '-' sign in file 2018-07-18 18:02:44 +02:00
TimonPost
8a3b8b8ce7 removed target, updated version number to 0.3.0 2018-07-15 23:08:10 +02:00
TimonPost
787b4aa1b3 Added release notes, docs, readme changed almost done for release 0.2.3 2018-07-12 23:36:30 +02:00
Timon
dd7b191c23 unix tested 2018-07-12 17:48:13 +00:00
TimonPost
683ec5c9cb refactor, created examples and tested code 2018-07-11 22:59:54 +02:00
TimonPost
cc47d8788a Added docs and Result<> to write methods 2018-07-11 19:43:12 +02:00
Timon
f962fe4040 Fixed unix 2018-07-09 17:37:07 +00:00
TimonPost
e62d8cff9d Alternate screen working for windows, created reallife example with firstdepthsearch and started commenting all types not done yet with that. 2018-07-08 22:13:32 +02:00
TimonPost
26a1960159 Windows alternate screen working. color implementation for alternate screen fixed. And all functionalities for the main screen should also work 2018-07-03 22:48:04 +02:00
TimonPost
223b353101 runned cargo fmt on crate code 2018-07-01 22:43:43 +02:00
TimonPost
4a943c124e Added alternatescreen functionalilty, and added options to terminate the current process. also added write option to the terminal module 2018-07-01 22:40:07 +02:00
TimonPost
7544578122 Some fixes 2018-06-26 21:28:25 +02:00
Timon
2a50c02b12 :: 2018-06-26 18:56:34 +00:00
Timon
043bac575f exit current proccess added 2018-06-26 18:21:47 +00:00
Timon
46e7ad720f fixed unix compile error 2018-06-26 16:48:50 +00:00
TimonPost
d714817539 added blink functionality for cursor. Fixed alternate screen for windows not fully working 2018-06-23 19:48:22 +02:00
TimonPost
62fbb6b6a9 added unix cursor hide show, fixed windows and added alternate screen
functionality. Also refactored and cleaned up code.:
2018-06-22 21:04:30 +02:00
=
2a40d10ae9 refactored code comments fixed examples and invalid comments. Also added documentation 2018-06-16 20:10:51 +02:00
=
48a429a396 added alternate screen for unix working on raw screen featuresbash: wq: command not found 2018-06-13 21:02:09 +02:00
=
3878993459 Removed all unused namespaces 2018-06-09 23:19:02 +02:00
=
52c0bbcf36 Merge branch 'development' of https://github.com/TimonPost/crossterm into development 2018-06-09 21:59:54 +02:00
=
17616100df Added alternate screen support for unix systems 2018-06-09 21:59:43 +02:00
TimonPost
05ccd7cf04 created examples for each version 2018-06-09 21:56:59 +02:00
TimonPost
df86426c93 Changed module names and some method names to make the calls more cleaner. Fixed get cursor position for unix. Default ansi codes if not supported winapi will be used. 2018-05-20 14:08:14 +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
524955f8c0 } 2018-03-03 15:40:51 +01:00
T
215d0cfa83 Use default ANSI for windows, if current windows does not support ANSI switch back to WINAPI. Unix is not tested yet. Notice that currently the console will be set to another mode and that ther is no way back, when ansi is enabled. Storing the old state of the terminal and enable the client to switsh back to the old state will likely be inplemented in crossterm 0.3.0 2018-02-03 17:17:28 +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
T
39b63822ae Winapi upgrade, windows tested again edited readme 2018-01-18 22:47:09 +01:00
Timon
00a87a27b6
Update mod.rs
Some fixes in comments and code
2018-01-18 12:08:52 +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
T
37670c7fbb Clear until nextline and currentline windows functionality added 2018-01-07 15:26:20 +01:00
T
3b4b6fb11a Added terminal size, screen clearing functionality, refactored winkernel and done with mouse position 2018-01-06 21:31:14 +01:00