[Top][All Lists]

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

Re: screen-256color on MacOS 10.5.5

From: Sentinel
Subject: Re: screen-256color on MacOS 10.5.5
Date: Mon, 1 Dec 2008 23:38:08 +0530 (IST)
User-agent: Alpine 1.10 (OSX 962 2008-03-14)

I forgot to mention that I _am_ using screen-256color and xterm-256color terminals. So ncurses is to be compiled with ext.

But i am not clear on how to refer to the additional colors in a C program. Currently i use constants such as COLOR_RED.


ruby 1.8.7  | os x 10.5.5 |  vim 7.2

On Mon, 1 Dec 2008, Thomas Dickey wrote:

On Mon, 1 Dec 2008, Sentinel wrote:

I've been seeing a lot of mails on 256 colors. My shell can show 256 using various shell scripts which use escape sequences.
btw, when i print Ncurses.COLORS in my program, i get 256.

But how can i refer to 256 colors in Ncurses ?

It has to be built with the ext-colors configure option (to provide enough bits in cchar_t to store the color information).

xterm can be built to display 256 colors (again, an option). rxvt also can be built to do this. konsole and gnome-terminal provide a hardcoded palette for this (though iirc, one is hardcoded to use the 88-color palette, and the other for 256). Ditto for PuTTY. Probably some others do this, but I haven't seen any reliable comments.

The corresponding $TERM's are the "-256color" entries that ncurses provides.

Thomas E. Dickey

reply via email to

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