From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: [lurwas@moya.dnsalias.net: groff version 1.18.1 and emacs] Date: Mon, 09 Dec 2002 22:16:05 +0300 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <2950-Mon09Dec2002221605+0200-eliz@is.elta.co.il> References: <20021206.231951.98410592.wl@gnu.org> <20021209.081705.112312965.wl@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1039477327 23455 80.91.224.249 (9 Dec 2002 23:42:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 9 Dec 2002 23:42:07 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18LXXH-00065z-00 for ; Tue, 10 Dec 2002 00:42:03 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18LXhZ-0001Wz-00 for ; Tue, 10 Dec 2002 00:52:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18LULY-0006hJ-01 for emacs-devel@quimby.gnus.org; Mon, 09 Dec 2002 15:17:44 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18LUL8-0006fx-00 for emacs-devel@gnu.org; Mon, 09 Dec 2002 15:17:18 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18LUL5-0006fF-00 for emacs-devel@gnu.org; Mon, 09 Dec 2002 15:17:17 -0500 Original-Received: from thor.inter.net.il ([192.114.186.11]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18LUL5-0006ex-00; Mon, 09 Dec 2002 15:17:15 -0500 Original-Received: from zaretsky (adsl-ayalon-pc-128-23.inter.net.il [213.8.128.23]) by thor.inter.net.il (Mirapoint Messaging Server MOS 3.2.1-GA) with ESMTP id AQE81902; Mon, 9 Dec 2002 22:17:12 +0200 (IST) Original-To: wl@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <20021209.081705.112312965.wl@gnu.org> (message from Werner LEMBERG on Mon, 09 Dec 2002 08:17:05 +0100 (CET)) Original-cc: Ted.Harding@nessie.mcc.ac.uk X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10016 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10016 > Date: Mon, 09 Dec 2002 08:17:05 +0100 (CET) > From: Werner LEMBERG > > Emacs already has code for that (written by Eli mainly for his DOS > port). I'm not sure what you mean here: I didn't write anything like what you say. The DOS port of Emacs does not translate SGR sequences to colors, it simply has special code (in msdos.c) to turn on and off colors given face information in `struct glyph'. The way it turns colors on and off is specific to DOS and utilizes direct access to the video memory of the terminal. Another related piece of code with which I was involved is in the stand-alone Info reader (the one which comes with the Texinfo package). That one works on all supported platforms (not only on DOS), but all it does is either (1) strip all SGR escapes, so that the man page is displayed without any colors, or (2) under the -R command-line option, pass the SGRs unaltered to the pager under the assumption that the pager will DTRT (latest releases of Less can do that).