[patch] Detection of color terminal

2001-12-04 Thread Martin Bialasinski
Hi, Oskar Liljeblad [EMAIL PROTECTED], the author of the current zip extfs, has sent me the following patch to do better check for color support than currently done. Currently, mc checks $TERM for xterm* or for teh existance of $COLORTERM. Oskar says: -- The patch below fixes the

Re: [patch] Detection of color terminal

2001-12-04 Thread Pavel Roskin
Hello, Martin! The patch below fixes the problem. The behaviour was copied from ncurses has_color: Require that max_colors (Co) terminfo attribute is set. Require that max_pairs (pa) is set. Require one of: Thank you for this contribution! I actually was told by the S-Lang author John E.