bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

termcap garbage from groff-1.18.1


From: Hallvard B Furuseth
Subject: termcap garbage from groff-1.18.1
Date: Sat, 12 Apr 2003 23:47:30 +0200

'groff -Tlatin1 -man /usr/share/man/man1/gzip.1 | less' displays a lot
of termcap escape sequences that less (version 332) does not understand.
If groff is going to output termcap sequences, it should only do it if
isatty(<output file>) or if an option is given to do so.  Also, there
should be an option to turn termcap sequences off even when isatty(),
e.g. if the tty is a pty which is read by a program.

Here is the output from the 'groff ... | less' command above:


User Commands                                             GZIP(1)



ESC[1mNAMEESC[0m
     gzip, gunzip, gzcat - compress or expand files

ESC[1mSYNOPSISESC[0m
     ESC[1mgzip ESC[22m[ ESC[1m-acdfhlLnNrtvV19 ESC[22m] [ESC[1m-S 
suffixESC[22m] [ ESC[4mnameESC[24m ESC[4m...ESC[24m  ]
     ESC[1mgunzip ESC[22m[ ESC[1m-acfhlLnNrtvV ESC[22m] [ESC[1m-S 
suffixESC[22m] [ ESC[4mnameESC[24m ESC[4m...ESC[24m  ]
     ESC[1mgzcat ESC[22m[ ESC[1m-fhLV ESC[22m] [ ESC[4mnameESC[24m 
ESC[4m...ESC[24m  ]

ESC[1mDESCRIPTIONESC[0m
     ESC[4mGzipESC[24m  reduces  the  size of the named files using Lempel-Ziv
     coding (LZ77).  Whenever possible, each file is replaced  by
     one with the extension ESC[1m.gz, ESC[22mwhile keeping the same ownership
     modes, access and modification times.  (The  default  exten-
     sion  is  ESC[1m-gz ESC[22mfor VMS, ESC[1mz ESC[22mfor MSDOS, OS/2 FAT, 
Windows NT FAT
     and Atari.)  If no files are specified, or if a file name is
     "-",  the  standard input is compressed to the standard out-

-- 
Hallvard




reply via email to

[Prev in Thread] Current Thread [Next in Thread]