sigrank 0.12.2 → 0.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/tui.mjs +15 -1
package/README.md
CHANGED
package/package.json
CHANGED
package/tui.mjs
CHANGED
|
@@ -57,6 +57,7 @@ const green = (s) => paint(c.green, s)
|
|
|
57
57
|
const red = (s) => paint(c.red, s)
|
|
58
58
|
|
|
59
59
|
const CLEAR = `${ESC}H${ESC}2J` // home + erase visible area
|
|
60
|
+
const CLEAR_SB = `${ESC}3J` // clear scrollback/saved lines (prevents scroll-up past TUI)
|
|
60
61
|
const ENTER_ALT = `${ESC}?1049h` // enter alternate screen buffer
|
|
61
62
|
const EXIT_ALT = `${ESC}?1049l` // exit alternate screen buffer (restores original)
|
|
62
63
|
const HIDE = `${ESC}?25l`
|
|
@@ -1275,7 +1276,19 @@ function showSplash() {
|
|
|
1275
1276
|
const hint = () => interactive
|
|
1276
1277
|
? `${dim(' [P]')} ${paused ? 'resume' : 'pause'} ${dim('[Enter]')} enter`
|
|
1277
1278
|
: dim(' loading…')
|
|
1278
|
-
|
|
1279
|
+
// FIXED-WINDOW FIX (2026-06-27): paint the splash via the buffered flushScreen
|
|
1280
|
+
// path (GOTO positioning), NOT raw write('\n'). Raw \n scrolls the alt-screen
|
|
1281
|
+
// buffer, creating scrollback above the TUI — that's why you could scroll up
|
|
1282
|
+
// to see what was above it. flushScreen uses absolute cursor positioning so
|
|
1283
|
+
// nothing ever scrolls the buffer. This matches how tokscale renders its frame.
|
|
1284
|
+
const paint = () => {
|
|
1285
|
+
startBuffer()
|
|
1286
|
+
const lines = splashFrame(mode).split('\n')
|
|
1287
|
+
lines.forEach((ln) => writeln(ln))
|
|
1288
|
+
writeln(ctr(hint()))
|
|
1289
|
+
setFooter([])
|
|
1290
|
+
flushScreen()
|
|
1291
|
+
}
|
|
1279
1292
|
paint()
|
|
1280
1293
|
let timer = setInterval(paint, 110)
|
|
1281
1294
|
|
|
@@ -1322,6 +1335,7 @@ export async function runTui({ platform: initPlatform = 'claude', window: win =
|
|
|
1322
1335
|
}
|
|
1323
1336
|
|
|
1324
1337
|
write(ENTER_ALT) // switch to alternate screen — original terminal state preserved on exit
|
|
1338
|
+
write(CLEAR_SB) // FIXED-WINDOW (2026-06-27): clear scrollback so nothing is above the TUI
|
|
1325
1339
|
write(HIDE)
|
|
1326
1340
|
write(CLEAR)
|
|
1327
1341
|
|