Commit Graph

12 Commits

Author SHA1 Message Date
nick black
302bcca99a Curses: don't iterate through unbound COLORS #369
On DirectColor-capable terminals with the proper terminfo
database in use, COLORS is 2^24. Since the color map is
only 64k entries, this resulted in a segfault. I've
introduced NC::colorCount(), which bounds it by the
previously assumed maximum (and usable range) of 256.
2020-01-12 06:06:29 -05:00
Jan Holthuis
81cb7a4f85 Restore curses after running external command
This allows running TUI tools like vim via run_external_command without
destroying the ncmpcpp curses output.
2018-05-13 18:15:21 +02:00
Andrzej Rybczak
8134e6e23b configure: check if curses.h exposes wide-char functions 2017-04-23 04:24:57 +02:00
Andrzej Rybczak
dff00a873a Explicitly define NCURSES_WIDECHAR instead of _XOPEN_SOURCE 2017-03-29 10:40:54 +02:00
Andrzej Rybczak
55d2f4c70d Change 'previous' background color to 'current' and add some documentation 2017-03-26 10:05:34 +02:00
Andrzej Rybczak
035bc65bf9 Make single character prompts more robust 2017-03-26 06:03:12 +02:00
Andrzej Rybczak
86ec51624e Update AUTHORS and copyright line 2017-03-12 15:05:48 +01:00
Andrzej Rybczak
0ab5fbb809 Use scoped window timeout 2017-02-13 10:55:46 +01:00
Andrzej Rybczak
eaac6ad062 Retain previous background by default when switching colors 2016-12-24 16:09:13 +01:00
Andrzej Rybczak
a488c2d89d Support attaching format information to selected color variables 2016-12-23 22:52:47 +01:00
Andrzej Rybczak
9c13827b62 Remove Format::None 2016-12-22 16:16:53 +01:00
Andrzej Rybczak
478f4454d8 Move ncurses related files to curses directory 2016-12-22 15:25:25 +01:00