|Strips ANSI from ANSIfied_textfile. Where ANSIfied_textfile is the name of the textfile containing ANSI, and unANSIfied_textfile is a filehandle youve chosen for its output (sansi redirects the filtered output to the filename youve chosen).|
sansi was written to strip the ANSI control sequences in files, or output, often, but not limited to those generated by compilers. I found it difficult to visually grope/grep the output of script(1) sessions. Especially with the advent of clang. While its nice to replay the script(1) sessions to view the highlighted messages. Its near impossible to read it inline in your favorite pager, or text editor; Enter sansi.
ACKNOWLEDGEMENTS John Marino
It probably would have never occurred to me to release this, except that I thought it might help him, and the other committers. I hoped it might help him after all the [unintentional] grief Ive caused him. Thanks for your patience, John!
<ANSIfied_textfile> <Input file> File name with embedded ANSI sequences <unANSIfied_textfile> <Output file> File name Stripped of ANSI sequences.
None at this time.
To strip the ANSI sequences from the file MakeOutput, saving the results to CleanOutput:
sansi <MakeOutput> CleanOutput
Doubtful. But who knows?
Chris Hutchinson <portmaster AT bsdforge.com>
Copyright 2014, Chris Hutchinson, taint, portmaster
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Or under the BSD2CLAUSE license, at your choice.
The sansi command first appeared in 2014, when it was determined that Eye Candy isnt always sweet.