Merge remote-tracking branch 'upstream/master' into 425_xon_xoff_on_280

This commit is contained in:
Daniel Imms
2017-01-10 20:04:26 -08:00
2 changed files with 14 additions and 3 deletions
+7 -1
View File
@@ -357,7 +357,8 @@ Terminal.defaults = {
scrollback: 1000,
screenKeys: false,
debug: false,
cancelEvents: false
cancelEvents: false,
disableStdin: false
// programFeatures: false,
// focusKeys: false,
};
@@ -3252,6 +3253,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();