Repository navigation
Give sight console its own terminal colors instead of copying the editor's - #452
Merged
Merged
Conversation
Contributor
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. Next included review available in 9 minutes. View limit details
|
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.
#450 matched
sight console's input colors to VS Code's Dark+/Light+ editor colors. That match can't hold: the console runs in any terminal, and even in VS Code's Stata pane the terminal's 16 colors come from the terminal palette, not the editor theme. Testing in real terminals also showed the #450 colors, and some original ones, reading badly. Light-theme yellow strings were low-contrast, and plain blue nearly disappears on dark xterm and Windows-console palettes.This PR gives the console a palette chosen for terminals. It keeps #450's work on control words (
if,else,foreachin command position, and} else).if/ininblue)#0000eeon black in xterm) was close to invisible. That's also why the old bluequietly/if/inchanged to magenta.Proof:
sight consoleon macOS, with typed commands, a do-file echo, a collinearitynote:and errors, under each of the three palettes.bun test ./testsand the PTY integration tests pass.Reviewed with sol-loop: 1 round with gpt-6.2-sol. Sol verdict: approved. Design input from gpt-6.2-astra.
Created with Claude Opus 5.5 in Claude Code (T3 Code).