From a6c4c2cca0d44e0cec9d4a0cc041290a263826fb Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 18 Feb 2013 15:57:46 +0000 Subject: Implement DECAWM (SM/RM 7) using existing MODE_WRAP flag. --- input.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'input.c') diff --git a/input.c b/input.c index c4e19c06..4cf90ece 100644 --- a/input.c +++ b/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; -- cgit