mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-26 04:31:34 +08:00
Fix useless new line when using the alternative screen. (#610)
Fix:https://github.com/ArthurSonzogni/FTXUI/issues/609
This commit is contained in:
parent
7b08dae6d0
commit
4ce8f6d250
@ -7,6 +7,7 @@ current (development)
|
|||||||
### Component
|
### Component
|
||||||
- Feature: Support `ResizableSplit` with customizable separator.
|
- Feature: Support `ResizableSplit` with customizable separator.
|
||||||
- Breaking: MenuDirection enum is renamed Direction
|
- Breaking: MenuDirection enum is renamed Direction
|
||||||
|
- Fix: Remove useless new line when using an alternative screen.
|
||||||
|
|
||||||
### Dom
|
### Dom
|
||||||
- Feature: Add the dashed style for border and separator.
|
- Feature: Add the dashed style for border and separator.
|
||||||
|
@ -460,10 +460,14 @@ void ScreenInteractive::PostMain() {
|
|||||||
g_active_screen->Install();
|
g_active_screen->Install();
|
||||||
} else {
|
} else {
|
||||||
Uninstall();
|
Uninstall();
|
||||||
|
|
||||||
|
std::cout << '\r';
|
||||||
// On final exit, keep the current drawing and reset cursor position one
|
// On final exit, keep the current drawing and reset cursor position one
|
||||||
// line after it.
|
// line after it.
|
||||||
|
if (!use_alternative_screen_) {
|
||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @brief Decorate a function. It executes the same way, but with the currently
|
/// @brief Decorate a function. It executes the same way, but with the currently
|
||||||
|
Loading…
Reference in New Issue
Block a user