tui_win_info::refresh_window first redraws the background window, then
tui_wrefresh draws the python text on top of it, which flickers.
By using wnoutrefresh for the background window, the actual drawing on
the screen is only done once, without flickering.
gdb/ChangeLog:
2021-05-24 Hannes Domani <ssbssa@yahoo.de>
* python/py-tui.c (tui_py_window::refresh_window):
Avoid flickering.
+2021-05-24 Hannes Domani <ssbssa@yahoo.de>
+
+ * python/py-tui.c (tui_py_window::refresh_window):
+ Avoid flickering.
+
2021-05-23 Tom de Vries <tdevries@suse.de>
PR tdep/27822
void refresh_window () override
{
- tui_win_info::refresh_window ();
if (m_inner_window != nullptr)
{
+ wnoutrefresh (handle.get ());
touchwin (m_inner_window.get ());
tui_wrefresh (m_inner_window.get ());
}
+ else
+ tui_win_info::refresh_window ();
}
/* Erase and re-box the window. */