[Top][All Lists]

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

Re: Custom colors on Linux console

From: Thomas Dickey
Subject: Re: Custom colors on Linux console
Date: Wed, 30 Jan 2019 18:47:27 -0500
User-agent: Mutt/1.5.23 (2014-03-12)

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?


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

linux|linux console,
        am, bce, ccc, eo, mir, msgr, xenl, xon, AX,
        colors#8, it#8, ncv#18, pairs#64, U8#1,
        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,


Thomas E. Dickey <address@hidden>

Attachment: signature.asc
Description: Digital signature

reply via email to

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