Skip to content

Commit

Permalink
Merge pull request #51 from blink1073/fix-blink
Browse files Browse the repository at this point in the history
Fix cursor blink
  • Loading branch information
parisk committed Apr 22, 2016
2 parents ad3764a + 7988f63 commit 52cc8fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xterm.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,8 @@

Terminal.options = {};

Terminal.focus = null;

each(keys(Terminal.defaults), function(key) {
Terminal[key] = Terminal.defaults[key];
Terminal.options[key] = Terminal.defaults[key];
Expand All @@ -398,7 +400,7 @@

this.showCursor();
this.textarea.focus();

Terminal.focus = this;
};

Terminal.prototype.blur = function() {
Expand All @@ -413,6 +415,7 @@
if (this.sendFocus) {
this.send('\x1b[O');
}
Terminal.focus = null;
};

/**
Expand Down

0 comments on commit 52cc8fa

Please sign in to comment.