@north-light/crouter 0.3.274 → 0.3.275
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/clients/attach/viewer.js +416 -416
- package/dist/core/canvas/browse/render.js +82 -67
- package/dist/core/canvas/status-glyph.d.ts +4 -3
- package/dist/core/canvas/status-glyph.js +17 -9
- package/dist/core/runtime/surface-bg.d.ts +6 -4
- package/dist/core/runtime/surface-bg.js +39 -22
- package/dist/core/tui/draw.d.ts +2 -0
- package/dist/core/tui/draw.js +15 -0
- package/package.json +1 -1
- package/runtime.lock.json +2 -2
package/dist/core/tui/draw.js
CHANGED
|
@@ -22,6 +22,21 @@ const REVERSE = `${ESC}7m`;
|
|
|
22
22
|
const DIM = `${ESC}2m`;
|
|
23
23
|
const BOLD = `${ESC}1m`;
|
|
24
24
|
const ITALIC = `${ESC}3m`;
|
|
25
|
+
// ── The recessive text ramp ────────────────────────────────────────────
|
|
26
|
+
//
|
|
27
|
+
// Two explicit greys for text that must sit BEHIND the primary content without
|
|
28
|
+
// disappearing into it. Use these instead of the two things that look equivalent
|
|
29
|
+
// and are not:
|
|
30
|
+
//
|
|
31
|
+
// - basic-16 bright-black (`90`) resolves against the TERMINAL's palette, which
|
|
32
|
+
// a dark theme routinely sets within a hair of its own background;
|
|
33
|
+
// - SGR DIM (`2`) is a multiplier, so stacking it on an already-dark grey lands
|
|
34
|
+
// at mud — and stacking it on THESE would undo the contrast they encode.
|
|
35
|
+
//
|
|
36
|
+
// Never combine either with these. Ratios below are against the two planes a
|
|
37
|
+
// raw-ANSI view can render on: a bare dark terminal and a themed popup card.
|
|
38
|
+
export const META_FG = '38;5;246'; // 4.3–4.9:1 — metadata you actively scan
|
|
39
|
+
export const RECESSIVE_FG = '38;5;243'; // 2.9–3.3:1 — deliberately behind, still read
|
|
25
40
|
/** An SGR fg/bg parameter is digits and semicolons only (e.g. '32', '1;36', '236').
|
|
26
41
|
* Guards styleSpan against a non-numeric value (a color name) producing a broken
|
|
27
42
|
* escape sequence. */
|
package/package.json
CHANGED
package/runtime.lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/crouter",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.275",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@north-light/crouter",
|
|
9
|
-
"version": "0.3.
|
|
9
|
+
"version": "0.3.275",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|