Don't clear wrap state on DEC set mode escape (matches xterm)
This commit is contained in:
@@ -112,8 +112,8 @@ void DrawState::move_col( int N, bool relative, bool implicit )
|
|||||||
cursor_col = N;
|
cursor_col = N;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( implicit && (cursor_col >= width) ) {
|
if ( implicit ) {
|
||||||
next_print_will_wrap = true;
|
next_print_will_wrap = (cursor_col >= width);
|
||||||
}
|
}
|
||||||
|
|
||||||
snap_cursor_to_border();
|
snap_cursor_to_border();
|
||||||
|
|||||||
@@ -273,8 +273,9 @@ void CSI_DECRM( Framebuffer *fb, Dispatcher *dispatch )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static Function func_CSI_DECSM( CSI, "?h", CSI_DECSM );
|
/* These functions don't clear wrap state. */
|
||||||
static Function func_CSI_DECRM( CSI, "?l", CSI_DECRM );
|
static Function func_CSI_DECSM( CSI, "?h", CSI_DECSM, false );
|
||||||
|
static Function func_CSI_DECRM( CSI, "?l", CSI_DECRM, false );
|
||||||
|
|
||||||
static bool *get_ANSI_mode( int param, Framebuffer *fb ) {
|
static bool *get_ANSI_mode( int param, Framebuffer *fb ) {
|
||||||
switch ( param ) {
|
switch ( param ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user