some kfc fixes

This commit is contained in:
MeexReay 2025-03-21 20:50:07 +03:00
parent 3487f1f7b0
commit e4b3b17528
2 changed files with 5 additions and 3 deletions

View File

@ -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)

View File

@ -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])
] ]
} }