Skip to content

Conversation

nobu
Copy link
Member

@nobu nobu commented Apr 7, 2021

Currently IRB::Color.colorize and IRB::Color.colorize_code refer $stdin.tty? internally.

This patch adds colorable keyword option which overrides it.

Copy link
Contributor

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

👍 The test helper method assert_equal_with_term turned out good, too!

Copy link
Member

@aycabta aycabta left a comment

Choose a reason for hiding this comment

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

Please add a backquote to b44af24 and the description of this Pull Request.

nobu added 4 commits April 8, 2021 21:46
Currently `IRB::Color.colorize` and `IRB::Color.colorize_code`
refer `$stdin.tty?` internally.
This patch adds `colorable` keyword option which overrides it.
@nobu nobu requested a review from aycabta April 8, 2021 12:51
@aycabta aycabta merged commit 0171ae2 into ruby:master Apr 26, 2021
@nobu nobu deleted the colorable-kwd branch June 22, 2021 14:12
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.

3 participants