Skip to content

docs: publish ASCII art and TUI design research - #167

Merged
m1ngsama merged 23 commits into
mainfrom
docs/ascii-art-tui-research
Oct 31, 2026
Merged

m1ngsama merged 23 commits into
mainfrom
docs/ascii-art-tui-research

Conversation

@m1ngsama

@m1ngsama m1ngsama commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Prompt needs a shared reference for terminal design, grounded in how the app actually behaves.

src/plugins/theme.ts and src/styles/global.css change code blocks site-wide: the theme plugin overwrote Shiki's class, so code blocks after a paragraph lost astro-code styling and inherited body line height (about 1.7). They now keep their gray background and use a 1.35 line height.

The article follows character art from 1898 typewriter work through Rogue, BBS, Amiga, and PTT art to modern TUIs. It then checks Prompt v1.5.23 in a real pseudoterminal: startup animation, ASCII emblems, tabs, tiered ASCII pictures, capability fallbacks (ASCII, NO_COLOR, pipes), sizes from 24×10 to 140×40, width calculation, redraw, and escape-sequence sanitizing. The four problems found in v1.5.22 (nbtca/Prompt#93 to #96) are fixed in Prompt, so the article now describes the fixes. It closes with design questions that are still open.

All Prompt screenshots are captured from the running program, except the startup animation and the piped nbtca status output, which are unchanged since v1.5.22. The ASCII emblem figure comes from Prompt v1.5.24. Historical images are public domain or used under CC BY / CC BY-SA with attribution. The cover is a text-free image. 31 images including the cover total about 1.5 MiB, mostly WebP. No new dependencies.

Validation: pnpm run build.

@m1ngsama
m1ngsama enabled auto-merge (squash) October 24, 2026 08:13
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Deploying home with  Cloudflare Pages  Cloudflare Pages

Latest commit: d3bf512
Status: ✅  Deploy successful!
Preview URL: https://b7c3496a.fuji-2ku.pages.dev
Branch Preview URL: https://docs-ascii-art-tui-research.fuji-2ku.pages.dev

View logs

The theme plugin replaced the pre element's class list, so code blocks that follow a paragraph lost astro-code styling and inherited body line height. Merge Shiki's class string and set a 1.35 line height.
@m1ngsama
m1ngsama merged commit 53f4eb3 into main Oct 31, 2026
4 checks passed
@m1ngsama
m1ngsama deleted the docs/ascii-art-tui-research branch October 31, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant