@industry-theme/xterm-terminal-panel 0.4.5 → 0.4.6
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/dist/index.css +4 -0
- package/dist/index.js +12 -1
- package/dist/src/components/ThemedTerminal.d.ts.map +1 -1
- package/dist/styles.css +5 -0
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -342,6 +342,15 @@ var ThemedTerminal = forwardRef(({
|
|
|
342
342
|
let lastBaseY = 0;
|
|
343
343
|
let isRewriteInProgress = false;
|
|
344
344
|
let rewriteStabilizeTimeout = null;
|
|
345
|
+
const setRewriteVisibility = (hidden) => {
|
|
346
|
+
if (terminalRef.current) {
|
|
347
|
+
if (hidden) {
|
|
348
|
+
terminalRef.current.classList.add("terminal-rewriting");
|
|
349
|
+
} else {
|
|
350
|
+
terminalRef.current.classList.remove("terminal-rewriting");
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
};
|
|
345
354
|
const scrollDisposable = term.onScroll(() => {
|
|
346
355
|
const scrollY = term.buffer.active.viewportY;
|
|
347
356
|
const scrollback2 = term.buffer.active.baseY;
|
|
@@ -366,6 +375,7 @@ var ThemedTerminal = forwardRef(({
|
|
|
366
375
|
});
|
|
367
376
|
}
|
|
368
377
|
isRewriteInProgress = true;
|
|
378
|
+
setRewriteVisibility(true);
|
|
369
379
|
}
|
|
370
380
|
if (isRewriteInProgress) {
|
|
371
381
|
if (rewriteStabilizeTimeout) {
|
|
@@ -374,10 +384,11 @@ var ThemedTerminal = forwardRef(({
|
|
|
374
384
|
term.scrollToBottom();
|
|
375
385
|
rewriteStabilizeTimeout = setTimeout(() => {
|
|
376
386
|
if (DEBUG_RESIZE) {
|
|
377
|
-
console.log("[ThemedTerminal] Content rewrite COMPLETE, stabilized at baseY:",
|
|
387
|
+
console.log("[ThemedTerminal] Content rewrite COMPLETE, stabilized at baseY:", term.buffer.active.baseY);
|
|
378
388
|
}
|
|
379
389
|
isRewriteInProgress = false;
|
|
380
390
|
term.scrollToBottom();
|
|
391
|
+
setRewriteVisibility(false);
|
|
381
392
|
}, 150);
|
|
382
393
|
}
|
|
383
394
|
lastBaseY = scrollback2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemedTerminal.d.ts","sourceRoot":"","sources":["../../../src/components/ThemedTerminal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAkC3D,OAAO,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAEV,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,8BAA8B,CAAC;AAEtC,MAAM,WAAW,4BAA6B,SAAQ,mBAAmB;IACvE,KAAK,EAAE,KAAK,CAAC;CACd;AAsBD,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"ThemedTerminal.d.ts","sourceRoot":"","sources":["../../../src/components/ThemedTerminal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAkC3D,OAAO,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAEV,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,8BAA8B,CAAC;AAEtC,MAAM,WAAW,4BAA6B,SAAQ,mBAAmB;IACvE,KAAK,EAAE,KAAK,CAAC;CACd;AAsBD,eAAO,MAAM,cAAc,4HAk+B1B,CAAC"}
|
package/dist/styles.css
CHANGED
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
margin: 0;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
/* Hide terminal content during content rewrite (clear + redraw pattern) */
|
|
9
|
+
.terminal-container-fix.terminal-rewriting .xterm-screen {
|
|
10
|
+
visibility: hidden;
|
|
11
|
+
}
|
|
12
|
+
|
|
8
13
|
/* Remove default xterm padding */
|
|
9
14
|
.terminal-container-fix .xterm {
|
|
10
15
|
padding: 5px 0 0 5px;
|
package/package.json
CHANGED