Skip to content

Conversation

ChrisRackauckas
Copy link
Member

Summary

  • Makes the REPL banner responsive to terminal width to avoid wrapping
  • Enhances the banner with styled strings for better appearance
  • Provides 4 different banner sizes based on terminal width

Background

This is a rebased version of PR #51811. The original PR improves the Julia REPL experience by making the startup banner adapt to the terminal size.

Changes

  • Modified base/client.jl to handle banner sizing logic
  • Updated stdlib/REPL/src/REPL.jl with responsive banner implementation
  • Enhanced banner styling using StyledStrings:
    • Colored help and Pkg key prompts
    • Terminal links for documentation
    • Box drawing characters for dividers
    • Colorful branch status
    • Subdued official version text

Banner Variants (smallest to largest)

  1. One-liner for extreme circumstances (new)
  2. Short banner
  3. Large banner with stacked description (new)
  4. Large banner with horizontal description

🤖 Generated with Claude Code

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
@KristofferC
Copy link
Member

KristofferC commented Jul 23, 2025

I don't think this should be a new PR with all the discussion just flat out lost. The way to do it is to push the rebase to the same PR (or if no commit right, add a commit to the rebased version so the author can pull that in).

@ChrisRackauckas
Copy link
Member Author

I don't have access for that.

@ChrisRackauckas ChrisRackauckas deleted the banner-size-rebase branch July 23, 2025 03: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.

4 participants