From 199a656c1adba4c34d8b7fa92ebb22de14252f6d Mon Sep 17 00:00:00 2001 From: MeexReay Date: Sat, 22 Mar 2025 17:28:06 +0300 Subject: [PATCH] kfc fix damn --- app/kfc/kfc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/kfc/kfc.js b/app/kfc/kfc.js index 53a0afb..0352de9 100644 --- a/app/kfc/kfc.js +++ b/app/kfc/kfc.js @@ -19,8 +19,8 @@ async function cropToScreen(text, x, y, width, height) { async function printScreen(screen_length, start_cursor, pos, content, mode, pos, x, y, width, height) { trimTerminal(screen_length) - let screen = await cropToScreen(content, 0, 0, width, height - 1) - await writeStdout(makeColorCodesPrintable(screen)) + let screen = makeColorCodesPrintable(await cropToScreen(content, x, y, width, height - 1)) + await writeStdout(screen) let status_line = `\nmode: ${mode} | size: ${content.length} | lines: ${content.split("\n").length} | x: ${pos[0]} | y: ${pos[1]}` await writeStdout(status_line) setCursor(start_cursor[0] + pos[0], start_cursor[1] + pos[1])