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

Add colored responses for readability #5

Closed
jwu910 opened this issue Jan 4, 2018 · 3 comments
Closed

Add colored responses for readability #5

jwu910 opened this issue Jan 4, 2018 · 3 comments
Assignees
Milestone

Comments

@jwu910
Copy link
Contributor

jwu910 commented Jan 4, 2018

Definition responses should have colored responses for better readability.

Styling should be similar to python verson:
image

@rainrivas rainrivas added this to the Version 1.0 milestone Jan 12, 2018
@jwu910
Copy link
Contributor Author

jwu910 commented Jan 12, 2018

Reset = "\x1b[0m"
Bright = "\x1b[1m"
Dim = "\x1b[2m"
Underscore = "\x1b[4m"
Blink = "\x1b[5m"
Reverse = "\x1b[7m"
Hidden = "\x1b[8m"

FgBlack = "\x1b[30m"
FgRed = "\x1b[31m"
FgGreen = "\x1b[32m"
FgYellow = "\x1b[33m"
FgBlue = "\x1b[34m"
FgMagenta = "\x1b[35m"
FgCyan = "\x1b[36m"
FgWhite = "\x1b[37m"

BgBlack = "\x1b[40m"
BgRed = "\x1b[41m"
BgGreen = "\x1b[42m"
BgYellow = "\x1b[43m"
BgBlue = "\x1b[44m"
BgMagenta = "\x1b[45m"
BgCyan = "\x1b[46m"
BgWhite = "\x1b[47m"

From : https://stackoverflow.com/questions/9781218/how-to-change-node-jss-console-font-color

@rainrivas
Copy link
Contributor

rainrivas commented Jan 12, 2018

@jwu910 we can use this... but how about we just use the packages we talked about, npm chalk and cli color

@jwu910
Copy link
Contributor Author

jwu910 commented Jan 12, 2018

@rainrivas Oh yeah this was right before I found out we had packages available. I think the chalk package is pretty cool. I can get behind that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants