@oh-my-pi/pi-tui 17.3.0 → 17.3.2
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/CHANGELOG.md +6 -0
- package/package.json +3 -3
- package/src/tui.ts +7 -9
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@oh-my-pi/pi-tui",
|
|
4
|
-
"version": "17.3.
|
|
4
|
+
"version": "17.3.2",
|
|
5
5
|
"description": "Terminal User Interface library with differential rendering for efficient text-based applications",
|
|
6
6
|
"homepage": "https://omp.sh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"fmt": "biome format --write ."
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@oh-my-pi/pi-natives": "17.3.
|
|
41
|
-
"@oh-my-pi/pi-utils": "17.3.
|
|
40
|
+
"@oh-my-pi/pi-natives": "17.3.2",
|
|
41
|
+
"@oh-my-pi/pi-utils": "17.3.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"ghostty-web": "^0.4.0"
|
package/src/tui.ts
CHANGED
|
@@ -414,11 +414,9 @@ function parseSizeValue(value: SizeValue | undefined, referenceSize: number): nu
|
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
/**
|
|
417
|
-
* Detect sessions where ED3 cannot safely rebuild scrollback.
|
|
418
|
-
*
|
|
419
|
-
*
|
|
420
|
-
* way to avoid hardening host-reflowed soft wraps. Nested multiplexers remain
|
|
421
|
-
* unsafe because the inner tmux/screen/Zellij layer still owns its history.
|
|
417
|
+
* Detect sessions where ED3 cannot safely rebuild scrollback. Direct HerdR
|
|
418
|
+
* panes support explicit clears; nested multiplexers remain unsafe because the
|
|
419
|
+
* inner tmux/screen/Zellij layer owns their history.
|
|
422
420
|
*/
|
|
423
421
|
function isMultiplexerSession(): boolean {
|
|
424
422
|
if (!isInsideTerminalMultiplexer()) return false;
|
|
@@ -457,12 +455,12 @@ function reportsSizeOnAltScreenToggle(): boolean {
|
|
|
457
455
|
|
|
458
456
|
/**
|
|
459
457
|
* Resize should repaint the visible window in place — no alternate-screen
|
|
460
|
-
* borrow, no ED3 scrollback rewrap — for multiplexer
|
|
461
|
-
* that loop on alt-screen toggles.
|
|
462
|
-
*
|
|
458
|
+
* borrow, no ED3 scrollback rewrap — for multiplexer and direct HerdR panes,
|
|
459
|
+
* plus terminals that loop on alt-screen toggles. Direct HerdR remains a
|
|
460
|
+
* direct terminal for explicit transcript replacement and display reset.
|
|
463
461
|
*/
|
|
464
462
|
function resizeRepaintsInPlace(): boolean {
|
|
465
|
-
return isMultiplexerSession() || reportsSizeOnAltScreenToggle();
|
|
463
|
+
return isMultiplexerSession() || Bun.env.HERDR_ENV === "1" || reportsSizeOnAltScreenToggle();
|
|
466
464
|
}
|
|
467
465
|
|
|
468
466
|
/**
|