[comp.os.msdos.misc] ANSI filter

rjbolger@vax1.tcd.ie (01/11/91)

Has anyone come across a text filter that strips off ANSI escape sequences from
a text file ?.

I'm capturing screen output from a TCP/IP session with a mainframe, but I'm
receiving all the escape sequences as well. This makes it very messy to read if
printed directly, and needs a lot of editing to replace all the escape codes
with blanks.

Ideally I'd like :

			C>type textfile | filter >prn

But I'd be grateful for any ideas on this - not necessarily DOS based.

Thanks in advance.

Richard Bolger                //
Trinity College Dublin       //       rbolger@vax1.tcd.ie       
Republic of Ireland         //             

ts@uwasa.fi (Timo Salmi) (01/15/91)

In article <1991Jan11.150007.7435@vax1.tcd.ie> rjbolger@vax1.tcd.ie writes:
>Has anyone come across a text filter that strips off ANSI escape sequences from
>a text file ?.
:

One potential trick is to use text editor macros (with QEdit).  I've
done that for .log files containing escape sequences.  See
/pc/ts/tsqed10.arc for the said macro.  Available by anonymous ftp
from uwasa.fi archives.

...................................................................
Prof. Timo Salmi        (Moderating at anon. ftp site 128.214.12.3)
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun