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 // Request the terminal to report the current cursor shape. We will restore it
// on exit. // on exit.
std::cout << DECRQSS_DECSCUSR; 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[?25h"; // Enable cursor.
std::cout << "\033[" + std::to_string(cursor_reset_shape_) + " q"; std::cout << "\033[" + std::to_string(cursor_reset_shape_) + " q";
}); });