Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jan 9, 2024
1 parent af9168d commit 9d16b40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/wasm_term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn read_secure() -> io::Result<String> {
))
}

pub fn read_single_key() -> io::Result<Key> {
pub fn read_single_key(_ctrlc_key: bool) -> io::Result<Key> {
Err(io::Error::new(
io::ErrorKind::Other,
"unsupported operation",
Expand Down
4 changes: 2 additions & 2 deletions src/windows_term/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ pub fn key_from_key_code(code: VIRTUAL_KEY) -> Key {
pub fn read_secure() -> io::Result<String> {
let mut rv = String::new();
loop {
match read_single_key()? {
match read_single_key(false)? {
Key::Enter => {
break;
}
Expand All @@ -376,7 +376,7 @@ pub fn read_secure() -> io::Result<String> {
Ok(rv)
}

pub fn read_single_key() -> io::Result<Key> {
pub fn read_single_key(_ctrlc_key: bool) -> io::Result<Key> {
let key_event = read_key_event()?;

let unicode_char = unsafe { key_event.uChar.UnicodeChar };
Expand Down

0 comments on commit 9d16b40

Please sign in to comment.