Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

test(pty-markdown): headings render in the emerald accent, not coral

Rach Pradhance555692f4ac
diff --git a/scripts/test-pty-markdown.py b/scripts/test-pty-markdown.py
index 0de59282..a158c452 100755
--- a/scripts/test-pty-markdown.py
+++ b/scripts/test-pty-markdown.py
@@ -10,7 +10,9 @@ from pty_harness import run_to_exit
_arg = sys.argv[1] if len(sys.argv) > 1 else "graff"
GRAFF = os.path.abspath(_arg) if os.sep in _arg else _arg
-CORAL = b"\x1b[38;2;196;81;61m"
+# Headings were coral; the palette alignment moved them to the emerald accent
+# (ansi.zig style.accent — coral read as error red).
+ACCENT = b"\x1b[38;2;5;150;105m"
def main() -> None:
@@ -49,7 +51,7 @@ def main() -> None:
missing = [line for line in expected if line not in result.text]
if missing:
raise SystemExit(f"Markdown render missing {missing!r}\n--- transcript ---\n{result.text}")
- for ansi in (CORAL, b"\x1b[33m", b"\x1b[32m"):
+ for ansi in (ACCENT, b"\x1b[33m", b"\x1b[32m"):
if ansi not in result.raw:
raise SystemExit(f"Markdown render missing ANSI style {ansi!r}")
print("ok PTY Markdown headings, lists, tasks, quotes, inline styles, and ANSI")