From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: incomplete comment colorization in terminals Date: Sat, 15 Mar 2008 16:34:41 +0200 Message-ID: References: <20080311231514.B718249C0BB@daedalus.stanford.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1205591703 1885 80.91.229.12 (15 Mar 2008 14:35:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Mar 2008 14:35:03 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, dann@ics.uci.edu To: Rob Riepel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 15 15:35:31 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JaXTt-0002Ra-JE for ged-emacs-devel@m.gmane.org; Sat, 15 Mar 2008 15:35:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JaXTK-0002cH-72 for ged-emacs-devel@m.gmane.org; Sat, 15 Mar 2008 10:34:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JaXTF-0002YL-EC for emacs-devel@gnu.org; Sat, 15 Mar 2008 10:34:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JaXTD-0002U3-Pv for emacs-devel@gnu.org; Sat, 15 Mar 2008 10:34:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JaXTD-0002Tn-Cy for emacs-devel@gnu.org; Sat, 15 Mar 2008 10:34:47 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JaXTD-0006Fs-5e for emacs-devel@gnu.org; Sat, 15 Mar 2008 10:34:47 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JaXTC-0007jx-Ps for emacs-pretest-bug@gnu.org; Sat, 15 Mar 2008 10:34:46 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JaXT9-0006Et-Rm for emacs-pretest-bug@gnu.org; Sat, 15 Mar 2008 10:34:46 -0400 Original-Received: from mtaout6.012.net.il ([84.95.2.16]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JaXT9-0006ER-EF for emacs-pretest-bug@gnu.org; Sat, 15 Mar 2008 10:34:43 -0400 Original-Received: from HOME-C4E4A596F7 ([84.229.216.171]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0JXS00NTW14F1M30@i-mtaout6.012.net.il> for emacs-pretest-bug@gnu.org; Sat, 15 Mar 2008 16:48:15 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 10 (1203?) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:92677 gmane.emacs.pretest.bugs:21597 Archived-At: > Cc: emacs-pretest-bug@gnu.org > From: Rob Riepel > Date: Fri, 14 Mar 2008 17:49:59 -0700 > > I really like the color schemes that come with 16+ color support, but > there's no "mode" value for --color=mode that sets anything above 8. > Is there a way to set the number of colors that can be displayed > in .emacs? I'm guessing that you are reading the output of "emacs --help", which is necessarily terse and doesn't tell the whole story. In the Emacs manual, by contrast, you will find this text: `--color=MODE' For a character terminal only, specify the mode of color support. This option is intended for overriding the number of supported colors that the character terminal advertises in its `termcap' or `terminfo' database. The parameter MODE can be one of the following: ... `NUM' Use color mode for NUM colors. If NUM is -1, turn off color support (equivalent to `never'); if it is 0, use the default color support for this terminal (equivalent to `auto'); otherwise use an appropriate standard mode for NUM colors. Depending on your terminal's capabilities, Emacs might be able to turn on a color mode for 8, 16, 88, or 256 as the value of NUM. If there is no mode that supports NUM colors, Emacs acts as if NUM were 0, i.e. it uses the terminal's default color support mode. If MODE is omitted, it defaults to ANSI8. Thus, --color=16 should do what you want, if the terminal can support 16-color mode.