Skip to content

Commit 9d16b40

Browse files
committed
Fix windows build
1 parent af9168d commit 9d16b40

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/wasm_term.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub fn read_secure() -> io::Result<String> {
3939
))
4040
}
4141

42-
pub fn read_single_key() -> io::Result<Key> {
42+
pub fn read_single_key(_ctrlc_key: bool) -> io::Result<Key> {
4343
Err(io::Error::new(
4444
io::ErrorKind::Other,
4545
"unsupported operation",

src/windows_term/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ pub fn key_from_key_code(code: VIRTUAL_KEY) -> Key {
357357
pub fn read_secure() -> io::Result<String> {
358358
let mut rv = String::new();
359359
loop {
360-
match read_single_key()? {
360+
match read_single_key(false)? {
361361
Key::Enter => {
362362
break;
363363
}
@@ -376,7 +376,7 @@ pub fn read_secure() -> io::Result<String> {
376376
Ok(rv)
377377
}
378378

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

382382
let unicode_char = unsafe { key_event.uChar.UnicodeChar };

0 commit comments

Comments
 (0)