From 66f04514cf23a6202ad2dae3cdb96cd0ae74010c Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 21 Jan 2012 08:10:21 +0000 Subject: Add a -R flag to send-keys to reset the terminal. Written ages ago and Suggested by someone, I forget who. --- input.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'input.c') diff --git a/input.c b/input.c index 6fd2d90a..f5ffe8f2 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); -- cgit