1 2 3 4 5 6 7 8 9 10 11 12 13 14
| #
# Example script that sanitizes a log file, such as that created by
# screen(1) or script(1) (or even one of Term::VT102's other example
# scripts).
#
# Any cursor positioning and other control codes are removed, leaving only
# complete lines of text, optionally including ANSI/ECMA-48 colour and
# attribute change sequences.
#
# Arguments are <width> <height> [colour|plain] - if nothing is provided,
# the default is to assume an 80x24 terminal with colour output.
#
# Data is read from standard input and written to standard output.
# |