Quickfix
Some checks failed
Build / Tests (cl, Windows MSVC, windows-latest) (push) Waiting to run
Build / Tests (llvm, llvm-cov gcov, MacOS clang, macos-latest) (push) Waiting to run
Build / Create release (push) Blocked by required conditions
Build / Build packages (build/ftxui*Darwin*, macos-latest) (push) Blocked by required conditions
Build / Build packages (build/ftxui*Linux*, ubuntu-latest) (push) Blocked by required conditions
Build / Build packages (build/ftxui*Win64*, windows-latest) (push) Blocked by required conditions
Build / Tests (gcc, gcov, Linux GCC, ubuntu-latest) (push) Failing after 54s
Build / Tests (llvm, llvm-cov gcov, Linux Clang, ubuntu-latest) (push) Failing after 6m7s
Build / documentation (push) Failing after 1m17s
CodeQL / Analyze (cpp) (push) Failing after 13s

This commit is contained in:
ArthurSonzogni 2024-08-16 11:47:01 +02:00
parent f5d8c7deb5
commit 66d1c1f61f
No known key found for this signature in database
GPG Key ID: 41D98248C074CD6C

View File

@ -603,7 +603,7 @@ void ScreenInteractive::Install() {
// Request the terminal to report the current cursor shape. We will restore it
// on exit.
std::cout << DECRQSS_DECSCUSR;
on_exit_functions.emplace([cursor_reset_shape_ = cursor_reset_shape_] {
on_exit_functions.emplace([this] {
std::cout << "\033[?25h"; // Enable cursor.
std::cout << "\033[" + std::to_string(cursor_reset_shape_) + " q";
});