Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d07f61314b | ||
|
|
7355a04274 | ||
|
|
3a782972e3 | ||
|
|
d12406bedc | ||
|
|
561fc59dbc |
@@ -1,6 +1,13 @@
|
|||||||
# xterm.js
|
# xterm.js — xterm, in the browser
|
||||||
|
|
||||||
xterm, in the browser.
|
Xterm.js is a full xterm clone, written completely in JavaScript.
|
||||||
|
|
||||||
|
Xterm.js supplies a modular, event-based interface that lets developers build addons and themes that augment
|
||||||
|
the experience of running a fully-feature terminal inside the browser.
|
||||||
|
|
||||||
|
Xterm.js serves as the foundation for the terminal found at www.sourcelair.com.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### Contribution and License Agreement
|
### Contribution and License Agreement
|
||||||
|
|
||||||
@@ -10,5 +17,5 @@ all code is your original work.
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Copyright (c) 2014, sourceLair Limited (www.sourcelair.com) (MIT License)
|
Copyright (c) 2014, sourceLair, Limited (www.sourcelair.com) (MIT License)
|
||||||
Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
||||||
|
|||||||
+11
-4
@@ -12,17 +12,24 @@
|
|||||||
* of columns)
|
* of columns)
|
||||||
*/
|
*/
|
||||||
Terminal.prototype.fit = function () {
|
Terminal.prototype.fit = function () {
|
||||||
var container = this.element.parentElement,
|
var container = this.rowContainer,
|
||||||
subjectRow = this.rowContainer.firstElementChild,
|
subjectRow = this.rowContainer.firstElementChild,
|
||||||
rows = parseInt(container.offsetHeight / subjectRow.offsetHeight),
|
rows = parseInt(container.offsetHeight / subjectRow.offsetHeight),
|
||||||
|
contentBuffer,
|
||||||
characterWidth,
|
characterWidth,
|
||||||
cols;
|
cols;
|
||||||
|
|
||||||
subjectRow.style.display = 'inline';
|
subjectRow.style.display = 'inline';
|
||||||
characterWidth = parseInt(subjectRow.offsetWidth / this.cols);
|
|
||||||
|
contentBuffer = subjectRow.textContent;
|
||||||
|
|
||||||
|
subjectRow.textContent = ' ';
|
||||||
|
characterWidth = parseInt(subjectRow.offsetWidth);
|
||||||
|
|
||||||
subjectRow.style.display = '';
|
subjectRow.style.display = '';
|
||||||
|
|
||||||
cols = parseInt(container.offsetWidth / characterWidth);
|
cols = container.offsetWidth / characterWidth;
|
||||||
|
cols = parseInt(cols);
|
||||||
|
|
||||||
this.resize(cols, rows);
|
this.resize(cols, rows);
|
||||||
}
|
};
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "xterm.js",
|
"name": "xterm.js",
|
||||||
"version": "0.11",
|
"version": "0.14",
|
||||||
"ignore": ["demo", "docs", "test", ".gitignore"]
|
"ignore": ["demo", "docs", "test", ".gitignore"]
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -44,16 +44,16 @@ master_doc = 'index'
|
|||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
project = u'xterm.js'
|
project = u'xterm.js'
|
||||||
copyright = u'2014, sourceLair Limited'
|
copyright = u'2014, SourceLair Limited'
|
||||||
|
|
||||||
# The version info for the project you're documenting, acts as replacement for
|
# The version info for the project you're documenting, acts as replacement for
|
||||||
# |version| and |release|, also used in various other places throughout the
|
# |version| and |release|, also used in various other places throughout the
|
||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = '0.11'
|
version = '0.14'
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = '0.11 Alpha'
|
release = '0.14 Alpha'
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
|||||||
+3
-1
@@ -8,11 +8,13 @@ Welcome to xterm.js's documentation!
|
|||||||
|
|
||||||
This is the documentation for xterm.js. Xterm.js is a full xterm clone, written completely in JavaScript.
|
This is the documentation for xterm.js. Xterm.js is a full xterm clone, written completely in JavaScript.
|
||||||
|
|
||||||
Xterm.js supplye a modular, event-based interface that lets developers build addons and themes that augment
|
Xterm.js supplies a modular, event-based interface that lets developers build addons and themes that augment
|
||||||
the experience of running a fully-feature terminal inside the browser.
|
the experience of running a fully-feature terminal inside the browser.
|
||||||
|
|
||||||
Xterm.js serves as the foundation for the terminal found at www.sourcelair.com.
|
Xterm.js serves as the foundation for the terminal found at www.sourcelair.com.
|
||||||
|
|
||||||
|
.. image:: screenshot.png
|
||||||
|
|
||||||
Getting started
|
Getting started
|
||||||
^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 140 KiB |
Reference in New Issue
Block a user