Reset XTerm mouse modes on suspend/exit.

This commit is contained in:
John Hood
2015-05-31 22:50:17 -04:00
parent c4236c6762
commit 8af7473cc4
+4 -1
View File
@@ -51,7 +51,10 @@ std::string Display::open() const
std::string Display::close() const std::string Display::close() const
{ {
return std::string( "\033[?1l\033[0m\033[?25h" ) + std::string( rmcup ? rmcup : "" ); return std::string( "\033[?1l\033[0m\033[?25h"
"\033[?1003l\033[?1002l\033[?1001l\033[?1000l"
"\033[?1015l\033[?1006l\033[?1005l" ) +
std::string( rmcup ? rmcup : "" );
} }
std::string Display::new_frame( bool initialized, const Framebuffer &last, const Framebuffer &f ) const std::string Display::new_frame( bool initialized, const Framebuffer &last, const Framebuffer &f ) const