Created
January 16, 2012 18:15
-
-
Save ehowe/1622119 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'readline' | |
input = Readline.readline("\[\e[32;01m\]Prompt is green and bold >\[\e[0m\]") | |
puts input | |
#Output will be []Prompt is green >[] | |
#Prompt will actually be green and bold, so the colors are working, just not the escaping. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment