Skip to content

Add startup banner with Ruby logo, version info, and tips#1183

Merged
st0012 merged 1 commit into
masterfrom
startup-visual
Mar 15, 2026
Merged

Add startup banner with Ruby logo, version info, and tips#1183
st0012 merged 1 commit into
masterfrom
startup-visual

Conversation

@st0012

@st0012 st0012 commented Mar 13, 2026

Copy link
Copy Markdown
Member

Summary

  • Display a 3-line startup banner when IRB starts from the irb executable, showing a small braille Ruby logo, version/Ruby info, a rotating tip, and the working directory
    • binding.irb or IRB.start sessions will not see this banner.
  • Users can disable via IRB.conf[:SHOW_BANNER] = false in .irbrc
Screenshot 2026-03-13 at 16 43 18
@st0012 st0012 added the enhancement New feature or request label Mar 13, 2026
@st0012 st0012 force-pushed the startup-visual branch 3 times, most recently from 2282e74 to 31876da Compare March 15, 2026 13:25
@st0012 st0012 marked this pull request as ready for review March 15, 2026 13:27
Comment thread lib/irb/ruby_logo.aa Outdated
⠻⣧⡀ ⠘⣧⣰⡏ ⢀⣠⣤⠶⠛⠉⠛⠛⠛⠛⠛⠛⠻⢶⣶⣶⣶⣶⣶⣤⣤⣽⣿⣿
⠈⠛⠷⢦⣤⣽⣿⣥⣤⣶⣶⡿⠿⠿⠶⠶⠶⠶⠾⠛⠛⠛⠛⠛⠛⠛⠋⠉⠉⠉⠉⠉⠉⠁
TYPE: UNICODE_SMALL
⢀⡴⠊⢉⡟⢟

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about filling the rightmost line?
⢀⡴⠊⢉⡟⢟

⢀⡴⠊⢉⡟⢿

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated 👍

@tompng

tompng commented Mar 15, 2026

Copy link
Copy Markdown
Member

For comparison:
Some other REPL prints 2+ lines before prompt.

$ node
Welcome to Node.js v24.13.0.
Type ".help" for more information.
> 
$ python3
Python 3.13.3 (main, Apr  8 2025, 13:54:08) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 
$ ipython
Python 3.9.6 (default, Apr 30 2025, 02:07:17) 
Type 'copyright', 'credits' or 'license' for more information
IPython 8.18.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: 

@tompng tompng left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it. It's nice 😄

Display a 3-line startup banner when IRB is launched via the CLI
executable. The banner shows a small braille Ruby logo alongside
the IRB/Ruby version, a randomly selected usage tip, and the
current working directory.

The banner is gated on ap_path matching "irb" so it only appears
for CLI usage, not binding.irb or embedded IRB. Users can disable
it with IRB.conf[:SHOW_BANNER] = false in their .irbrc.
@st0012 st0012 merged commit cba8ee1 into master Mar 15, 2026
80 checks passed
@st0012 st0012 deleted the startup-visual branch March 15, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

2 participants