From 4212e728d52e4978fc06ea7e4a1a6385b7b3a7d2 Mon Sep 17 00:00:00 2001 From: T Date: Tue, 30 Jan 2018 21:20:11 +0100 Subject: [PATCH] Issue #3 and #4 are now solved, windows tested unix not yet --- .idea/workspace.xml | 573 +++++++++++++-------- examples/bin.rs | 5 +- examples/color/mod.rs | 4 +- examples/cursor/mod.rs | 30 +- examples/terminal/mod.rs | 45 +- src/crossterm_cursor/ansi_cursor.rs | 2 +- src/crossterm_cursor/base_cursor.rs | 2 +- src/crossterm_cursor/cursor.rs | 80 ++- src/crossterm_cursor/mod.rs | 2 +- src/crossterm_cursor/winapi_cursor.rs | 2 +- src/crossterm_mouse/mod.rs | 0 src/crossterm_style/color/color.rs | 48 +- src/crossterm_style/mod.rs | 2 +- src/crossterm_style/styles/styledobject.rs | 2 +- src/crossterm_terminal/mod.rs | 2 +- src/crossterm_terminal/terminal.rs | 60 +-- src/kernel/windows_kernel/ansi_support.rs | 2 + 17 files changed, 484 insertions(+), 377 deletions(-) delete mode 100644 src/crossterm_mouse/mod.rs diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 2d91b20..a0f7c4d 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,7 +3,22 @@ - + + + + + + + + + + + + + + + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -28,8 +138,6 @@ - color - termin Coord winapi kernel32 @@ -55,6 +163,11 @@ handle:: wincon CONSOLE_SCREEN_BUFFER_INFO + safe_position + init + cursor::get() + get() + get crossterm_cursor @@ -75,36 +188,38 @@ @@ -115,10 +230,10 @@ DEFINITION_ORDER - @@ -135,6 +250,8 @@ + + @@ -171,13 +288,24 @@ + + + + + + + + + + + + +