From owner-freebsd-arch Mon Oct 21 11:44:41 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 987B337B401; Mon, 21 Oct 2002 11:44:39 -0700 (PDT) Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E50C43E6A; Mon, 21 Oct 2002 11:44:39 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0274.cvx21-bradley.dialup.earthlink.net ([209.179.193.19] helo=mindspring.com) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 183hXO-0001Ia-00; Mon, 21 Oct 2002 11:44:26 -0700 Message-ID: <3DB44AC3.56EAA519@mindspring.com> Date: Mon, 21 Oct 2002 11:43:15 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "M. Warner Losh" Cc: ache@nagual.pp.ru, ru@FreeBSD.ORG, arch@FreeBSD.ORG Subject: Re: color, again, in grotty References: <20021021105047.GA22255@nagual.pp.ru> <20021021114758.GB66084@sunbay.com> <20021021144816.GB24582@nagual.pp.ru> <20021021.094415.49434942.imp@bsdimp.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "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" for an underlined character and "^H" for a bold character 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