Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!fub!tmpmbx!utopia!sunrise!hotte From: hotte@sunrise.in-berlin.de (Horst Laumer) Newsgroups: comp.unix.questions Subject: Re: getting 'more' to not count termcap formatting strings Message-ID: Date: 12 Feb 91 03:18:56 GMT References: <1991Feb7.151700.11770@unhd.unh.edu> Distribution: comp Organization: HL EDV-Beratung Lines: 25 rg@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@sunrise.in-berlin.de ! for Autorouters -- me -- UUCP: ..unido!fub!geminix!sunrise.in-berlin.de!hotte