Don't clear wrap state on DEC set mode escape (matches xterm)

This commit is contained in:
Keith Winstein
2012-04-11 01:58:20 -04:00
parent d37b1c4387
commit 4144f2e4f0
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -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();
+3 -2
View File
@@ -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 ) {