Ncurses: Difference between revisions

Line 2: Line 2:
* When modifying the palette via <tt>init_color()</tt>, this only affects the normal form of the color. Using <tt>A_BOLD</tt> with the color, for instance, will not reflect palette changes.
* When modifying the palette via <tt>init_color()</tt>, this only affects the normal form of the color. Using <tt>A_BOLD</tt> with the color, for instance, will not reflect palette changes.
* Modifying the palette requires a terminal that supports it, like "linux" or "xterm-256color"
* Modifying the palette requires a terminal that supports it, like "linux" or "xterm-256color"
** The latter can be had from the ncurses-term package on [[Debian]].
* ncurses will need have been compiled with --enable-ext-colors
{| class="wikitable" border="1"
{| class="wikitable" border="1"
! Terminal emulator
! Terminal emulator
! Default terminfo
! Default terminfo
! 256-color terminfo
! 256-color terminfo
! [[Debian]] package
|-
|-
| xterm
| xterm
| xterm
| xterm
| xterm-256color
| xterm-256color
| ncurses-base
|-
|-
| Gnome-Terminal
| Gnome-Terminal
| gnome
| gnome
| gnome-256color
| gnome-256color
| ncurses-term
|-
|-
| Konsole
| konsole
| konsole-256color
| ncurses-term
|}
|}
** The latter can be had from the ncurses-term package on [[Debian]].
* ncurses will need have been compiled with --enable-ext-colors


==[[Unicode]]==
==[[Unicode]]==