Projects : Textproc/sansi
sansi
-
Removes ANSI control sequences/characters, from files.
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 grok/grep the output of script(1) sessions. Especially with the advent of clang. While it's nice to replay the script(1) sessions to view the highlighted messages. It's near impossible to read it inline in your favorite pager, or text editor; Enter sansi.
-
sansi is available in FreeBSD ports, you can install it from sysutils/sansi, or from textproc/sansi, by performing the following;if you're on FreeBSD, using the ports system:
$ cd /usr/ports/textproc/sansi $ make $ make install clean
or$ cd /usr/ports/sysutils/sansi $ make $ make install clean
if using the FreeBSD pkg system:$ pkg install sysutils/sansi