mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
+7
-1
@@ -326,7 +326,8 @@ Terminal.defaults = {
|
||||
scrollback: 1000,
|
||||
screenKeys: false,
|
||||
debug: false,
|
||||
cancelEvents: false
|
||||
cancelEvents: false,
|
||||
disableStdin: false
|
||||
// programFeatures: false,
|
||||
// focusKeys: false,
|
||||
};
|
||||
@@ -3134,6 +3135,11 @@ Terminal.prototype.is = function(term) {
|
||||
* @param {string} data The data to populate in the event.
|
||||
*/
|
||||
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.
|
||||
if (this.ybase !== this.ydisp) {
|
||||
this.scrollToBottom();
|
||||
|
||||
Reference in New Issue
Block a user