Skip to content

Commit

Permalink
Merge pull request #481 from mgeisler/bump-termion
Browse files Browse the repository at this point in the history
Bump termion demo dependency to 2.0.1
  • Loading branch information
mgeisler committed Oct 23, 2022
2 parents 0c9bbea + 24e27ad commit fffe80c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ unic-emoji-char = "0.9.0"
version-sync = "0.9.4"

[target.'cfg(unix)'.dev-dependencies]
termion = "1.5.6"
termion = "2.0.1"
4 changes: 2 additions & 2 deletions examples/interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod unix_only {
use termion::event::Key;
use termion::input::TermRead;
use termion::raw::{IntoRawMode, RawTerminal};
use termion::screen::AlternateScreen;
use termion::screen::IntoAlternateScreen;
use termion::{color, cursor, style};
use textwrap::{wrap, Options, WordSeparator, WordSplitter, WrapAlgorithm};

Expand Down Expand Up @@ -292,7 +292,7 @@ mod unix_only {
};

let stdin = io::stdin();
let mut screen = AlternateScreen::from(io::stdout().into_raw_mode()?);
let mut screen = io::stdout().into_raw_mode()?.into_alternate_screen()?;
write!(screen, "{}", cursor::BlinkingUnderline)?;
draw_text(&text, &options, &word_splitter_label, &mut screen)?;

Expand Down

0 comments on commit fffe80c

Please sign in to comment.