Implement "alternative screen".

Apply this option automatically for "fullscreen" screen. Keep it
disabled for the other modes.

This fixes issue:
https://github.com/GiuseppeCesarano/just-fast/issues/2
This commit is contained in:
ArthurSonzogni
2020-05-02 20:39:56 +02:00
parent ac3db36de8
commit 76fc52441f
2 changed files with 24 additions and 7 deletions

View File

@@ -43,7 +43,11 @@ class ScreenInteractive : public Screen {
TerminalOutput,
};
Dimension dimension_ = Dimension::Fixed;
ScreenInteractive(int dimx, int dimy, Dimension dimension);
bool use_alternative_screen_ = false;
ScreenInteractive(int dimx,
int dimy,
Dimension dimension,
bool use_alternative_screen);
Sender<Event> event_sender_;
Receiver<Event> event_receiver_;