Skip to content

Commit

Permalink
Prepare for next crossterm release
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaSd committed May 9, 2021
1 parent a4520e4 commit 6e43ca7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 17 deletions.
15 changes: 4 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/irust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ repository = "https://github.com/sigmaSd/IRust"
license = "MIT"

[dependencies]
crossterm = { version = "0.19.0", features = ["serde"] }
dirs-next = "2.0.0"
toml = "0.5.8"
serde = { version = "1.0.125", features = ["derive"] }
Expand All @@ -18,6 +17,7 @@ irust_api = { path = "../irust_api/", version = "0.3.0" }
irust_repl = { path = "../irust_repl", version = "0.3.0", features = ["serde"] }
libloading = "0.7.0"
bincode = "1.3.3"
crossterm = { version = "0.19.0", features = ["serde"] }

[target.'cfg(unix)'.dependencies]
nix = "0.20.0"
Expand Down
11 changes: 9 additions & 2 deletions crates/irust/src/irust/engine.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use crossterm::{
// cursor::{CursorShape, SetCursorShape},
event::{Event, KeyCode, KeyEvent, KeyModifiers},
style::Color,
terminal::ClearType,
Expand Down Expand Up @@ -574,8 +575,14 @@ impl IRust {
self.printer.cursor.show();
Ok(())
}
Command::SetThinCursor => Ok(()),
Command::SetWideCursor => Ok(()),
Command::SetThinCursor => Ok(()), /*Ok(crossterm::queue!(
std::io::stdout(),
SetCursorShape(CursorShape::Line)
)?),*/
Command::SetWideCursor => Ok(()), /*Ok(crossterm::queue!(
std::io::stdout(),
SetCursorShape(CursorShape::Block)
)?),*/
}
}

Expand Down
2 changes: 0 additions & 2 deletions crates/printer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ description = "Abstraction over terminal manipulation"
repository = "https://github.com/sigmaSd/IRust/tree/master/crates/printer"
license = "MIT"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
crossterm = "0.19.0"
2 changes: 1 addition & 1 deletion scripts_examples/script2/input_event/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ fn main() {
code: KeyCode::Esc, ..
} => {
Mode::set(Mode::Normal);
None
Some(Command::SetWideCursor)
}
_ => None,
},
Expand Down

0 comments on commit 6e43ca7

Please sign in to comment.