Clear the terminal screen on Ctrl+L

Fixes #10057.
This commit is contained in:
Javier Lopez-Gomez 2022-03-08 17:18:13 +01:00 committed by Axel Naumann
parent 106c95fb1b
commit d654717749

View File

@ -18,6 +18,7 @@
#include <cctype>
#include <vector>
#include "textinput/Callbacks.h"
#include "textinput/Display.h"
#include "textinput/History.h"
#include "textinput/KeyBinding.h"
#include "textinput/StreamReaderUnix.h"
@ -438,6 +439,11 @@ namespace textinput {
fReplayHistEntry = fCurHistEntry;
return kPRSuccess;
case kCmdClearScreen:
for (auto *D : fContext->GetDisplays()) {
D->Clear();
D->Redraw();
}
return kPRSuccess;
case kCmd_END_TEXT_MODIFYING_CMDS:
return kPRError;
case kCmdEsc: