cliprobe 1.4.3 → 1.5.0
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/README.md +9 -7
- package/dist/cli.js +112 -44
- package/package.json +1 -1
- package/schema.json +14 -1
package/README.md
CHANGED
|
@@ -211,7 +211,7 @@ In JUnit, each check is a test suite and each probe a test case: `FAIL` is a fai
|
|
|
211
211
|
}
|
|
212
212
|
```
|
|
213
213
|
|
|
214
|
-
`strict` says whether `--strict` was given (added in 1.1). Every result has the same five fields: `check`, `invocation` (the command and arguments that ran), `verdict` (`pass`, `fail`, `warn`, `skip`, `error` for could-not-run, or `info`), `reason` (a sentence for a person) and `details`, plus `evidence` when there is a line to quote. `details` holds the check's own measurements, such as exit codes, timings, the terminal modes left on or the processes left running; the schema describes each check's. Text from the program under test is escaped: control characters, line separators and bidi overrides appear as `\u` escapes, so the report can't drive a terminal when printed.
|
|
214
|
+
`strict` says whether `--strict` was given (added in 1.1). Every result has the same five fields: `check`, `invocation` (the command and arguments that ran), `verdict` (`pass`, `fail`, `warn`, `skip`, `error` for could-not-run, or `info`), `reason` (a sentence for a person) and `details`, plus `evidence` when there is a line to quote. `details` holds the check's own measurements, such as exit codes, timings, the terminal modes left on or the processes left running; the schema describes each check's. Text from the program under test is escaped: control characters, line separators and bidi overrides appear as `\u` escapes, so the report can't drive a terminal when printed. The human report shows them as `\x1b`-style escapes and doubles a backslash the program printed, so `\\x1b` is text and `\x1b` a real escape character; it cuts evidence longer than 200 characters, which the JSON has in full.
|
|
215
215
|
|
|
216
216
|
## Stability
|
|
217
217
|
|
|
@@ -265,15 +265,17 @@ Many classic tools (git, BSD `ls` and `grep`) color correctly but don't implemen
|
|
|
265
265
|
|
|
266
266
|
cliprobe runs the command into a pipe, with the same environment as the color check, and looks at stdout and stderr for terminal control codes that only make sense on a screen: cursor movement, line and screen erases, mode switches such as hiding the cursor, hyperlinks (OSC 8), window titles, and carriage returns that redraw a line. Spinners and progress bars are the usual source. In a pipe they turn logs and agent transcripts into `\r\x1b[2K` noise. Results:
|
|
267
267
|
|
|
268
|
-
| Verdict | Meaning
|
|
269
|
-
| ------- |
|
|
270
|
-
| `PASS` | None of those codes reached the pipe (color is the color check's business)
|
|
271
|
-
| `FAIL` | An escape sequence reached stdout or stderr; the reason lists which kinds
|
|
272
|
-
| `WARN` | Only carriage returns reached the pipe, redrawing a line as a progress meter does |
|
|
273
|
-
| `SKIP` | Printed nothing
|
|
268
|
+
| Verdict | Meaning |
|
|
269
|
+
| ------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
270
|
+
| `PASS` | None of those codes reached the pipe (color is the color check's business) |
|
|
271
|
+
| `FAIL` | An escape sequence reached stdout or stderr; the reason lists which kinds |
|
|
272
|
+
| `WARN` | Only carriage returns reached the pipe, redrawing a line as a progress meter does, or only control codes this check started looking for in 1.5 |
|
|
273
|
+
| `SKIP` | Printed nothing |
|
|
274
274
|
|
|
275
275
|
A carriage-return redraw only warns because some tools draw a progress meter on stderr into a pipe by design: curl does, unless you pass `-s`. Before this check could fail, it ran on 78 commands doing real work (builds, linters, test runners, scaffolders, package managers and system tools) and 38 watch modes and dev servers, offline in a throwaway container. Every escape sequence it found was a real bug, such as a prompt hiding the cursor in a pipe (`changeset init`), `mocha --watch` hiding the cursor and `tsc --watch` clearing the screen; none was a false failure. Probe a command that does real work, such as an install or a build: `--help` and `--version` rarely draw spinners. With `{fixture}` in the args, the hostile file names themselves are left to the control-chars check: a lister that prints them raw into a pipe, as `ls` does, passes. If the codes come from data you passed in (a file you `cat`), they are yours, not the program's.
|
|
276
276
|
|
|
277
|
+
Since 1.5 the check also finds the other escape sequences: saving and restoring the cursor (`ESC 7`, `ESC 8`), a full reset that clears the screen (`ESC c`), character set and keypad switches, device control strings (DCS, APC, PM, SOS), OSC codes without a `;` (`ESC ] 104`), and their 8-bit forms (C1 CSI and OSC, such as `0x9b 2J`). These only warn until a census of real tools shows they flag no working program; `details.stdoutKinds` and `details.stderrKinds` name them as `escape`, `reset`, `string`, `osc` and `c1`. A program that also prints one of the sequences above still fails.
|
|
278
|
+
|
|
277
279
|
### stdin
|
|
278
280
|
|
|
279
281
|
Agents and CI runners often start a command with stdin as a pipe that stays open and never receives anything. A program that reads stdin, or asks a question, then waits forever. cliprobe runs the command three ways: with stdin closed (`/dev/null`), with an open pipe, and, if that hangs, with a pipe it closes partway through. Finishing only after the close proves stdin was the cause. The open pipe gets 3 seconds, or twice the time the command took with stdin closed plus 1 second if that is longer, so a program that is just slow to answer isn't mistaken for one that waits. The pipe in the third run is closed after 1 second, or after that longer time for a slow command. Each run still stops at `--timeout`. Results:
|
package/dist/cli.js
CHANGED
|
@@ -583,7 +583,10 @@ function describeVersion(r) {
|
|
|
583
583
|
function describeHelp(r) {
|
|
584
584
|
const out = lines(r.stdout.toString("utf8"));
|
|
585
585
|
const err = lines(r.stderr);
|
|
586
|
-
if (out.length && r.exitCode === 0)
|
|
586
|
+
if (out.length && r.exitCode === 0) {
|
|
587
|
+
const noun = out.length === 1 ? "line" : "lines";
|
|
588
|
+
return { reason: `printed ${out.length} ${noun} to stdout and exited 0` };
|
|
589
|
+
}
|
|
587
590
|
if (out.length) return { reason: `printed help to stdout but ${exitText(r)}` };
|
|
588
591
|
if (err.length) return { reason: `printed help to stderr and ${exitText(r)}, so "--help | less" and agents reading stdout get nothing` };
|
|
589
592
|
return { reason: `printed nothing and ${exitText(r)}` };
|
|
@@ -850,12 +853,29 @@ function findStyle(text) {
|
|
|
850
853
|
};
|
|
851
854
|
}
|
|
852
855
|
}
|
|
853
|
-
/**
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
856
|
+
/**
|
|
857
|
+
* Every control code findControls() knows, as alternatives tried in this order at each
|
|
858
|
+
* position, so one sequence is never counted twice:
|
|
859
|
+
* - csi: ESC [ parameter bytes, intermediate bytes, one final byte;
|
|
860
|
+
* - osc: ESC ] number ; text, ended by BEL or ESC ;
|
|
861
|
+
* - oscOther: any other OSC, such as ESC ] 104 BEL (no ";");
|
|
862
|
+
* - string: DCS, SOS, PM or APC (ESC P, X, ^ or _), with its text when ST ends it;
|
|
863
|
+
* - reset: ESC c, a full reset that clears the screen;
|
|
864
|
+
* - escape: any other ESC sequence: intermediates (ESC ( B) or one final byte (ESC 7);
|
|
865
|
+
* - c1: an 8-bit CSI, OSC, DCS, SOS, PM or APC introducer, with what it carries;
|
|
866
|
+
* - redraw: a carriage return that does not end a CRLF line: a line being redrawn.
|
|
867
|
+
* ESC \ (ST) alone ends a string and starts nothing.
|
|
868
|
+
*/
|
|
869
|
+
const CONTROL = new RegExp([
|
|
870
|
+
String.raw`(?<csi>\x1b\[(?<params>[0-?]*)[ -/]*(?<final>[@-~]))`,
|
|
871
|
+
String.raw`(?<osc>\x1b\](?<code>\d*);[^\x07\x1b]*(?:\x07|\x1b\\))`,
|
|
872
|
+
String.raw`(?<oscOther>\x1b\][^\x07\x1b]*(?:\x07|\x1b\\))`,
|
|
873
|
+
String.raw`(?<string>\x1b[PX^_](?:[^\x1b]*\x1b\\)?)`,
|
|
874
|
+
String.raw`(?<reset>\x1bc)`,
|
|
875
|
+
String.raw`(?<escape>\x1b(?:[ -/]+[0-~]|[0-OQ-WYZ\x60-bd-~]))`,
|
|
876
|
+
String.raw`(?<c1>\x9b[0-?]*[ -/]*[@-~]?|[\x90\x98\x9d\x9e\x9f][^\x07\x1b\x9c]*(?:\x07|\x9c|\x1b\\)?)`,
|
|
877
|
+
String.raw`(?<redraw>\r(?!\n))`
|
|
878
|
+
].join("|"), "g");
|
|
859
879
|
/** How each kind reads in a report. */
|
|
860
880
|
const CONTROL_LABELS = {
|
|
861
881
|
cursor: "cursor movement",
|
|
@@ -864,7 +884,11 @@ const CONTROL_LABELS = {
|
|
|
864
884
|
hyperlink: "hyperlink (OSC 8)",
|
|
865
885
|
title: "window title",
|
|
866
886
|
osc: "operating system command (OSC)",
|
|
867
|
-
redraw: "carriage-return redraw"
|
|
887
|
+
redraw: "carriage-return redraw",
|
|
888
|
+
escape: "other escape sequence (such as saving the cursor or switching the character set)",
|
|
889
|
+
reset: "full terminal reset (ESC c)",
|
|
890
|
+
string: "device control string (DCS, APC, PM or SOS)",
|
|
891
|
+
c1: "8-bit control sequence (C1)"
|
|
868
892
|
};
|
|
869
893
|
function csiKind(params, final) {
|
|
870
894
|
if (final === "m") return void 0;
|
|
@@ -877,7 +901,7 @@ function oscKind(code) {
|
|
|
877
901
|
if (code === "0" || code === "1" || code === "2") return "title";
|
|
878
902
|
return "osc";
|
|
879
903
|
}
|
|
880
|
-
function hitAt(text, index, sequence, kind) {
|
|
904
|
+
function hitAt(text, index, sequence, kind, warnOnly) {
|
|
881
905
|
const before = text.slice(0, index);
|
|
882
906
|
const start = before.lastIndexOf("\n") + 1;
|
|
883
907
|
const newline = text.indexOf("\n", index);
|
|
@@ -886,32 +910,37 @@ function hitAt(text, index, sequence, kind) {
|
|
|
886
910
|
kind,
|
|
887
911
|
sequence,
|
|
888
912
|
line: before.split("\n").length,
|
|
889
|
-
text: text.slice(start, end).slice(0, 120)
|
|
913
|
+
text: text.slice(start, end).slice(0, 120),
|
|
914
|
+
warnOnly
|
|
890
915
|
};
|
|
891
916
|
}
|
|
917
|
+
/** The kind of one CONTROL match, and whether it may only warn; undefined for SGR. */
|
|
918
|
+
function classify(g) {
|
|
919
|
+
if (g["csi"] !== void 0) {
|
|
920
|
+
const kind = csiKind(g["params"] ?? "", g["final"] ?? "");
|
|
921
|
+
return kind && [kind, false];
|
|
922
|
+
}
|
|
923
|
+
if (g["osc"] !== void 0) return [oscKind(g["code"] ?? ""), false];
|
|
924
|
+
if (g["redraw"] !== void 0) return ["redraw", false];
|
|
925
|
+
if (g["oscOther"] !== void 0) return ["osc", true];
|
|
926
|
+
if (g["string"] !== void 0) return ["string", true];
|
|
927
|
+
if (g["reset"] !== void 0) return ["reset", true];
|
|
928
|
+
if (g["escape"] !== void 0) return ["escape", true];
|
|
929
|
+
return ["c1", true];
|
|
930
|
+
}
|
|
892
931
|
/**
|
|
893
932
|
* Every terminal control code in the text other than color and style (SGR):
|
|
894
933
|
* cursor movement, erases, mode switches, OSC sequences such as hyperlinks and
|
|
895
|
-
* window titles,
|
|
934
|
+
* window titles, carriage returns that redraw a line, and (warn-only) the other
|
|
935
|
+
* ESC sequences, control strings and 8-bit controls. In reading order.
|
|
896
936
|
*/
|
|
897
937
|
function findControls(text) {
|
|
898
938
|
const hits = [];
|
|
899
|
-
for (const m of text.matchAll(
|
|
900
|
-
const
|
|
901
|
-
if (
|
|
902
|
-
index: m.index,
|
|
903
|
-
hit: hitAt(text, m.index, m[0], kind)
|
|
904
|
-
});
|
|
939
|
+
for (const m of text.matchAll(CONTROL)) {
|
|
940
|
+
const found = classify(m.groups ?? {});
|
|
941
|
+
if (found) hits.push(hitAt(text, m.index, m[0], ...found));
|
|
905
942
|
}
|
|
906
|
-
|
|
907
|
-
index: m.index,
|
|
908
|
-
hit: hitAt(text, m.index, m[0], oscKind(m[1] ?? ""))
|
|
909
|
-
});
|
|
910
|
-
for (const m of text.matchAll(BARE_CR)) hits.push({
|
|
911
|
-
index: m.index,
|
|
912
|
-
hit: hitAt(text, m.index, m[0], "redraw")
|
|
913
|
-
});
|
|
914
|
-
return hits.sort((a, b) => a.index - b.index).map((h) => h.hit);
|
|
943
|
+
return hits;
|
|
915
944
|
}
|
|
916
945
|
const ANY_ESCAPE = /\x1b\[[0-?]*[ -/]*[@-~]|\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)/g;
|
|
917
946
|
/** The text with CSI and OSC escape sequences (color, cursor, links, titles) removed. */
|
|
@@ -1556,13 +1585,16 @@ const controlCharsCheck = {
|
|
|
1556
1585
|
kind: "check",
|
|
1557
1586
|
summary: "prints control characters from file names raw to the terminal",
|
|
1558
1587
|
async run(target, ctx) {
|
|
1559
|
-
if (target.fixtureDir === void 0)
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1588
|
+
if (target.fixtureDir === void 0) {
|
|
1589
|
+
const own = target.probes.filter((p) => p.own);
|
|
1590
|
+
return (own.length ? own.map((p) => [target.command, ...p.args]) : [[target.command]]).map((invocation) => ({
|
|
1591
|
+
check: "control-chars",
|
|
1592
|
+
invocation,
|
|
1593
|
+
...judgeControlChars({ usesFixture: false }),
|
|
1594
|
+
terminalRaw: [],
|
|
1595
|
+
pipeRaw: []
|
|
1596
|
+
}));
|
|
1597
|
+
}
|
|
1566
1598
|
const dir = target.fixtureDir;
|
|
1567
1599
|
const results = [];
|
|
1568
1600
|
for (const { args } of target.probes.filter((p) => p.args.some((a) => a.includes(dir)))) results.push(await controlChars(target.command, args, dir, ctx));
|
|
@@ -1785,6 +1817,8 @@ function listLabels$1(kinds) {
|
|
|
1785
1817
|
* Escape sequences (cursor, erase, mode, hyperlink, title, other OSC) in a pipe fail: no
|
|
1786
1818
|
* real tool in the censuses printed one there except by mistake. A carriage-return redraw
|
|
1787
1819
|
* alone only warns, because some tools draw a progress meter on stderr by design (curl).
|
|
1820
|
+
* The sequences added in 1.5 (other ESC sequences, a full reset, control strings, OSC
|
|
1821
|
+
* without ";", 8-bit controls) only warn until a census calibrates them (#42).
|
|
1788
1822
|
*/
|
|
1789
1823
|
function judgePipeEscapes(r) {
|
|
1790
1824
|
if (r.spawnError) return {
|
|
@@ -1799,14 +1833,26 @@ function judgePipeEscapes(r) {
|
|
|
1799
1833
|
stream: "stderr",
|
|
1800
1834
|
hit
|
|
1801
1835
|
}))];
|
|
1802
|
-
const escape = hits.find((h) => h.hit.kind !== "redraw");
|
|
1803
|
-
const
|
|
1836
|
+
const escape = hits.find((h) => h.hit.kind !== "redraw" && !h.hit.warnOnly);
|
|
1837
|
+
const newEscape = hits.find((h) => h.hit.warnOnly);
|
|
1838
|
+
const first = escape ?? newEscape ?? hits[0];
|
|
1804
1839
|
if (first) {
|
|
1805
1840
|
const kinds = [...new Set(hits.map((h) => h.hit.kind))];
|
|
1841
|
+
const evidence = `${first.stream} line ${first.hit.line}: ${first.hit.text}`;
|
|
1842
|
+
if (escape) return {
|
|
1843
|
+
verdict: "fail",
|
|
1844
|
+
reason: `printed terminal control codes into a pipe: ${listLabels$1(kinds)}`,
|
|
1845
|
+
evidence
|
|
1846
|
+
};
|
|
1847
|
+
if (newEscape) return {
|
|
1848
|
+
verdict: "warn",
|
|
1849
|
+
reason: `printed terminal control codes into a pipe: ${listLabels$1(kinds)}; a new finding, so only a warning for now`,
|
|
1850
|
+
evidence
|
|
1851
|
+
};
|
|
1806
1852
|
return {
|
|
1807
|
-
verdict:
|
|
1808
|
-
reason:
|
|
1809
|
-
evidence
|
|
1853
|
+
verdict: "warn",
|
|
1854
|
+
reason: "redrew lines with carriage returns in a pipe, as a progress meter does",
|
|
1855
|
+
evidence
|
|
1810
1856
|
};
|
|
1811
1857
|
}
|
|
1812
1858
|
if (!stdout && !r.stderr) return r.timedOut ? {
|
|
@@ -1863,7 +1909,6 @@ function listLabels(modes) {
|
|
|
1863
1909
|
const WRAPPER_EXEC_FAILED = /^sh: [^\n]*(cannot execute|exec format error)/i;
|
|
1864
1910
|
/** What the Ctrl-C key sends to a terminal. */
|
|
1865
1911
|
const CTRL_C_KEY = "";
|
|
1866
|
-
const showSequence = (sequence) => sequence.replaceAll("\x1B", "ESC");
|
|
1867
1912
|
function judgeRestore(r) {
|
|
1868
1913
|
if (r.spawnError) return {
|
|
1869
1914
|
verdict: "error",
|
|
@@ -1883,7 +1928,7 @@ function judgeRestore(r) {
|
|
|
1883
1928
|
if (open.length > 0) return {
|
|
1884
1929
|
verdict: "warn",
|
|
1885
1930
|
reason: `left the terminal with ${listLabels(open)} ${when}`,
|
|
1886
|
-
evidence: open.map((m) => `${
|
|
1931
|
+
evidence: open.map((m) => `${m.sequence} on line ${m.line}, never undone`).join("; ")
|
|
1887
1932
|
};
|
|
1888
1933
|
return {
|
|
1889
1934
|
verdict: "pass",
|
|
@@ -2291,20 +2336,41 @@ const COLORS = {
|
|
|
2291
2336
|
error: 35,
|
|
2292
2337
|
info: 36
|
|
2293
2338
|
};
|
|
2339
|
+
const CUT = " ... (--json has the rest)";
|
|
2340
|
+
/**
|
|
2341
|
+
* Evidence for one line of the report: escaped as safe() does, with a backslash from
|
|
2342
|
+
* the program doubled, so the text `\x1b` can't pass for a real escape. Past the limit
|
|
2343
|
+
* it ends at a word, or between two escapes, never inside one, and says it was cut.
|
|
2344
|
+
*/
|
|
2345
|
+
function showEvidence(evidence, limit = 200) {
|
|
2346
|
+
const pieces = Array.from(evidence, (c) => c === "\\" ? "\\\\" : safe(c));
|
|
2347
|
+
let shown = "";
|
|
2348
|
+
let wordEnd = 0;
|
|
2349
|
+
for (const piece of pieces) {
|
|
2350
|
+
if (shown.length + piece.length > limit) return (wordEnd > limit * .6 ? shown.slice(0, wordEnd) : shown) + CUT;
|
|
2351
|
+
if (piece === " ") wordEnd = shown.length;
|
|
2352
|
+
shown += piece;
|
|
2353
|
+
}
|
|
2354
|
+
return shown;
|
|
2355
|
+
}
|
|
2294
2356
|
function formatHuman({ version, command, checks, strict, results }, { color }) {
|
|
2295
2357
|
const paint = (verdict) => {
|
|
2296
2358
|
const label = verdict.toUpperCase().padEnd(5);
|
|
2297
2359
|
return color ? `\x1b[${COLORS[verdict]}m${label}\x1b[0m` : label;
|
|
2298
2360
|
};
|
|
2299
|
-
const
|
|
2361
|
+
const shownInvocation = (invocation) => safe(shellJoin(invocation));
|
|
2362
|
+
const width = Math.max(0, ...results.map((r) => shownInvocation(r.invocation).length).filter((length) => length <= 40));
|
|
2363
|
+
const indent = ` ${" ".repeat(5)} ${" ".repeat(width)} `;
|
|
2300
2364
|
const noun = checks.length === 1 ? "check" : "checks";
|
|
2301
2365
|
const lines = [`cliprobe ${version}: ${checks.join(", ")} ${noun} for ${safe(command)}`];
|
|
2302
2366
|
for (const check of checks) {
|
|
2303
2367
|
lines.push("");
|
|
2304
2368
|
if (checks.length > 1) lines.push(check);
|
|
2305
2369
|
for (const r of results.filter((result) => result.check === check)) {
|
|
2306
|
-
|
|
2307
|
-
if (
|
|
2370
|
+
const invocation = shownInvocation(r.invocation);
|
|
2371
|
+
if (invocation.length > width) lines.push(` ${paint(r.verdict)} ${invocation}`, `${indent}${safe(r.reason)}`);
|
|
2372
|
+
else lines.push(` ${paint(r.verdict)} ${invocation.padEnd(width)} ${safe(r.reason)}`);
|
|
2373
|
+
if (r.evidence) lines.push(`${indent}${showEvidence(r.evidence)}`);
|
|
2308
2374
|
}
|
|
2309
2375
|
}
|
|
2310
2376
|
lines.push("", summaryLine(countVerdicts(results), strict));
|
|
@@ -2724,7 +2790,9 @@ Checks:
|
|
|
2724
2790
|
pipe-escapes Runs the command into a pipe. Fails if cursor movement, erase,
|
|
2725
2791
|
mode switch, hyperlink or window title codes (spinners,
|
|
2726
2792
|
progress bars, prompts) reach stdout or stderr; warns if only
|
|
2727
|
-
carriage returns redraw a line, as a progress meter does
|
|
2793
|
+
carriage returns redraw a line, as a progress meter does, or
|
|
2794
|
+
for other escape sequences (save cursor, full reset, control
|
|
2795
|
+
strings, 8-bit controls), which it does not fail on yet.
|
|
2728
2796
|
stdin Runs the command with stdin as an open pipe nobody writes to,
|
|
2729
2797
|
as agents and CI runners often leave it. Fails if --version or
|
|
2730
2798
|
--help waits for input; for your own probes, warns if it
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cliprobe",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Black-box test any command-line program for terminal-edge bugs: crashes on a closed pipe (| head), color and control codes leaking into pipes, hangs waiting on stdin, broken Ctrl-C handling, child processes left running after SIGTERM, a terminal left broken after Ctrl-C, and control characters from file names reaching your terminal.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/schema.json
CHANGED
|
@@ -89,7 +89,20 @@
|
|
|
89
89
|
"description": "fail sets exit code 1; error means the probe could not run; info comes only from info checks."
|
|
90
90
|
},
|
|
91
91
|
"controlKind": {
|
|
92
|
-
"
|
|
92
|
+
"description": "A kind of terminal control code. escape, reset, string and c1 were added in 1.5 and only warn for now.",
|
|
93
|
+
"enum": [
|
|
94
|
+
"cursor",
|
|
95
|
+
"erase",
|
|
96
|
+
"mode",
|
|
97
|
+
"hyperlink",
|
|
98
|
+
"title",
|
|
99
|
+
"osc",
|
|
100
|
+
"redraw",
|
|
101
|
+
"escape",
|
|
102
|
+
"reset",
|
|
103
|
+
"string",
|
|
104
|
+
"c1"
|
|
105
|
+
]
|
|
93
106
|
},
|
|
94
107
|
"result": {
|
|
95
108
|
"type": "object",
|