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:
Emanuele Giaquinta 2008-01-25 11:20:40 +00:00 committed by exg
commit e13216adf7
3 changed files with 40 additions and 36 deletions

View file

@ -188,7 +188,7 @@ void term_resize_final(int width, int height)
/* Returns TRUE if terminal has colors */
int term_has_colors(void)
{
return current_term->has_colors;
return current_term->TI_colors > 0;
}
/* Force the colors on any way you can */