mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-07-01 21:31:13 +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 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);
|
||||
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user