Compare commits

...

2 Commits

Author SHA1 Message Date
Přemysl Eric Janouch 9a67e076a9
Bump version, update NEWS 2021-10-21 09:16:51 +02:00
Přemysl Eric Janouch 53fbb3dec1
Fix the line editor/spectrum analyser interaction
The updater assumed the terminal cursor was invisible.
2021-10-21 09:13:07 +02:00
3 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required (VERSION 3.0)
project (nncmpp VERSION 1.0.0 LANGUAGES C)
project (nncmpp VERSION 1.1.0 LANGUAGES C)
# Moar warnings
if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)

2
NEWS
View File

@ -1,4 +1,4 @@
1.1.0 (20xx-xx-xx)
1.1.0 (2021-10-21)
* Now requesting and processing terminal de/focus events,
using a new "defocused" attribute for selected rows

View File

@ -3789,9 +3789,15 @@ spectrum_redraw (void)
// let's hack around it in this case
if (g.spectrum_row != -1)
{
// Don't mess up the line editor caret, when it's shown
int last_x, last_y;
getyx (stdscr, last_y, last_x);
attrset (APP_ATTR (TAB_BAR));
mvaddstr (g.spectrum_row, g.spectrum_column, g.spectrum.spectrum);
attrset (0);
move (last_y, last_x);
refresh ();
}
else