@duckmind/dm-darwin-x64 0.35.1 → 0.35.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/dm
CHANGED
|
Binary file
|
|
@@ -92,12 +92,20 @@ export function enableAlternateScrollMode(): string {
|
|
|
92
92
|
return "\x1b[?1007h";
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
const SYNCHRONIZED_OUTPUT_BEGIN = "\x1b[?2026h";
|
|
96
|
+
const SYNCHRONIZED_OUTPUT_END = "\x1b[?2026l";
|
|
97
|
+
|
|
95
98
|
export function beginSynchronizedOutput(): string {
|
|
96
|
-
return
|
|
99
|
+
return SYNCHRONIZED_OUTPUT_BEGIN;
|
|
97
100
|
}
|
|
98
101
|
|
|
99
102
|
export function endSynchronizedOutput(): string {
|
|
100
|
-
return
|
|
103
|
+
return SYNCHRONIZED_OUTPUT_END;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function stripSynchronizedOutputControls(data: string): string {
|
|
107
|
+
if (!data.includes(SYNCHRONIZED_OUTPUT_BEGIN) && !data.includes(SYNCHRONIZED_OUTPUT_END)) return data;
|
|
108
|
+
return data.split(SYNCHRONIZED_OUTPUT_BEGIN).join("").split(SYNCHRONIZED_OUTPUT_END).join("");
|
|
101
109
|
}
|
|
102
110
|
|
|
103
111
|
export function setScrollRegion(top: number, bottom: number): string {
|
|
@@ -418,11 +426,12 @@ export class FixedBottomEditorCompositor {
|
|
|
418
426
|
|
|
419
427
|
const scrollBottom = Math.max(1, rawRows - cluster.lines.length);
|
|
420
428
|
const screenRow = this.getCurrentScreenRow(scrollBottom);
|
|
429
|
+
const scopedData = stripSynchronizedOutputControls(data);
|
|
421
430
|
this.writeOriginal(
|
|
422
431
|
beginSynchronizedOutput()
|
|
423
432
|
+ setScrollRegion(1, scrollBottom)
|
|
424
433
|
+ moveCursor(screenRow, 1)
|
|
425
|
-
+
|
|
434
|
+
+ scopedData
|
|
426
435
|
+ buildFixedEditorClusterPaint(this.decorateCluster(cluster), rawRows, width, this.getShowHardwareCursor())
|
|
427
436
|
+ endSynchronizedOutput(),
|
|
428
437
|
);
|