[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev Lynx colours

From: T.E.Dickey
Subject: Re: lynx-dev Lynx colours
Date: Tue, 23 Jun 1998 08:10:09 -0400 (EDT)

> I'm using TERM=ansi-color-3 for my colour definitions in Lynx v2.7.2 
> for OS/2. I got his particular file from the NCurses package for EMX 
> (NC-EMX-B.ZIP) and was wondering if this provided any facility for 
> compiling my own ansi-color-3...  
> NCurses contains a file called emx.src which contains the following 
> lines which I suspect are somehow converted into the files  
> ansi-color-2 and ansi-color-3. 
somehow: the \E[1;37;46m is a hardcoded sequence that renders
        bold (the 1)
        white foreground text (the 37)
        cyan background (the 46 - though I think they meant 44, which is blue)
The names (smso, etc.), are in the terminfo man-page (with ncurses), as
well as an overview of the syntax (\E is the escape character, 27).

(I left those in the emx.src, but they're not very useful imho, since they
resulting description does not support ANSI colors - the ability to let the
application program 8 colors)

> # nice colors for Emacs (white on blue, mode line white on cyan) 
> ansi-color-2|ANSI.SYS color 2, 
>     smcup=\E[0;37;44m, rmcup=\E[0m, 
>     smso=\E[1;37;46m, rmso=\E[0;37;44m, 
>     smul=\E[1;31;40m, rmul=\E[0m, 
>     sgr0=\E[0;37;44m, use=ansi, 
> # nice colors for Emacs (white on black, mode line black on cyan) 
> ansi-color-3|ANSI.SYS color 3, 
>     smcup=\E[0m, rmcup=\E[0m, 
>     smso=\E[30;46m, rmso=\E[0m, 
>     smul=\E[1;31;40m, rmul=\E[0m, 
>     sgr0=\E[0m, use=ansi, 
> Any suggestions on how I can do this conversion, or even find out what 
> all these hieroglyphics mean? 
> --  
> John 

Thomas E. Dickey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]