Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!unhd.unh.edu!msel.unh.edu!rg From: rg@msel.unh.edu (Roger Gonzalez) Newsgroups: comp.unix.questions Subject: getting 'more' to not count termcap formatting strings Message-ID: <1991Feb7.151700.11770@unhd.unh.edu> Date: 7 Feb 91 15:17:00 GMT Sender: news@unhd.unh.edu (USENET News System) Distribution: comp Organization: UNH Marine Systems Engineering Laboratory Lines: 19 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 -- "The question of whether a computer can think is no more interesting than the question of whether a submarine can swim" - Edsgar W. Dijkstra rg@[msel|unhd].unh.edu | UNH Marine Systems Engineering Laboratory r_gonzalez@unhh.bitnet | Durham, NH 03824-3525