C-l and C-k l repaint the whole terminal
C-l only cleared the status line and C-k l asked for nothing, and the terminal frame then sent only what ncurses believed had changed, so output another program wrote to the terminal stayed on screen. Both now request a full redraw, which the terminal honors with clearok(curscr); the GUI repaints every frame already. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -138,6 +138,12 @@ TerminalFrontend::Step(Editor &ed, bool &running)
|
||||
if (handled > 0)
|
||||
timeout(16);
|
||||
|
||||
// C-l or a reload: make the next refresh repaint every cell.
|
||||
if (ed.ConsumeFullRedraw()) {
|
||||
clearok(curscr, TRUE);
|
||||
changed = true;
|
||||
}
|
||||
|
||||
if (ed.QuitRequested()) {
|
||||
running = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user