mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-13 23:38:52 +02:00
Implement DECAWM (SM/RM 7) using existing MODE_WRAP flag.
This commit is contained in:
6
input.c
6
input.c
@ -1248,6 +1248,9 @@ input_csi_dispatch(struct input_ctx *ictx)
|
||||
screen_write_cursormove(&ictx->ctx, 0, 0);
|
||||
screen_write_clearscreen(&ictx->ctx);
|
||||
break;
|
||||
case 7: /* DECAWM */
|
||||
screen_write_mode_clear(&ictx->ctx, MODE_WRAP);
|
||||
break;
|
||||
case 25: /* TCEM */
|
||||
screen_write_mode_clear(&ictx->ctx, MODE_CURSOR);
|
||||
break;
|
||||
@ -1305,6 +1308,9 @@ input_csi_dispatch(struct input_ctx *ictx)
|
||||
screen_write_cursormove(&ictx->ctx, 0, 0);
|
||||
screen_write_clearscreen(&ictx->ctx);
|
||||
break;
|
||||
case 7: /* DECAWM */
|
||||
screen_write_mode_set(&ictx->ctx, MODE_WRAP);
|
||||
break;
|
||||
case 25: /* TCEM */
|
||||
screen_write_mode_set(&ictx->ctx, MODE_CURSOR);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user