numux 2.0.4 → 2.0.5
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/numux.js +7 -2
- package/package.json +1 -1
package/dist/numux.js
CHANGED
|
@@ -36,7 +36,7 @@ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports,
|
|
|
36
36
|
var require_package = __commonJS((exports, module) => {
|
|
37
37
|
module.exports = {
|
|
38
38
|
name: "numux",
|
|
39
|
-
version: "2.0.
|
|
39
|
+
version: "2.0.5",
|
|
40
40
|
description: "Terminal multiplexer with dependency orchestration",
|
|
41
41
|
type: "module",
|
|
42
42
|
license: "MIT",
|
|
@@ -3195,6 +3195,10 @@ class App {
|
|
|
3195
3195
|
// src/ui/prefix.ts
|
|
3196
3196
|
var RESET = ANSI_RESET;
|
|
3197
3197
|
var DIM = "\x1B[90m";
|
|
3198
|
+
var CURSOR_SEQ_RE = /\x1b\[[\d;]*[ABCDEFGHJKLMSTdf]/g;
|
|
3199
|
+
function stripCursorSequences(text) {
|
|
3200
|
+
return text.replace(CURSOR_SEQ_RE, "");
|
|
3201
|
+
}
|
|
3198
3202
|
|
|
3199
3203
|
class PrefixDisplay {
|
|
3200
3204
|
manager;
|
|
@@ -3264,7 +3268,8 @@ class PrefixDisplay {
|
|
|
3264
3268
|
}
|
|
3265
3269
|
handleOutput(name, data) {
|
|
3266
3270
|
const decoder = this.decoders.get(name) ?? new TextDecoder;
|
|
3267
|
-
const
|
|
3271
|
+
const raw = decoder.decode(data, { stream: true });
|
|
3272
|
+
const text = stripCursorSequences(raw);
|
|
3268
3273
|
const buffer = (this.buffers.get(name) ?? "") + text;
|
|
3269
3274
|
const lines = buffer.split(/\r*\n/);
|
|
3270
3275
|
let tail = lines.pop() ?? "";
|