mirror of
https://github.com/MeexReay/poshlostios.git
synced 2025-06-24 10:32:59 +03:00
some kfc fixes
This commit is contained in:
parent
3487f1f7b0
commit
e4b3b17528
@ -76,7 +76,9 @@ async function main(args) {
|
|||||||
trimTerminal(status_length)
|
trimTerminal(status_length)
|
||||||
writeStdout(":")
|
writeStdout(":")
|
||||||
|
|
||||||
let command = readLine()
|
let command = await readLine()
|
||||||
|
|
||||||
|
trimTerminal(1)
|
||||||
|
|
||||||
setStdinFlag(ENABLE_STDIN)
|
setStdinFlag(ENABLE_STDIN)
|
||||||
setStdinFlag(SILENT_STDIN)
|
setStdinFlag(SILENT_STDIN)
|
||||||
|
@ -7,8 +7,8 @@ var last_stdin_length = 0
|
|||||||
|
|
||||||
function getTerminalSize() {
|
function getTerminalSize() {
|
||||||
return [
|
return [
|
||||||
Math.floor((window.innerWidth - CURSOR_OFFSET[0] * 2) / CHAR_SIZE[0]),
|
Math.round((window.innerWidth - CURSOR_OFFSET[0] * 2) / CHAR_SIZE[0]),
|
||||||
Math.floor((window.innerHeight - CURSOR_OFFSET[1] * 2) / CHAR_SIZE[1])
|
Math.round((window.innerHeight - CURSOR_OFFSET[1] * 2) / CHAR_SIZE[1])
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user