Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.execute [[echo "Why do you need to run os.execute first to have ansi colors in the windows console?"]]
- for i = 1, 107 do
- print (string.format("%d\tESC[%dm test ESC[0m",i, i))
- end
- -- This makes colored output for the windows console
- -- notes
- -- I used notepad++; using the alt code types in a single character which displays as ESC
- -- If you paste the code from this pastebin, colors will not work
- -- You need to use ALT + 0 2 7 wherever I write ESC
- -- some examples:
- -- underline: ESC[4m UNDERLINE ESC[0m
- -- underlined green: ESC[4;32m UNDERLINE ESC[0m
- -- green: ESC[32m GREEN ESC[0m
- -- red: ESC[31m RED ESC[0m
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement