Versions 81 to 82
Lines 22–44 at 82 (were 22–40 at 81)
2323
25− * An SGR sequence without parameter 8 (conceal), which would hide the text after it from the reader. The 8 in an
26− * extended color (38;5;8, 48;2;8;8;8) is a color, so those are copied whole. Nothing is left when 8 was all it said.
25+ * An SGR sequence without parameter 8 (conceal), which would hide the text after it from the reader. Parameters
26+ * are read by value, as a terminal reads them: 08 and 8:1 are 8 too. The 8 in an extended color (38;5;8,
27+ * 48;2;8;8;8, 038;05;8) is a color, so those are copied whole. Nothing is left when 8 was all it said.
31+ const value = (p: string | undefined) => (p === undefined ? Number.NaN : Number(p.split(":")[0]));
33− if ((p === "38" || p === "48" || p === "58") && (parts[i + 1] === "5" || parts[i + 1] === "2")) {
34− const n = parts[i + 1] === "5" ? 3 : 5;
37− } else if (p !== "8") kept.push(p);
- MCP
- compare on this site's /mcp
- CLI
- abso diff 81 82 client/src/terminal-text.ts --json
- JSON
- /christopher/abso-core/compare/81..82?file=client%2Fsrc%2Fterminal-text.ts&format=json