From 524955f8c05dd8bf473bb61288aedcae9328435a Mon Sep 17 00:00:00 2001 From: T Date: Sat, 3 Mar 2018 15:40:51 +0100 Subject: [PATCH] } --- .idea/codeStyles/codeStyleConfig.xml | 5 + .idea/workspace.xml | 1015 +++++++++-------- Cargo.toml | 11 +- examples/bin.rs | 34 +- src/Terminal.rs | 6 + src/crossterm_cursor/ansi_cursor.rs | 5 +- src/crossterm_cursor/base_cursor.rs | 2 +- src/crossterm_cursor/cursor.rs | 38 +- src/crossterm_cursor/winapi_cursor.rs | 27 +- src/crossterm_state/commands/mod.rs | 45 + .../commands/shared_commands.rs | 36 + src/crossterm_state/commands/unix_command.rs | 95 ++ src/crossterm_state/commands/win_commands.rs | 220 ++++ src/crossterm_state/context.rs | 72 ++ src/crossterm_state/mod.rs | 4 + src/crossterm_style/color/ansi_color.rs | 3 +- src/crossterm_style/color/color.rs | 31 +- src/crossterm_style/color/winapi_color.rs | 107 +- src/crossterm_style/styles/objectstyle.rs | 1 + src/crossterm_style/styles/styledobject.rs | 1 + src/crossterm_terminal/ansi_terminal.rs | 5 +- src/crossterm_terminal/base_terminal.rs | 2 +- src/crossterm_terminal/mod.rs | 6 +- src/crossterm_terminal/raw_terminal.rs | 55 + src/crossterm_terminal/screen/mod.rs | 118 ++ src/crossterm_terminal/terminal.rs | 34 +- src/crossterm_terminal/winapi_terminal.rs | 229 +++- src/kernel/linux_kernel/terminal.rs | 34 - src/kernel/mod.rs | 2 +- .../{linux_kernel => unix_kernel}/mod.rs | 1 + src/kernel/unix_kernel/terminal.rs | 115 ++ src/kernel/windows_kernel/ansi_support.rs | 69 ++ src/kernel/windows_kernel/color.rs | 108 -- src/kernel/windows_kernel/cursor.rs | 21 +- src/kernel/windows_kernel/kernel.rs | 117 +- src/kernel/windows_kernel/mod.rs | 41 +- src/kernel/windows_kernel/terminal.rs | 219 +--- .../windows_kernel/winapi_extentions.rs | 31 - src/lib.rs | 8 +- src/shared/functions.rs | 48 +- src/shared/mod.rs | 2 +- src/shared/traits.rs | 1 + 42 files changed, 2022 insertions(+), 1002 deletions(-) create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 src/Terminal.rs create mode 100644 src/crossterm_state/commands/mod.rs create mode 100644 src/crossterm_state/commands/shared_commands.rs create mode 100644 src/crossterm_state/commands/unix_command.rs create mode 100644 src/crossterm_state/commands/win_commands.rs create mode 100644 src/crossterm_state/context.rs create mode 100644 src/crossterm_state/mod.rs create mode 100644 src/crossterm_terminal/raw_terminal.rs create mode 100644 src/crossterm_terminal/screen/mod.rs delete mode 100644 src/kernel/linux_kernel/terminal.rs rename src/kernel/{linux_kernel => unix_kernel}/mod.rs (94%) create mode 100644 src/kernel/unix_kernel/terminal.rs create mode 100644 src/kernel/windows_kernel/ansi_support.rs delete mode 100644 src/kernel/windows_kernel/color.rs delete mode 100644 src/kernel/windows_kernel/winapi_extentions.rs diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..a55e7a1 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index f693957..2fec012 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,27 +2,47 @@ - + + + + + + + + + + + + - + + - + - + + + - - + + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - - - - - - - - - - - - - - - - - - - - - + + @@ -99,50 +76,84 @@ - - - - - - + + + - - + + - - - - - - - - + + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + - - + + + + @@ -158,42 +169,43 @@ - set - fsr_window - resizeBuffer - set_console_text_attribute - set( - kern - pos - csbi - kernel - success - count - xpos - handle:: - wincon - CONSOLE_SCREEN_BUFFER_INFO - safe_position - init - cursor::get() - get() - get - output_handle - UnixTerminal - size - DISABLE_NE - dwInMode - FillConsoleOutputCharacter - println - terminal - term - AnsiColor + INVALID_HANDLE_VALUE + PCHARINFO + NULL + ToMainscre + main_screen_handle + colored_terminal + clear_entire + mainscreen_handle + outout + handle + <'a> + unw + does + mut context + clear_en + clear + singleton + IState + Context + self.changed_states + context + undo + ICommand + empty + execute + register + ScreenContext + tomain + State + write crossterm_cursor D:\Windows\GIT\crossterm + D:\Windows\GIT\crossterm\src @@ -207,45 +219,57 @@ @@ -256,10 +280,26 @@ DEFINITION_ORDER - + + + + + + + + + + + Android + + + + @@ -276,6 +316,8 @@ + + @@ -317,6 +359,19 @@ + + + + + + + + + + + + + @@ -343,6 +398,13 @@ + + + + + + + @@ -354,7 +416,7 @@ - + @@ -373,18 +435,23 @@