John Ferguson
71970fa73c
Fix overflow errors and allow small terminal sizes ( #473 )
...
* 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
5 years ago
Andrzej Rybczak
def7ea42f6
Consider mouse support when pausing and unpausing curses interface
5 years ago
Andrzej Rybczak
b68354a223
Update header information and my email
5 years ago
jaredforrest
aa9ca84cb2
Fix delete key in st ( #425 )
5 years ago
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.
6 years ago
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.
8 years ago
Hugh Wang
a22cd2c68c
Fix crash when colors are disabled
9 years ago
Andrzej Rybczak
19d32648ed
Replace highlight colors with prefixes and suffixes
9 years ago
Andrzej Rybczak
55d2f4c70d
Change 'previous' background color to 'current' and add some documentation
9 years ago
Andrzej Rybczak
5d12c9d544
Properly set window timeout
9 years ago
Andrzej Rybczak
f1d9c24938
Do not exit readline prompt early if it's in a subcommand of some sort
9 years ago
Andrzej Rybczak
86ec51624e
Update AUTHORS and copyright line
9 years ago
Andrzej Rybczak
cd414810a5
If only 8 colors are available, map the rest of 256 to base ones
9 years ago
Andrzej Rybczak
eaac6ad062
Retain previous background by default when switching colors
9 years ago
Andrzej Rybczak
a488c2d89d
Support attaching format information to selected color variables
9 years ago
Andrzej Rybczak
9c13827b62
Remove Format::None
9 years ago
Andrzej Rybczak
478f4454d8
Move ncurses related files to curses directory
9 years ago
Andrzej Rybczak
50ec522726
Require ncursesw to provide waddwstr and waddnwstr
9 years ago
Andrzej Rybczak
5c62072713
Require ncursesw
9 years ago
Andrzej Rybczak
2e0de374a3
Prevent ncurses input queue from breaking by cleaning KEY_RESIZE asap
9 years ago
Andrzej Rybczak
9306f56c34
Exit if stdin is closed
9 years ago
Andrzej Rybczak
516ee31109
Update headers
9 years ago
Andrzej Rybczak
3a94ad886e
window: recognize home/end in more terminal emulators
10 years ago
Andrzej Rybczak
f2e96f9f89
window: send mouse related escape codes to the terminal immediately
10 years ago
Andrzej Rybczak
f173a582ce
window: keep mouse disabled if it was initially disabled
10 years ago
Andrzej Rybczak
d7fb62c49a
configure: check for readline properly
10 years ago
Andrzej Rybczak
320db64bb9
configure: check for readline properly
10 years ago
Andrzej Rybczak
61ba262a0f
window: revert to the old operator<<(char) as new causes problems
11 years ago
Andrzej Rybczak
7e8156566a
window: add support for emacs terminal
11 years ago
Andrzej Rybczak
dcac42748a
bindinds: add support for alt/ctrl/shift modifiers and escape key
11 years ago
Andrzej Rybczak
e7b152938b
window: redefine special key values
11 years ago
Andrzej Rybczak
ccb468592d
remove support for ncurses terminal sequence escaping
11 years ago
Andrzej Rybczak
173d23dde6
window: support extended urxvt mouse support if applicable
11 years ago
Andrzej Rybczak
9272a0034c
window: support mouse coordinates up to 255
11 years ago
Andrzej Rybczak
b8fdb323b8
window: disable mouse before passing control to readline
11 years ago
Andrzej Rybczak
670839b8f0
window: set timeout to 0 while fetching pieces of terminal sequence
11 years ago
Andrzej Rybczak
1348271098
do not use ncurses terminal sequence escaping by default
11 years ago
Andrzej Rybczak
6384c4bfd6
do not include error.h as it's not the desired file
11 years ago
Andrzej Rybczak
d1528ffc71
get rid of WIN32 ifdefs
11 years ago
Benoit Pierre
e5e61842c5
window: don't add encrypted prompts to input history
11 years ago
Benoit Pierre
b6c6cbb91f
window: initialize readline before changing its defaults
11 years ago
Benoit Pierre
c507889d8c
window: after we're done with readline, return EOF instead of 0
11 years ago
Andrzej Rybczak
1a1105793d
remove support for PDCurses
11 years ago
Andrzej Rybczak
51e3cfe92c
window: fix display of multibyte characters
11 years ago
Andrzej Rybczak
0c58af8c53
window: support new colors also as borders
11 years ago
Andrzej Rybczak
059db198be
window: support 'previous' background value for better composability
11 years ago
Andrzej Rybczak
d26c3c8fc5
window: fill background color on clearing to EOL
11 years ago
Andrzej Rybczak
6c422da3c9
window: remove debug print
11 years ago
Andrzej Rybczak
4e4dca44eb
window: use simpler functions than wprintw if possible
11 years ago
Andrzej Rybczak
448c87f850
window: add support for textual representation of background color
12 years ago