0
0
mirror of https://github.com/ArthurSonzogni/ftxui.git synced 2026-01-18 17:21:33 +01:00

Fix Uninstall() Posting OnExit() task.

When using `WithRestoredIO()` or nested component, where Uninstall() was
followed by Install(), it caused a problem. The pending task to
`OnExit()` was causing the loop to immediately stop after restarting.

Fixed: https://github.com/ArthurSonzogni/FTXUI/issues/1162
This commit is contained in:
ArthurSonzogni
2025-12-17 10:31:09 +01:00
parent 1531d71d02
commit 76788aabe2

View File

@@ -540,8 +540,6 @@ void ScreenInteractive::Install() {
// ensure it is fully applied:
on_exit_functions.emplace([] { Flush(); });
on_exit_functions.emplace([this] { ExitLoopClosure()(); });
// Request the terminal to report the current cursor shape. We will restore it
// on exit.
std::cout << DECRQSS_DECSCUSR;