From 48a429a39692734edee90db8f55325c2dfc59570 Mon Sep 17 00:00:00 2001 From: = <=> Date: Wed, 13 Jun 2018 21:02:09 +0200 Subject: [PATCH] added alternate screen for unix working on raw screen featuresbash: wq: command not found --- .idea/workspace.xml | 722 +++++++++--------- .../bin.rs | 8 + .../terminal/alternate_screen.rs | 151 ++-- .../terminal/mod.rs | 6 +- .../terminal/raw_mode.rs | 59 ++ .../terminal/terminal.rs | 51 +- src/cursor/ansi_cursor.rs | 1 - src/kernel/unix_kernel/terminal.rs | 104 +-- src/lib.rs | 5 +- src/manager/ansi_manager.rs | 31 +- src/manager/manager.rs | 4 +- src/manager/mod.rs | 3 +- src/shared/mod.rs | 5 +- src/shared/raw.rs | 104 +++ src/{terminal => shared}/screen.rs | 5 - src/{manager => shared}/terminal.rs | 7 +- src/state/commands/mod.rs | 10 +- src/state/commands/shared_commands.rs | 2 + src/state/commands/unix_command.rs | 51 +- src/state/commands/win_commands.rs | 2 + src/state/context.rs | 23 +- src/terminal/mod.rs | 3 - src/terminal/raw.rs | 82 -- src/terminal/terminal.rs | 2 +- 24 files changed, 803 insertions(+), 638 deletions(-) create mode 100644 src/shared/raw.rs rename src/{terminal => shared}/screen.rs (95%) rename src/{manager => shared}/terminal.rs (95%) delete mode 100644 src/terminal/raw.rs diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 4fc1481..a753f7a 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,30 +2,29 @@ + - - - - + + + + + - - + - - + + + + + - - - - - - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +