Skip to content

Enable color if console is a tty#7693

Merged
headius merged 1 commit intojruby:masterfrom
headius:color_if_tty
Feb 28, 2023
Merged

Enable color if console is a tty#7693
headius merged 1 commit intojruby:masterfrom
headius:color_if_tty

Conversation

@headius
Copy link
Member

@headius headius commented Feb 28, 2023

When outputting exception traces and IR printing to the console, use color by default if the console is attached to a TTY. We detect this by checking whether System.console() produces a non-null result.

When outputting exception traces and IR printing to the console,
use color by default if the console is attached to a TTY. We
detect this by checking whether System.console() produces a
non-null result.
@headius headius added this to the JRuby 9.4.2.0 milestone Feb 28, 2023
@headius headius merged commit dabc23e into jruby:master Feb 28, 2023
@headius headius deleted the color_if_tty branch February 28, 2023 20:44
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.

1 participant