Skip to content

Show the startup banner only when stdin is a tty - #1238

Merged
tompng merged 1 commit into
ruby:masterfrom
RubyElders:tty-banner
Aug 30, 2026
Merged

Show the startup banner only when stdin is a tty#1238
tompng merged 1 commit into
ruby:masterfrom
RubyElders:tty-banner

Conversation

@simi

@simi simi commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

The banner was printed for any exe/irb run without a script argument, so piped sessions like echo '1+1' | irb got it on stdout. The tip line is picked at random, which also made that output differ between runs.

The banner was printed for any `exe/irb` run without a script argument, so
piped sessions like `echo '1+1' | irb` got it on stdout. The tip line is picked
at random, which also made that output differ between runs.

@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.

👍

@tompng
tompng merged commit 5eed6e0 into ruby:master Aug 30, 2026
40 checks passed
@simi
simi deleted the tty-banner branch August 30, 2026 06:23
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.

2 participants