mirror of
https://github.com/MeexReay/poshlostios.git
synced 2025-06-24 02:22:58 +03:00
fix esacpe button
This commit is contained in:
parent
cc679a5922
commit
3518af8c52
@ -10,16 +10,22 @@ async function main(args) {
|
||||
let run = true
|
||||
|
||||
(async () => {
|
||||
setStdinFlag(SILENT_STDIN)
|
||||
setStdinFlag(ENABLE_STDIN)
|
||||
|
||||
while (true) {
|
||||
let event = await pollStdinEvent()
|
||||
|
||||
if (event.type == "key") {
|
||||
if (event.key == "Escape") {
|
||||
run = false
|
||||
return
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
setStdinFlag(RENDER_STDIN)
|
||||
setStdinFlag(DISABLE_STDIN)
|
||||
})()
|
||||
|
||||
while (run) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user