Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StripANSI = regexp.MustCompile("\x1b\\[\\d+(;\\d+)*m")
StripANSI is a regexp that matches ANSI escape codes for the purpose of removing them where necessary.
Functions ¶
func StripANSIFromFile ¶
StripANSIFromFile reads in contents from one file line by line, strips them of their ANSI escape codes, then writes them to another.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.