Mail Archives: djgpp/2001/12/13/21:33:01
PAVOL JUHAS wrote:
>
> CBFalconer (cbfalconer AT yahoo DOT com) wrote:
> > PAVOL JUHAS wrote:
> > >
> > > I did my homework on GOOGLE, but I could not find it:
> > > Is there a col utility - reverse line-feeds filter for DJGPP?
>
> > What are you talking about?
>
> AFAIK, col is available on *IX/Linux systems, col -b is useful for
> filtering the output of man to get a plain text (without C-H characters).
>
> man col:
> -----------------------------------------------------------------
> NAME
> col - reverse line-feeds filter
>
> SYNOPSIS
> col [ -bfpx ]
>
> DESCRIPTION
> The col utility reads from the standard input and writes to
> the standard output. It performs the line overlays implied
> by reverse line-feeds, and by forward and reverse half-
> line-feeds. Unless -x is used, all blank characters in the
> input will be converted to tab characters wherever possible.
> col is particularly useful for filtering multi-column output
> made with the .rt command of nroff(1) and output resulting
> from use of the tbl(1) preprocessor.
Aha. Much the same purpose as my stripovr, last revised in '98 to
handle those escape sequences in man listings.
c:\dnld\scratch>stripovr
STRIPOVR copyright (c) 1998 by C.B. Falconer. Ver 1.4
usage: STRIPOVR [/1e] <infile >outfile
Removes all overprinting lines,
i.e. lines that end in a cr without a following lf
and ch <backspace> ch sequences (uses last ch).
and ANSI escape sequences (ESC[...ch) ch alphabetic
The LAST line in an overprinting group is retained.
The optional /1 parameter causes the FIRST line in an
overprinting group to be retained, while the e (or E)
modifier causes ANSI escape sequences to be stripped.
The / may be replaced by a - in the options
Input lines may not exceed 255 chars.
Omitting "<infile" causes this help screen
c:\dnld\scratch>
So the answer to the OP's question is 'yes', since stripovr runs
under DOS. Send me an email and I can attach it in a reply. It
is a monstrous 10k bytes.
--
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net)
Available for consulting/temporary embedded and systems.
(Remove "XXXX" from reply address. yahoo works unmodified)
mailto:uce AT ftc DOT gov (for spambots to harvest)
- Raw text -