diff --git a/include/ftxui/component/screen_interactive.hpp b/include/ftxui/component/screen_interactive.hpp index fd3a629f..d88da428 100644 --- a/include/ftxui/component/screen_interactive.hpp +++ b/include/ftxui/component/screen_interactive.hpp @@ -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); diff --git a/src/ftxui/component/screen_interactive.cpp b/src/ftxui/component/screen_interactive.cpp index 33660514..3f821a14 100644 --- a/src/ftxui/component/screen_interactive.cpp +++ b/src/ftxui/component/screen_interactive.cpp @@ -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, }; }