Move applicationKeypad into core service

This commit is contained in:
Daniel Imms
2019-12-18 11:23:57 +11:00
parent dada7fe728
commit dc61fae12a
7 changed files with 8 additions and 14 deletions
+5 -5
View File
@@ -1421,7 +1421,7 @@ export class InputHandler extends Disposable implements IInputHandler {
break;
case 66:
this._logService.debug('Serial port requested application keypad.');
this._terminal.applicationKeypad = true;
this._coreService.decPrivateModes.applicationKeypad = true;
if (this._terminal.viewport) {
this._terminal.viewport.syncScrollArea();
}
@@ -1604,7 +1604,7 @@ export class InputHandler extends Disposable implements IInputHandler {
break;
case 66:
this._logService.debug('Switching back to normal keypad.');
this._terminal.applicationKeypad = false;
this._coreService.decPrivateModes.applicationKeypad = false;
if (this._terminal.viewport) {
this._terminal.viewport.syncScrollArea();
}
@@ -1964,7 +1964,7 @@ export class InputHandler extends Disposable implements IInputHandler {
public softReset(params: IParams): void {
this._coreService.isCursorHidden = false;
this._terminal.insertMode = false;
this._terminal.applicationKeypad = false; // ?
this._coreService.decPrivateModes.applicationKeypad = false; // ?
if (this._terminal.viewport) {
this._terminal.viewport.syncScrollArea();
}
@@ -2086,7 +2086,7 @@ export class InputHandler extends Disposable implements IInputHandler {
*/
public keypadApplicationMode(): void {
this._logService.debug('Serial port requested application keypad.');
this._terminal.applicationKeypad = true;
this._coreService.decPrivateModes.applicationKeypad = true;
if (this._terminal.viewport) {
this._terminal.viewport.syncScrollArea();
}
@@ -2099,7 +2099,7 @@ export class InputHandler extends Disposable implements IInputHandler {
*/
public keypadNumericMode(): void {
this._logService.debug('Switching back to normal keypad.');
this._terminal.applicationKeypad = false;
this._coreService.decPrivateModes.applicationKeypad = false;
if (this._terminal.viewport) {
this._terminal.viewport.syncScrollArea();
}