feat: allow fullscreen without alternative screen

This commit is contained in:
rbrugo 2023-10-13 20:05:08 +02:00 committed by ArthurSonzogni
parent c31aecf2ed
commit 044c2684e7
No known key found for this signature in database
GPG Key ID: 41D98248C074CD6C
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ class ScreenInteractive : public Screen {
static ScreenInteractive FixedSize(int dimx, int dimy);
static ScreenInteractive Fullscreen();
static ScreenInteractive FitComponent();
static ScreenInteractive TerminalOutput();
static ScreenInteractive TerminalOutput(bool use_alternative_screen = true);
// Options. Must be called before Loop().
void TrackMouse(bool enable = true);

View File

@ -353,12 +353,12 @@ ScreenInteractive ScreenInteractive::FixedSize(int dimx, int dimy) {
}
// static
ScreenInteractive ScreenInteractive::Fullscreen() {
ScreenInteractive ScreenInteractive::Fullscreen(bool use_alternative_screen) {
return {
0,
0,
Dimension::Fullscreen,
true,
use_alternative_screen,
};
}