delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/28/18:06:22

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
x-ETB-scan: YES
Mail-Copies-To: never
X-Archive: encrypt
X-Habeas-SWE-1: winter into spring
X-Habeas-SWE-2: brightly anticipated
X-Habeas-SWE-3: like Habeas SWE (tm)
X-Habeas-SWE-4: Copyright 2002 Habeas (tm)
X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this
X-Habeas-SWE-6: email in exchange for a license for this Habeas
X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant
X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this
X-Habeas-SWE-9: mark in spam to <http://www.habeas.com/report>.
Message-ID: <6.1.0.6.2.20040428164948.02745880@localhost>
X-Sender: dradul AT localhost
Date: Wed, 28 Apr 2004 16:54:37 -0500
To: <cygwin AT cygwin DOT com>
From: =?iso-8859-1?Q?Alejandro_L=F3pez-Valencia?= <dradul AT etb DOT net DOT co>
Subject: Re: How to set the colors of terminfo's standout mode?
In-Reply-To: <001401c42d20$4184c480$647ba8c0@wanadoo.nl>
References: <6 DOT 1 DOT 0 DOT 6 DOT 2 DOT 20040427162228 DOT 027508a8 AT localhost> <02c301c42d03$e7ff0c20$647ba8c0 AT wanadoo DOT nl> <6 DOT 1 DOT 0 DOT 6 DOT 2 DOT 20040428064018 DOT 0275e008 AT localhost> <001401c42d20$4184c480$647ba8c0 AT wanadoo DOT nl>
MIME-Version: 1.0
X-OriginalArrivalTime: 28 Apr 2004 22:06:24.0990 (UTC) FILETIME=[0C0A3FE0:01C42D6D]
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Note-from-DJ: This may be spam
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i3SM6696010015

At 07:56 a.m. 28/04/2004, Frank Slootweg wrote:

>   Is there a place where all these (I assume ANSI) escape sequences for
>colors are listed? When I have that information, I can probably untic an
>existing terminfo entry, modify it and tic it back to another name and
>use that.

The one I use came with the documentation of an ftp/sftp client I use, 
yafc. Tis information is very hard to come by if one is in a bind, so I'll 
include it here. Yafc's info file says:

---begin quote

Colors
======

    Escape codes can be used to display colors in the transfer strings
and the prompts. All escape codes must be surrounded by %{ and %} pairs
for readline to correctly wrap long lines.

    The built-in command `ls' has an option `--color'. You must set the
environment variable LS_COLORS (or LS_COLOURS) for this to work.  See
manpage for GNU ls(1) and *note dircolors: (fileutils)dircolors
invocation, for information how to do this. If you don't set
LS_COLO[U]RS, you can still use the `--color' option, since Yafc
provides some default settings.


ANSI attribute codes
--------------------

    An ANSI escape sequence has the format `ESC[X;Ym', where `ESC' is
the escape character (octal 033). `X' and, optionally, `Y', is one of
the following escape codes:

    * attribute codes

         - 00 = none

         - 01 = bold

         - 04 = underscore

         - 05 = blink

         - 07 = reverse

         - 08 = concealed


    * text color codes

         - 30 = black

         - 31 = red

         - 32 = green

         - 33 = yellow

         - 34 = blue

         - 35 = magenta

         - 36 = cyan

         - 37 = white


    * background color codes

         - 40 = black

         - 41 = red

         - 42 = green

         - 43 = yellow

         - 44 = blue

         - 45 = magenta

         - 46 = cyan

         - 47 = white



    For example, the sequence `ESC[1;32myafc rulesESC[0m' will be the
string `yafc rules' in bright green, after which the attribute is
restored to normal.

---end quote



-- 
Alejandro López-Valencia
http://dradul.tripod.com/
The limits of my language are the limits of my world.
                                     (L. Wittgenstein) 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019