terminal-mushroom 1.0.0 → 1.0.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/package.json +1 -1
- package/terminal-mushroom.js +5 -3
package/package.json
CHANGED
package/terminal-mushroom.js
CHANGED
|
@@ -83,11 +83,13 @@ function colorArt() {
|
|
|
83
83
|
const px = (row) => (row?.[x] === "a" ? "." : row?.[x] ?? ".");
|
|
84
84
|
const t = px(PIXELS[y]), b = px(PIXELS[y + 1]);
|
|
85
85
|
if (t === "." && b === ".") { set(fg, null); line += " "; }
|
|
86
|
-
//
|
|
87
|
-
|
|
86
|
+
// Both colours on a full block. Codex drops the background of some space runs, and
|
|
87
|
+
// Terminal.app's block glyphs leave a seam that shows whatever background is set.
|
|
88
|
+
else if (t === b) { set(t, t); line += "█"; }
|
|
88
89
|
else if (t === ".") { set(b, null); line += "▄"; }
|
|
89
90
|
else if (b === ".") { set(t, null); line += "▀"; }
|
|
90
|
-
|
|
91
|
+
// Lower half, not upper: Terminal.app draws "▀" a few pixels below the cell top.
|
|
92
|
+
else { set(b, t); line += "▄"; }
|
|
91
93
|
}
|
|
92
94
|
rows.push(line.trimEnd() + "\x1b[0m");
|
|
93
95
|
}
|