Merge branch 'master' into 1473_slow_build

This commit is contained in:
Daniel Imms
2018-06-03 06:43:42 -07:00
committed by GitHub
50 changed files with 368 additions and 256 deletions
+4 -5
View File
@@ -5,8 +5,6 @@
* Implements the attach method, that attaches the terminal to a WebSocket stream.
*/
/// <reference path="../../../typings/xterm.d.ts"/>
import { Terminal } from 'xterm';
import { IAttachAddonTerminal } from './Interfaces';
@@ -38,10 +36,11 @@ export function attach(term: Terminal, socket: WebSocket, bidirectional: boolean
}
};
let myTextDecoder;
// TODO: This should be typed but there seem to be issues importing the type
let myTextDecoder: any;
addonTerminal.__getMessage = function(ev: MessageEvent): void {
let str;
let str: string;
if (typeof ev.data === 'object') {
if (!myTextDecoder) {
@@ -51,7 +50,7 @@ export function attach(term: Terminal, socket: WebSocket, bidirectional: boolean
str = myTextDecoder.decode(ev.data);
displayData(str);
} else {
let fileReader = new FileReader();
const fileReader = new FileReader();
fileReader.addEventListener('load', () => {
str = myTextDecoder.decode(this.result);
+5 -1
View File
@@ -8,5 +8,9 @@
"removeComments": true,
"declaration": true,
"preserveWatchOutput": true
}
},
"include": [
"**/*.ts",
"../../../typings/xterm.d.ts"
]
}
+3
View File
@@ -0,0 +1,3 @@
## fit addon
The fit addon adjusts the dimensions of the terminal to match best fit its parent element container. `fit` will only work when the element is visible.
-2
View File
@@ -13,8 +13,6 @@
* row and truncate its width with the current number of columns).
*/
/// <reference path="../../../typings/xterm.d.ts"/>
import { Terminal } from 'xterm';
export interface IGeometry {
+5 -1
View File
@@ -8,5 +8,9 @@
"removeComments": true,
"declaration": true,
"preserveWatchOutput": true
}
},
"include": [
"**/*.ts",
"../../../typings/xterm.d.ts"
]
}
-2
View File
@@ -3,8 +3,6 @@
* @license MIT
*/
/// <reference path="../../../typings/xterm.d.ts"/>
import { Terminal } from 'xterm';
/**
+5 -1
View File
@@ -8,5 +8,9 @@
"removeComments": true,
"declaration": true,
"preserveWatchOutput": true
}
},
"include": [
"**/*.ts",
"../../../typings/xterm.d.ts"
]
}
-2
View File
@@ -3,8 +3,6 @@
* @license MIT
*/
/// <reference path="../../../typings/xterm.d.ts"/>
import { SearchHelper } from './SearchHelper';
import { Terminal } from 'xterm';
import { ISearchAddonTerminal } from './Interfaces';
+5 -1
View File
@@ -8,5 +8,9 @@
"removeComments": true,
"declaration": true,
"preserveWatchOutput": true
}
},
"include": [
"**/*.ts",
"../../../typings/xterm.d.ts"
]
}
-2
View File
@@ -6,8 +6,6 @@
* WebSocket stream.
*/
/// <reference path="../../../typings/xterm.d.ts"/>
import { Terminal } from 'xterm';
import { ITerminadoAddonTerminal } from './Interfaces';
+5 -1
View File
@@ -8,5 +8,9 @@
"removeComments": true,
"declaration": true,
"preserveWatchOutput": true
}
},
"include": [
"**/*.ts",
"../../../typings/xterm.d.ts"
]
}
+5 -1
View File
@@ -8,5 +8,9 @@
"removeComments": true,
"declaration": true,
"preserveWatchOutput": true
}
},
"include": [
"**/*.ts",
"../../../typings/xterm.d.ts"
]
}
+2 -2
View File
@@ -34,8 +34,8 @@ describe('webLinks addon', () => {
const row = ' http://foo.com/a~b#c~d?e~f ';
let match = row.match(term.regex);
let uri = match[term.options.matchIndex];
const match = row.match(term.regex);
const uri = match[term.options.matchIndex];
assert.equal(uri, 'http://foo.com/a~b#c~d?e~f');
});
-2
View File
@@ -3,8 +3,6 @@
* @license MIT
*/
/// <reference path="../../../typings/xterm.d.ts"/>
import { Terminal, ILinkMatcherOptions } from 'xterm';
const protocolClause = '(https?:\\/\\/)';
+5 -1
View File
@@ -8,5 +8,9 @@
"removeComments": true,
"declaration": true,
"preserveWatchOutput": true
}
},
"include": [
"**/*.ts",
"../../../typings/xterm.d.ts"
]
}
-2
View File
@@ -3,8 +3,6 @@
* @license MIT
*/
/// <reference path="../../../typings/xterm.d.ts"/>
import { Terminal } from 'xterm';
import { IWinptyCompatAddonTerminal } from './Interfaces';
+5 -1
View File
@@ -8,5 +8,9 @@
"removeComments": true,
"declaration": true,
"preserveWatchOutput": true
}
},
"include": [
"**/*.ts",
"../../../typings/xterm.d.ts"
]
}
-2
View File
@@ -3,8 +3,6 @@
* @license MIT
*/
/// <reference path="../../../typings/xterm.d.ts"/>
import { Terminal } from 'xterm';
/**