mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Add support for origin mode (DECOM, SM/RM ?6), from Marc Reisner.
This commit is contained in:
8
input.c
8
input.c
@ -1572,6 +1572,10 @@ input_csi_dispatch_rm_private(struct input_ctx *ictx)
|
||||
screen_write_clearscreen(&ictx->ctx,
|
||||
ictx->cell.cell.bg);
|
||||
break;
|
||||
case 6: /* DECOM */
|
||||
screen_write_mode_clear(&ictx->ctx, MODE_ORIGIN);
|
||||
screen_write_cursormove(&ictx->ctx, 0, 0);
|
||||
break;
|
||||
case 7: /* DECAWM */
|
||||
screen_write_mode_clear(&ictx->ctx, MODE_WRAP);
|
||||
break;
|
||||
@ -1655,6 +1659,10 @@ input_csi_dispatch_sm_private(struct input_ctx *ictx)
|
||||
screen_write_clearscreen(&ictx->ctx,
|
||||
ictx->cell.cell.bg);
|
||||
break;
|
||||
case 6: /* DECOM */
|
||||
screen_write_mode_set(&ictx->ctx, MODE_ORIGIN);
|
||||
screen_write_cursormove(&ictx->ctx, 0, 0);
|
||||
break;
|
||||
case 7: /* DECAWM */
|
||||
screen_write_mode_set(&ictx->ctx, MODE_WRAP);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user