mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-29 11:32:44 +08:00
update files
This commit is contained in:
parent
fe56467a2e
commit
b53e2ff6da
@ -11,6 +11,19 @@ function fixLinefeed(data){
|
|||||||
}
|
}
|
||||||
|
|
||||||
module.exports = function (Terminal){
|
module.exports = function (Terminal){
|
||||||
|
Terminal.prototype.send = function (data){
|
||||||
|
var context = this;
|
||||||
|
|
||||||
|
if (!this.queue) {
|
||||||
|
setTimeout(function (){
|
||||||
|
context.handler(context.queue);
|
||||||
|
context.queue = '';
|
||||||
|
}, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.queue += data;
|
||||||
|
};
|
||||||
|
|
||||||
Terminal.prototype.bell = function (){
|
Terminal.prototype.bell = function (){
|
||||||
var snd = new Audio('bell.wav'); // buffers automatically when created
|
var snd = new Audio('bell.wav'); // buffers automatically when created
|
||||||
|
|
||||||
@ -727,11 +740,26 @@ module.exports = function (Terminal){
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// -this.send('\x1bP' + valid + '$r' + pt + '\x1b\\');
|
this.send('\x1bP' + valid + '$r' + pt + '\x1b\\');
|
||||||
break;
|
break;
|
||||||
// Set Termcap/Terminfo Data (xterm, experimental).
|
// Set Termcap/Terminfo Data (xterm, experimental).
|
||||||
case '+p':
|
case '+p':
|
||||||
break;
|
break;
|
||||||
|
// Request Termcap/Terminfo String (xterm, experimental)
|
||||||
|
// Regular xterm does not even respond to this sequence.
|
||||||
|
// This can cause a small glitch in vim.
|
||||||
|
// DCS + q Pt ST
|
||||||
|
// test: echo -ne '\eP+q6b64\e\\'
|
||||||
|
case '+q':
|
||||||
|
valid = 0;
|
||||||
|
|
||||||
|
this.send('\x1bP' + valid + '+r' + pt + '\x1b\\');
|
||||||
|
break;
|
||||||
|
// Implement tmux sequence forwarding is
|
||||||
|
// someone uses term.js for a multiplexer.
|
||||||
|
// DCS tmux; ESC Pt ST
|
||||||
|
case 'tmux;\x1b':
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
this.error('Unknown DCS prefix: %s.', this.prefix);
|
this.error('Unknown DCS prefix: %s.', this.prefix);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user