mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Update the terminfo backend to query the 'colors' capability and support more
than 16 colors (sync from icecap). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4687 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
3e5ad97676
commit
e13216adf7
3 changed files with 40 additions and 36 deletions
|
|
@ -16,7 +16,7 @@
|
|||
#define terminfo_set_bold() current_term->set_bold(current_term)
|
||||
#define terminfo_set_uline(set) current_term->set_uline(current_term, set)
|
||||
#define terminfo_set_standout(set) current_term->set_standout(current_term, set)
|
||||
#define terminfo_is_colors_set(term) (term->TI_fg[0] != NULL)
|
||||
#define terminfo_is_colors_set(term) (term->TI_fg != NULL)
|
||||
#define terminfo_beep(term) current_term->beep(current_term)
|
||||
|
||||
typedef struct _TERM_REC TERM_REC;
|
||||
|
|
@ -71,7 +71,7 @@ struct _TERM_REC {
|
|||
const char *TI_rep;
|
||||
|
||||
/* Colors */
|
||||
int has_colors;
|
||||
int TI_colors; /* numbers of colors in TI_fg[] and TI_bg[] */
|
||||
const char *TI_sgr0; /* turn off all attributes */
|
||||
const char *TI_smul, *TI_rmul; /* underline on/off */
|
||||
const char *TI_smso, *TI_rmso; /* standout on/off */
|
||||
|
|
@ -79,7 +79,7 @@ struct _TERM_REC {
|
|||
const char *TI_setaf, *TI_setab, *TI_setf, *TI_setb;
|
||||
|
||||
/* Colors - generated and dynamically allocated */
|
||||
char *TI_fg[16], *TI_bg[16], *TI_normal;
|
||||
char **TI_fg, **TI_bg, *TI_normal;
|
||||
|
||||
/* Beep */
|
||||
char *TI_bel;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue