summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-01-21 19:31:59 +0000
committerTiago Cunha <tcunha@gmx.com>2012-01-21 19:31:59 +0000
commit4bea5590372e69ac90330281c471cf99e3a8653a (patch)
treeec52deca56c473534f80011ddc6a48da7a1a3e67 /input.c
parent674de910ca4c8651d6c9749775e960cb224332f9 (diff)
Sync OpenBSD patchset 1004:
Add a -R flag to send-keys to reset the terminal. Written ages ago and Suggested by someone, I forget who.
Diffstat (limited to 'input.c')
-rw-r--r--input.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/input.c b/input.c
index bb23580c..cee2175a 100644
--- a/input.c
+++ b/input.c
@@ -978,17 +978,7 @@ input_esc_dispatch(struct input_ctx *ictx)
ictx->old_cx = 0;
ictx->old_cy = 0;
- screen_reset_tabs(sctx->s);
-
- screen_write_scrollregion(sctx, 0, screen_size_y(sctx->s) - 1);
-
- screen_write_insertmode(sctx, 0);
- screen_write_kcursormode(sctx, 0);
- screen_write_kkeypadmode(sctx, 0);
- screen_write_mousemode_off(sctx);
-
- screen_write_clearscreen(sctx);
- screen_write_cursormove(sctx, 0, 0);
+ screen_write_reset(sctx->s);
break;
case INPUT_ESC_IND:
screen_write_linefeed(sctx, 0);