Date: Mon, 21 Oct 2002 11:43:15 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: "M. Warner Losh" <imp@bsdimp.com> Cc: ache@nagual.pp.ru, ru@FreeBSD.ORG, arch@FreeBSD.ORG Subject: Re: color, again, in grotty Message-ID: <3DB44AC3.56EAA519@mindspring.com> References: <20021021105047.GA22255@nagual.pp.ru> <20021021114758.GB66084@sunbay.com> <20021021144816.GB24582@nagual.pp.ru> <20021021.094415.49434942.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"M. Warner Losh" wrote: > My big problem with SGR is that all the other utilities in the chain > don't grok it. When they do, and if they do the right thing, then > maybe we can revisit this. Right now more does the wrong thing, for > example, out of the box. My big problem is that "_^H<ch>" for an underlined character <ch> and "<ch>^H<ch>" for a bold character <ch> is technically a trigraph, whereas an SGR escape sequence is an SGR escape sequence, and not a trigraph. > Also, we need to be careful not to break other people's uses of it. Escape sequences break things; trigraphs selected for their failure modes ability to display readable data do not. > So I think that we're all in agreement: don't generate the SGR > sequences at this time unless specifically commanded to (either by an > option on the command line, or a different command). I would go further, and say that it was the job of the pager to do this, no matter what, since you cannot provide escape sequence input to a pager which is not also a terminal emulator, and expect to get reasonable output. If the pager *is* a terminal emulator, then it must emulate a mutually agreed upon terminal, in which case output for some other terminal type, run through a pager, is broken. Specifically, what about: grotty | more | more on a Televideo terminal? While not quite reasonable to pipe more to more (those generally less reasonable to pipe grotty to more in the first place), you're breaking something that used to work. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DB44AC3.56EAA519>