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
|
let run = true
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
|
setStdinFlag(SILENT_STDIN)
|
||||||
|
setStdinFlag(ENABLE_STDIN)
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
let event = await pollStdinEvent()
|
let event = await pollStdinEvent()
|
||||||
|
|
||||||
if (event.type == "key") {
|
if (event.type == "key") {
|
||||||
if (event.key == "Escape") {
|
if (event.key == "Escape") {
|
||||||
run = false
|
run = false
|
||||||
return
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setStdinFlag(RENDER_STDIN)
|
||||||
|
setStdinFlag(DISABLE_STDIN)
|
||||||
})()
|
})()
|
||||||
|
|
||||||
while (run) {
|
while (run) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user