Repository navigation
feat(cli): restyle the shell in black and white - #16
Merged
Merged
Conversation
The shell paints every cell in grays from one palette, on a near-black background, so it looks the same in light and dark terminals. It opens on a home screen with the evorca wordmark, a tagline, and the input box. Once a line adds to the transcript, the session view replaces the home screen. A footer shows the working directory and the version. wordmark.ts draws the wordmark from pixel glyphs in a three-row block font and replaces banner.ts.
The wordmark sweeps in from the left when the shell opens, and a lighter band crosses it every 8 s. While the input box is empty, its placeholder types out example questions, holds each one, and erases it. motion.ts gives each animation as a pure function of time, with a phase that says whether it moves and for how long. The shell drives them from the renderer's animation clock at 30 fps while a phase moves. While none moves, it sets one timer for the next movement, and it stops when nothing will move. A resting wordmark keeps one frame, so the frames that type the placeholder do not redraw it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
pnpm evorcaopened a shell with a teal-to-indigo banner on the terminal's own colors. The goal is a calmer black-and-white look in the style of opencode, with a little motion. This PR restyles the shell in grays and adds three short animations. The commands and replies stay the same.What changed
shell.tsxdraws every color from one graypalette. It shows a home screen with the wordmark and the input box until the first line, then the transcript view with the input box at the bottom.wordmark.tsreplacesbanner.tswith a three-row block font for "evorca".motion.tstimes the wordmark's sweep and shimmer and the placeholder that types out example questions.Scope
/help,/exit, ctrl+c, the replies, the terminal check, and the on-demand import of the shell stay as they were.Blast Radius
Only the interactive shell changes.
evorca fetchandevorca reproducenever load the shell module, and their exit codes in the verification run are unchanged.Verification
pnpm checkpasses. The shell tests drive the real component under a manual clock, including the typewriter, the sweep, the gray-only colors, and the stopped clock./exitand ctrl+c.Home screen, 1 s after start, at 100x30 (OpenTUI's test renderer, directory set to
~/incidents):Transcript view after
helloand/help, same setup: