From e13216adf785c3967519d71afc4659adb628f38c Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Fri, 25 Jan 2008 11:20:40 +0000 Subject: 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 --- src/fe-text/term-terminfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fe-text/term-terminfo.c') diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c index 7e0ea686..4b8d7938 100644 --- a/src/fe-text/term-terminfo.c +++ b/src/fe-text/term-terminfo.c @@ -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 */ -- cgit v1.2.3