Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b92996d7c | ||
|
|
b8944beea9 | ||
|
|
67435edad7 | ||
|
|
fc9a0f15db | ||
|
|
8a57489966 | ||
|
|
3a8c1b3fcd | ||
|
|
0c2f079670 | ||
|
|
d266d995ab | ||
|
|
0ea2e9cfd6 | ||
|
|
9b8cb03c55 |
@@ -135,6 +135,6 @@ To contribute either code, documentation or issues to xterm.js please read the [
|
|||||||
|
|
||||||
If you contribute code to this project, you are implicitly allowing your code to be distributed under the MIT license. You are also implicitly verifying that all code is your original work.
|
If you contribute code to this project, you are implicitly allowing your code to be distributed under the MIT license. You are also implicitly verifying that all code is your original work.
|
||||||
|
|
||||||
Copyright (c) 2014-2016, SourceLair, Private Company ([www.sourcelair.com](https://www.sourcelair.com/home)) (MIT License)
|
Copyright (c) 2014-2017, SourceLair, Private Company ([www.sourcelair.com](https://www.sourcelair.com/home)) (MIT License)
|
||||||
|
|
||||||
Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xterm.js",
|
"name": "xterm.js",
|
||||||
"version": "2.8.0",
|
"version": "2.8.1",
|
||||||
"ignore": ["demo", "test", ".gitignore"],
|
"ignore": ["demo", "test", ".gitignore"],
|
||||||
"main": [
|
"main": [
|
||||||
"dist/xterm.js",
|
"dist/xterm.js",
|
||||||
|
|||||||
Vendored
+3
@@ -430,6 +430,9 @@ var InputHandler = (function () {
|
|||||||
this._terminal.y--;
|
this._terminal.y--;
|
||||||
this._terminal.scroll(true);
|
this._terminal.scroll(true);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
this._terminal.lines.get(this._terminal.y).isWrapped = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (ch_width === 2)
|
if (ch_width === 2)
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -50,7 +50,7 @@ gulp.task('browserify', ['tsc'], function() {
|
|||||||
let browserifyOptions = {
|
let browserifyOptions = {
|
||||||
basedir: buildDir,
|
basedir: buildDir,
|
||||||
debug: true,
|
debug: true,
|
||||||
entries: [`../${outDir}/xterm.js`],
|
entries: [`${outDir}/xterm.js`],
|
||||||
standalone: 'Terminal',
|
standalone: 'Terminal',
|
||||||
cache: {},
|
cache: {},
|
||||||
packageCache: {}
|
packageCache: {}
|
||||||
|
|||||||
Generated
+11892
File diff suppressed because it is too large
Load Diff
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "xterm",
|
"name": "xterm",
|
||||||
"description": "Full xterm terminal, in your browser",
|
"description": "Full xterm terminal, in your browser",
|
||||||
"version": "2.8.0",
|
"version": "2.8.1",
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"demo",
|
"demo",
|
||||||
"test",
|
"test",
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/chai": "^3.4.34",
|
"@types/chai": "^3.4.34",
|
||||||
"@types/jsdom": "^2.0.30",
|
"@types/jsdom": "^11.0.1",
|
||||||
"@types/mocha": "^2.2.33",
|
"@types/mocha": "^2.2.33",
|
||||||
"@types/node": "^6.0.41",
|
"@types/node": "^6.0.41",
|
||||||
"browserify": "^13.1.0",
|
"browserify": "^13.1.0",
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
"gulp-sourcemaps": "1.9.1",
|
"gulp-sourcemaps": "1.9.1",
|
||||||
"gulp-typescript": "^3.1.3",
|
"gulp-typescript": "^3.1.3",
|
||||||
"jsdoc": "3.4.3",
|
"jsdoc": "3.4.3",
|
||||||
"jsdom": "^9.11.0",
|
"jsdom": "^11.1.0",
|
||||||
"merge-stream": "^1.0.1",
|
"merge-stream": "^1.0.1",
|
||||||
"node-pty": "^0.4.1",
|
"node-pty": "^0.4.1",
|
||||||
"nodemon": "1.10.2",
|
"nodemon": "1.10.2",
|
||||||
|
|||||||
@@ -56,8 +56,13 @@ export class InputHandler implements IInputHandler {
|
|||||||
this._terminal.x = 0;
|
this._terminal.x = 0;
|
||||||
this._terminal.y++;
|
this._terminal.y++;
|
||||||
if (this._terminal.y > this._terminal.scrollBottom) {
|
if (this._terminal.y > this._terminal.scrollBottom) {
|
||||||
|
// Insert a new line, scroll and mark as a wrapped line
|
||||||
this._terminal.y--;
|
this._terminal.y--;
|
||||||
this._terminal.scroll(true);
|
this._terminal.scroll(true);
|
||||||
|
} else {
|
||||||
|
// The line already exists (eg. the initial viewport), mark it as a
|
||||||
|
// wrapped line
|
||||||
|
this._terminal.lines.get(this._terminal.y).isWrapped = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (ch_width === 2) // FIXME: check for xterm behavior
|
if (ch_width === 2) // FIXME: check for xterm behavior
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ class TestLinkifier extends Linkifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
describe('Linkifier', () => {
|
describe('Linkifier', () => {
|
||||||
|
let dom: jsdom.JSDOM;
|
||||||
let window: Window;
|
let window: Window;
|
||||||
let document: Document;
|
let document: Document;
|
||||||
|
|
||||||
@@ -24,13 +25,11 @@ describe('Linkifier', () => {
|
|||||||
let rows: HTMLElement[];
|
let rows: HTMLElement[];
|
||||||
let linkifier: TestLinkifier;
|
let linkifier: TestLinkifier;
|
||||||
|
|
||||||
beforeEach(done => {
|
beforeEach(() => {
|
||||||
jsdom.env('', (err, w) => {
|
dom = new jsdom.JSDOM('');
|
||||||
window = w;
|
window = dom.window;
|
||||||
document = window.document;
|
document = window.document;
|
||||||
linkifier = new TestLinkifier();
|
linkifier = new TestLinkifier();
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function addRow(html: string) {
|
function addRow(html: string) {
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ class TestSelectionManager extends SelectionManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
describe('SelectionManager', () => {
|
describe('SelectionManager', () => {
|
||||||
|
let dom: jsdom.JSDOM;
|
||||||
let window: Window;
|
let window: Window;
|
||||||
let document: Document;
|
let document: Document;
|
||||||
|
|
||||||
@@ -39,15 +40,13 @@ describe('SelectionManager', () => {
|
|||||||
let rowContainer: HTMLElement;
|
let rowContainer: HTMLElement;
|
||||||
let selectionManager: TestSelectionManager;
|
let selectionManager: TestSelectionManager;
|
||||||
|
|
||||||
beforeEach(done => {
|
beforeEach(() => {
|
||||||
jsdom.env('', (err, w) => {
|
dom = new jsdom.JSDOM('');
|
||||||
window = w;
|
window = dom.window;
|
||||||
document = window.document;
|
document = window.document;
|
||||||
buffer = new CircularList<any>(100);
|
buffer = new CircularList<any>(100);
|
||||||
terminal = <any>{ cols: 80, rows: 2 };
|
terminal = <any>{ cols: 80, rows: 2 };
|
||||||
selectionManager = new TestSelectionManager(terminal, buffer, rowContainer, null);
|
selectionManager = new TestSelectionManager(terminal, buffer, rowContainer, null);
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function stringToRow(text: string): [number, string, number][] {
|
function stringToRow(text: string): [number, string, number][] {
|
||||||
|
|||||||
@@ -7,21 +7,19 @@ import { ICharMeasure, ITerminal } from '../Interfaces';
|
|||||||
import { CharMeasure } from './CharMeasure';
|
import { CharMeasure } from './CharMeasure';
|
||||||
|
|
||||||
describe('CharMeasure', () => {
|
describe('CharMeasure', () => {
|
||||||
|
let dom: jsdom.JSDOM;
|
||||||
let window: Window;
|
let window: Window;
|
||||||
let document: Document;
|
let document: Document;
|
||||||
|
|
||||||
let container: HTMLElement;
|
let container: HTMLElement;
|
||||||
let charMeasure: ICharMeasure;
|
let charMeasure: ICharMeasure;
|
||||||
|
|
||||||
beforeEach(done => {
|
beforeEach(() => {
|
||||||
jsdom.env('', (err, w) => {
|
dom = new jsdom.JSDOM('');
|
||||||
window = w;
|
window = dom.window;
|
||||||
document = window.document;
|
document = window.document;
|
||||||
container = document.createElement('div');
|
container = document.createElement('div');
|
||||||
document.body.appendChild(container);
|
document.body.appendChild(container);
|
||||||
charMeasure = new CharMeasure(document, container);
|
charMeasure = new CharMeasure(document, container);
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('measure', () => {
|
describe('measure', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user