Skip to content

REPL: Add restyled sized banners to avoid wrapping - #63565

Open
tecosaur wants to merge 1 commit into
JuliaLang:masterfrom
tecosaur:banner-reland
Open

tecosaur wants to merge 1 commit into
JuliaLang:masterfrom
tecosaur:banner-reland

Conversation

@tecosaur

@tecosaur tecosaur commented Oct 4, 2026

Copy link
Copy Markdown
Member

Re-land of #51811, with tagged releases fixed, some extra tests, and a minor styling tweak based on the last few comments in that PR.

TLDR; slightly prettified banner, and two extra banner variants for narrow and few-row sized windows, with the largest banner that fits in the current terminal window automatically selected by default.

image

We also spritz it up a bit using the new StyledStrings library, namely:
- colouring the Help and Pkg key prompts
- making the docs link a terminal link, and Pkg a link to the Pkg docs
- using box drawing characters for the dividing line
- making branch status more colourful
- making the official version text more subdued

With these change the four banners (from smallest to largest) are:
1. A one-liner, for extreme circumstances (new)
2. The short banner
3. The large banner, with the description stacked vertically (new)
4. The large banner, with the description stacked horizontally

This relands JuliaLang#51811, which was reverted (JuliaLang#59984) due to an
`UnvefVarError` that was only hit on tagged releases. That has been
fixed here. I have also found that printing the banner at startup
compiled 11-16 methods, mostly `Dict{Tuple{Symbol, Any}, Int}` lookups
that StyledStrings reaches through runtime dispatch, and the narrow,
short, and tiny layouts that the precompile workload never rendered. The
workload now renders every layout and precompiles those lookups.
@tecosaur tecosaur added REPL Julia's REPL (Read Eval Print Loop) display and printing Aesthetics and correctness of printed representations of objects. re-land This relands a PR that was previously merged but was later reverted. labels Oct 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

display and printing Aesthetics and correctness of printed representations of objects. re-land This relands a PR that was previously merged but was later reverted. REPL Julia's REPL (Read Eval Print Loop)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant