mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-08 12:14:03 +08:00
update files
This commit is contained in:
parent
6feba77871
commit
d9b3859480
@ -264,11 +264,13 @@ module.exports = function (Terminal){
|
|||||||
// ESC 7 Save Cursor (DECSC).
|
// ESC 7 Save Cursor (DECSC).
|
||||||
case '7':
|
case '7':
|
||||||
this.saveCursor();
|
this.saveCursor();
|
||||||
|
|
||||||
this.state = states.normal;
|
this.state = states.normal;
|
||||||
break;
|
break;
|
||||||
// ESC 8 Restore Cursor (DECRC).
|
// ESC 8 Restore Cursor (DECRC).
|
||||||
case '8':
|
case '8':
|
||||||
this.restoreCursor();
|
this.restoreCursor();
|
||||||
|
|
||||||
this.state = states.normal;
|
this.state = states.normal;
|
||||||
break;
|
break;
|
||||||
// ESC # 3 DEC line height/width
|
// ESC # 3 DEC line height/width
|
||||||
@ -288,12 +290,14 @@ module.exports = function (Terminal){
|
|||||||
break;
|
break;
|
||||||
// ESC > Normal Keypad (DECPNM).
|
// ESC > Normal Keypad (DECPNM).
|
||||||
case '>':
|
case '>':
|
||||||
this.log('Switching back to normal keypad.');
|
|
||||||
this.applicationKeypad = false;
|
this.applicationKeypad = false;
|
||||||
this.state = states.normal;
|
this.state = states.normal;
|
||||||
|
|
||||||
|
this.log('Switching back to normal keypad.');
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
this.state = states.normal;
|
this.state = states.normal;
|
||||||
|
|
||||||
this.error('Unknown ESC control: %s.', ch);
|
this.error('Unknown ESC control: %s.', ch);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -388,7 +392,7 @@ module.exports = function (Terminal){
|
|||||||
this.title = this.params[1];
|
this.title = this.params[1];
|
||||||
|
|
||||||
//handlers could not be installed
|
//handlers could not be installed
|
||||||
if (this.handleTitle) {
|
if (typeof this.handleTitle === 'function') {
|
||||||
this.handleTitle(this.title);
|
this.handleTitle(this.title);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -476,6 +480,7 @@ module.exports = function (Terminal){
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.params.push(this.currentParam);
|
this.params.push(this.currentParam);
|
||||||
|
|
||||||
this.currentParam = 0;
|
this.currentParam = 0;
|
||||||
|
|
||||||
// ';'
|
// ';'
|
||||||
@ -523,7 +528,9 @@ module.exports = function (Terminal){
|
|||||||
break;
|
break;
|
||||||
// CSI Ps n Device Status Report (DSR).
|
// CSI Ps n Device Status Report (DSR).
|
||||||
case 'n':
|
case 'n':
|
||||||
this.deviceStatus(this.params);
|
if (typeof deviceStatus === 'function') {
|
||||||
|
this.deviceStatus(this.params);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
/**
|
/**
|
||||||
* Additions
|
* Additions
|
||||||
@ -709,7 +716,7 @@ module.exports = function (Terminal){
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
this.error('Unknown DCS Pt: %s.', pt);
|
this.error('Unknown DCS Pt: %s.', pt);
|
||||||
|
|
||||||
pt = '';
|
pt = '';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user