screen_length

This commit is contained in:
MeexReay 2025-03-21 20:04:08 +03:00
parent a91876b6a5
commit 60e7a7945d

View File

@ -17,7 +17,7 @@ async function cropToScreen(text, x, y, width, height) {
return screen.join("\n")
}
async function printScreen(start_cursor, pos, content, mode, pos, x, y, width, height) {
async function printScreen(screen_length, start_cursor, pos, content, mode, pos, x, y, width, height) {
trimTerminal(getTerminal().length - screen_length)
let screen = await cropToScreen(content, 0, 0, width, height - 1)
await writeStdout(screen)