getting 'more' to not count termcap formatting strings

Horst Laumer hotte at sunrise.in-berlin.de
Tue Feb 12 14:18:56 AEST 1991


rg at msel.unh.edu (Roger Gonzalez) writes:

>I wrote a termcap based hex file dump program that works really well, and
>has lots of features, but it would be nice to be able to pipe the output
>through 'more'.   'more' screws up because its count of characters coming
>into it isn't the same as what actually gets shown on the screen.  Is there
>a standard way to do this?  I had thought about sending all the termcap 
>stuff to standard error, but then I realized I would have to flush
>stderr's buffer after every formatting string to keep the output properly
>interlaced (and it didn't seem that this would even necessarily be adequate
>to keep the order correct.)  'more' handles underlining fine, but that's
>programmed into it.  Am I out of luck?

>-Roger

Try less(), trust PD.
less offers lot of options, lets you page to and fro, invoke editor ...
real good stuff.

Horst
-- 
============================================================================
Horst Laumer, Kantstrasse 107, D-1000 Berlin 12 ! Bang-Adress: Junk-Food 
INET: hotte at sunrise.in-berlin.de                ! for Autorouters -- me --
UUCP: ..unido!fub!geminix!sunrise.in-berlin.de!hotte



More information about the Comp.unix.questions mailing list