Skip to content
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

Merged
merged 1 commit into from
May 13, 2020
Merged

Conversation

iamwillzhu
Copy link
Contributor

Description

Display the current board name on the command line

Related Issues

#76

Manual Testing Plan

Screen Shot 2020-05-11 at 10 51 25 PM

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)
Copy link
Contributor Author

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?

Copy link
Collaborator

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought it would show colors like how the it's shown in the README GIF
Screen Shot 2020-05-12 at 12 57 52 AM

Copy link
Collaborator

@hungdiep97 hungdiep97 May 12, 2020

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 >

Copy link
Collaborator

Choose a reason for hiding this comment

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

Screen Shot 2020-05-12 at 12 10 18

lib/3llo/controller.rb Outdated Show resolved Hide resolved
fix rubocop error

changed color of board name on status line and small refactor
Copy link
Collaborator

@hungdiep97 hungdiep97 left a comment

Choose a reason for hiding this comment

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

@hungdiep97 hungdiep97 requested a review from qcam May 13, 2020 03:40
@qcam qcam merged commit 2a84214 into qcam:master May 13, 2020
@qcam
Copy link
Owner

qcam commented May 13, 2020

Thank you @iamwillzhu!

@hungdiep97 hungdiep97 linked an issue May 13, 2020 that may be closed by this pull request
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.

Display current board on command line
3 participants