Created
July 23, 2013 14:00
-
-
Save flarnie/6062558 to your computer and use it in GitHub Desktop.
colors in the terminal
This file contains hidden or 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
puts "\x1b[31;1m" | |
puts "This is red." | |
puts "\x1b[30m" | |
puts "This is black." | |
puts "\x30b[1m" | |
puts "This is 'bold' black." | |
puts "\x1b[7m" | |
puts "This is grey." | |
puts "\x7b[1m" | |
puts "This is grey." | |
puts "\x1b[31;1m" | |
puts "This is red." | |
puts "\x1b[30m" | |
puts "This is black." | |
puts "\x30b[1m" | |
puts "This is 'bold' black." | |
puts "\x1b[7m" | |
puts "This is grey." | |
puts "\x7b[1m" | |
puts "This is grey." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment