From fc22fc39e24875413d979fe4214eb7dc194f28e5 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Tue, 23 Aug 2016 09:11:02 -0700 Subject: [PATCH] Disable application mode in viewport on soft reset Fixes #242 --- src/xterm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xterm.js b/src/xterm.js index bb74a3e2..f26ccb68 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -4561,8 +4561,8 @@ break; case 66: this.log('Switching back to normal keypad.'); - this.viewport.setApplicationMode(false); this.applicationKeypad = false; + this.viewport.setApplicationMode(false); break; case 9: // X10 Mouse case 1000: // vt200 mouse @@ -4849,6 +4849,7 @@ this.originMode = false; this.wraparoundMode = false; // autowrap this.applicationKeypad = false; // ? + this.viewport.setApplicationMode(false); this.applicationCursor = false; this.scrollTop = 0; this.scrollBottom = this.rows - 1;