Created
August 11, 2019 20:52
-
-
Save nrdmn/270cfb5515eea8df2fc0c2b987ef4fe1 to your computer and use it in GitHub Desktop.
ANSI colors to IRC colors
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
s/\x1b\[0m/\x0f/g | |
s/\x1b\[1m/\x02/g | |
s/\x1b\[30m/\x031/g | |
s/\x1b\[31m/\x035/g | |
s/\x1b\[32m/\x033/g | |
s/\x1b\[33m/\x037/g | |
s/\x1b\[34m/\x032/g | |
s/\x1b\[35m/\x036/g | |
s/\x1b\[36m/\x0310/g | |
s/\x1b\[37m/\x0315/g | |
s/\x1b\[\(1;30\|90\)m/\x0314/g | |
s/\x1b\[\(1;31\|91\)m/\x034/g | |
s/\x1b\[\(1;32\|92\)m/\x039/g | |
s/\x1b\[\(1;33\|93\)m/\x038/g | |
s/\x1b\[\(1;34\|94\)m/\x0312/g | |
s/\x1b\[\(1;35\|95\)m/\x0313/g | |
s/\x1b\[\(1;36\|96\)m/\x0311/g | |
s/\x1b\[\(1;37\|97\)m/\x030/g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
other way around