@rlabs-inc/tui 0.2.3 → 0.2.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/package.json
CHANGED
|
@@ -62,9 +62,9 @@ export class AppendRegionRenderer {
|
|
|
62
62
|
process.stdout.write(ansi.cursorUp(this.previousHeight))
|
|
63
63
|
process.stdout.write(ansi.eraseDown)
|
|
64
64
|
} else {
|
|
65
|
-
// Active area exceeded viewport - clear
|
|
66
|
-
//
|
|
67
|
-
process.stdout.write(ansi.
|
|
65
|
+
// Active area exceeded viewport - clear visible screen only
|
|
66
|
+
// Use clearViewport (not clearTerminal) to preserve scrollback history
|
|
67
|
+
process.stdout.write(ansi.clearViewport)
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -92,8 +92,8 @@ export class AppendRegionRenderer {
|
|
|
92
92
|
process.stdout.write(ansi.cursorUp(this.previousHeight))
|
|
93
93
|
process.stdout.write(ansi.eraseDown)
|
|
94
94
|
} else {
|
|
95
|
-
// Active area exceeded viewport - clear
|
|
96
|
-
process.stdout.write(ansi.
|
|
95
|
+
// Active area exceeded viewport - clear visible screen only
|
|
96
|
+
process.stdout.write(ansi.clearViewport)
|
|
97
97
|
}
|
|
98
98
|
this.previousHeight = 0
|
|
99
99
|
}
|