xterm extended fix
This commit is contained in:
committed by
Keith Winstein
parent
926bbcc746
commit
bb36933472
@@ -298,10 +298,10 @@ std::string Display::new_frame( bool initialized, const Framebuffer &last, const
|
||||
frame.append( f.ds.xterm_mouse ? "\033[?1002h" : "\033[?1002l" );
|
||||
}
|
||||
|
||||
/* has xterm mouse mode changed (SET_ANY_EVENT_MOUSE)? */
|
||||
/* has xterm mouse mode changed? */
|
||||
if ( (!initialized)
|
||||
|| (f.ds.xterm_extended_mouse != frame.last_frame.ds.xterm_extended_mouse) ) {
|
||||
frame.append( f.ds.xterm_extended_mouse ? "\033[?1006h" : "\033[?1006l" );
|
||||
frame.append( f.ds.xterm_extended_mouse ? "\033[?1006h\033[?1002h" : "\033[?1006l\033[?1002l" );
|
||||
}
|
||||
|
||||
return frame.str;
|
||||
|
||||
Reference in New Issue
Block a user