Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
537fbad705 | ||
|
|
52cc8fa5fe | ||
|
|
7988f634f3 | ||
|
|
a5e34e2288 | ||
|
|
ad3764ae4a | ||
|
|
685bc54bf2 | ||
|
|
a54eb8ac44 | ||
|
|
6a87253d94 |
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "xterm.js",
|
||||
"version": "0.32",
|
||||
"version": "0.33",
|
||||
"ignore": ["demo", "test", ".gitignore"]
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xterm",
|
||||
"version": "0.32.0",
|
||||
"version": "0.33.0",
|
||||
"ignore": ["demo", "test", ".gitignore"],
|
||||
"main": "src/xterm.js",
|
||||
"repository": "https://github.com/sourcelair/xterm.js",
|
||||
|
||||
+12
-4
@@ -32,7 +32,12 @@
|
||||
*/
|
||||
|
||||
(function (xterm) {
|
||||
if (typeof define == 'function') {
|
||||
if (typeof exports === 'object' && typeof module === 'object') {
|
||||
/*
|
||||
* npm/nodejs project
|
||||
*/
|
||||
module.exports = xterm.call(this);
|
||||
} else if (typeof define == 'function') {
|
||||
/*
|
||||
* Require.js is available
|
||||
*/
|
||||
@@ -374,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];
|
||||
@@ -393,7 +400,7 @@
|
||||
|
||||
this.showCursor();
|
||||
this.textarea.focus();
|
||||
|
||||
Terminal.focus = this;
|
||||
};
|
||||
|
||||
Terminal.prototype.blur = function() {
|
||||
@@ -408,6 +415,7 @@
|
||||
if (this.sendFocus) {
|
||||
this.send('\x1b[O');
|
||||
}
|
||||
Terminal.focus = null;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -2515,10 +2523,10 @@
|
||||
} else if (j > y) {
|
||||
while (j-- > y) {
|
||||
if (this.lines.length > y + this.ybase) {
|
||||
this.lines.pop();
|
||||
this.lines.shift();
|
||||
}
|
||||
if (this.children.length > y) {
|
||||
el = this.children.pop();
|
||||
el = this.children.shift();
|
||||
if (!el) continue;
|
||||
el.parentNode.removeChild(el);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user