mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
a947c6fbf7
This patch fixes stdin read hanging on user input when switching tty mode on Windows Fixes #21111 On Windows, when switching from line to raw mode: - Cancel ongoing console read by writing a return keypress to its input buffer. This blocks the main thread until any ongoing read has been cancelled to prevent interference with the screen state. - On the read thread, restore the cursor position to where it was before writing the enter, undoing its effect on the screen state. - Restart reading and notify the main thread.
31 lines
751 B
TOML
31 lines
751 B
TOML
# Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
[package]
|
|
name = "deno_io"
|
|
version = "0.63.0"
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
readme = "README.md"
|
|
repository.workspace = true
|
|
description = "IO primitives for Deno extensions"
|
|
|
|
[lib]
|
|
path = "lib.rs"
|
|
|
|
[dependencies]
|
|
async-trait.workspace = true
|
|
deno_core.workspace = true
|
|
filetime.workspace = true
|
|
fs3.workspace = true
|
|
log.workspace = true
|
|
once_cell.workspace = true
|
|
tokio.workspace = true
|
|
|
|
[target.'cfg(not(windows))'.dependencies]
|
|
os_pipe.workspace = true
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
winapi = { workspace = true, features = ["winbase", "processenv", "errhandlingapi"] }
|
|
rand.workspace = true
|
|
parking_lot.workspace = true
|