bug-ncurses
[Top][All Lists]
Advanced

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

Re: Custom colors on Linux console


From: Bryan Christ
Subject: Re: Custom colors on Linux console
Date: Wed, 30 Jan 2019 21:39:23 -0600

Thomas,

I guess my question is really this...  Is there a way to cause ncurses to ignore the obviously wrong / limiting information about pairs and colors if the TERM is set to "linux"?

On Wed, Jan 30, 2019 at 5:47 PM Thomas Dickey <address@hidden> wrote:
On Wed, Jan 30, 2019 at 03:41:07PM -0600, Bryan Christ wrote:
> I routinely use a program called "ponysay" to test my emulator's custom
> color pair logic.  When I run "ponysay" directly on the linux console, the
> program displays custom colors perfectly.  However, ncurses, doesn't seem
> to realize those capabilities.  I know that ncurses is taking hints from
> the TERM variable and the "linux" terminfo entry only supports 8 colors and
> 64 pairs.  I tried changing the TERM variable to xterm-256color but that
> had adverse effects.  Is there a way to coax ncurses into treating the
> Linux console as supporting more than 8 colors and 64 pairs?

https://github.com/erkin/ponysay

lots of hard-coded stuff, and some spelling errors, but nothing that
doesn't appear in console_codes(4) as well as the "linux" terminal
description:

linux|linux console,
        am, bce, ccc, eo, mir, msgr, xenl, xon, AX,
                 ^^^
        colors#8, it#8, ncv#18, pairs#64, U8#1,
        acsc=++\,\,--..00__``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}c~~,
        bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l\E[?1c,
        clear=\E[H\E[J, cnorm=\E[?25h\E[?0c, cr=\r,
        csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
        cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
        cvvis=\E[?25h\E[?8c, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
        dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
        el1=\E[1K, enacs=\E)0, flash=\E[?5h$<200/>\E[?5l,
        home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
        ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\n,
        initc=\E]P%p1%x%p2%{255}%*%{1000}%/%02x%p3%{255}%*%{1000}%/%02x%p4%{255}%*%{1000}%/%02x,
        ^^^

(init_color).

--
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net


--
Bryan
<><

reply via email to

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