mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-07-05 15:41:12 +08:00
feat: allow fullscreen without alternative screen
This commit is contained in:
parent
c31aecf2ed
commit
044c2684e7
@ -32,7 +32,7 @@ class ScreenInteractive : public Screen {
|
|||||||
static ScreenInteractive FixedSize(int dimx, int dimy);
|
static ScreenInteractive FixedSize(int dimx, int dimy);
|
||||||
static ScreenInteractive Fullscreen();
|
static ScreenInteractive Fullscreen();
|
||||||
static ScreenInteractive FitComponent();
|
static ScreenInteractive FitComponent();
|
||||||
static ScreenInteractive TerminalOutput();
|
static ScreenInteractive TerminalOutput(bool use_alternative_screen = true);
|
||||||
|
|
||||||
// Options. Must be called before Loop().
|
// Options. Must be called before Loop().
|
||||||
void TrackMouse(bool enable = true);
|
void TrackMouse(bool enable = true);
|
||||||
|
@ -353,12 +353,12 @@ ScreenInteractive ScreenInteractive::FixedSize(int dimx, int dimy) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
ScreenInteractive ScreenInteractive::Fullscreen() {
|
ScreenInteractive ScreenInteractive::Fullscreen(bool use_alternative_screen) {
|
||||||
return {
|
return {
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
Dimension::Fullscreen,
|
Dimension::Fullscreen,
|
||||||
true,
|
use_alternative_screen,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user