mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +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
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue