-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added current board name to command line #77
Conversation
lib/3llo/controller.rb
Outdated
command_buffer = Readline.readline("\e[15;48;5;27m 3llo \e[0m > ", true) | ||
begin | ||
board = Application.fetch_board!() | ||
command_buffer = Readline.readline("\e[15;48;5;27m 3llo \e[0m > \e[1m\e[33m #{board.name} \e[0m > ", true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure what \e[15;48;5;27m
and \e[0m
meant. After doing some research I found out that they are for colorizing the output. But when I try it on my terminal the color doesn't change at all. Is this dependent on the terminal for the output to show color?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's your expectation for the Readline output?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend use this background color instead for easy reading.
\e[15;48;5;27m 3llo \e[0m > \e[45m 3llo \e[0m >
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix rubocop error changed color of board name on status line and small refactor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @iamwillzhu! |
Description
Display the current board name on the command line
Related Issues
#76
Manual Testing Plan