mirror of
https://git.proxmox.com/git/mirror_xterm.js
synced 2025-10-26 00:00:15 +00:00
parent
1fbd3c8f65
commit
d9d60063d7
@ -326,7 +326,8 @@ Terminal.defaults = {
|
|||||||
scrollback: 1000,
|
scrollback: 1000,
|
||||||
screenKeys: false,
|
screenKeys: false,
|
||||||
debug: false,
|
debug: false,
|
||||||
cancelEvents: false
|
cancelEvents: false,
|
||||||
|
disableStdin: false
|
||||||
// programFeatures: false,
|
// programFeatures: false,
|
||||||
// focusKeys: false,
|
// focusKeys: false,
|
||||||
};
|
};
|
||||||
@ -3134,6 +3135,11 @@ Terminal.prototype.is = function(term) {
|
|||||||
* @param {string} data The data to populate in the event.
|
* @param {string} data The data to populate in the event.
|
||||||
*/
|
*/
|
||||||
Terminal.prototype.handler = function(data) {
|
Terminal.prototype.handler = function(data) {
|
||||||
|
// Prevents all events to pty process if stdin is disabled
|
||||||
|
if (this.options.disableStdin) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Input is being sent to the terminal, the terminal should focus the prompt.
|
// Input is being sent to the terminal, the terminal should focus the prompt.
|
||||||
if (this.ybase !== this.ydisp) {
|
if (this.ybase !== this.ydisp) {
|
||||||
this.scrollToBottom();
|
this.scrollToBottom();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user