summaryrefslogtreecommitdiff
path: root/src/curses
AgeCommit message (Collapse)Author
2021-04-25Fix overflow errors and allow small terminal sizes (#473)John Ferguson
* In #259 users request the ability to have ncmpcpp remain open when the terminal has a small size. Previously ncmpcpp would exit when there were less than 30 columns or 5 rows. * After removing this constraint, ncmpcpp would freeze when terminal sizes went below those thresholds. * Upon debugging, it became clear that ncmpcpp wasn't frozen, it was stuck in a very long for loop because it thought the display was unreasonably large (resulting from integer overflow). * Preventing that overflow allows ncmpcpp to handle small sizes gracefully. No other changes to the rendering code were necessary. Fixes #259
2020-12-21Consider mouse support when pausing and unpausing curses interfaceAndrzej Rybczak
2020-12-19Update header information and my emailAndrzej Rybczak
2020-12-10Fix delete key in st (#425)jaredforrest
2020-01-12Curses: don't iterate through unbound COLORS #369nick black
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.
2018-05-13Restore curses after running external commandJan Holthuis
This allows running TUI tools like vim via run_external_command without destroying the ncmpcpp curses output.
2017-06-15Fix crash when colors are disabledHugh Wang
2017-05-21Replace highlight colors with prefixes and suffixesAndrzej Rybczak
2017-04-23configure: check if curses.h exposes wide-char functionsAndrzej Rybczak
2017-03-29Explicitly define NCURSES_WIDECHAR instead of _XOPEN_SOURCEAndrzej Rybczak
2017-03-28Formatted color: include <istream>Andrzej Rybczak
2017-03-26Change 'previous' background color to 'current' and add some documentationAndrzej Rybczak
2017-03-26Make single character prompts more robustAndrzej Rybczak
2017-03-26Properly set window timeoutAndrzej Rybczak
2017-03-24Do not exit readline prompt early if it's in a subcommand of some sortAndrzej Rybczak
2017-03-12Update AUTHORS and copyright lineAndrzej Rybczak
2017-02-13Use scoped window timeoutAndrzej Rybczak
2017-01-28Make Property use boost::variantAndrzej Rybczak
2017-01-06If only 8 colors are available, map the rest of 256 to base onesAndrzej Rybczak
2017-01-06Check if songs are in playlist when displaying them, not up-frontAndrzej Rybczak
2016-12-25Fix displaying items in menuAndrzej Rybczak
2016-12-24Retain previous background by default when switching colorsAndrzej Rybczak
2016-12-23Support attaching format information to selected color variablesAndrzej Rybczak
2016-12-22Remove Format::NoneAndrzej Rybczak
2016-12-22Move ncurses related files to curses directoryAndrzej Rybczak