Merge remote-tracking branch 'origin/master' into fix_lint

This commit is contained in:
Daniel Imms
2018-01-18 12:11:21 -08:00
12 changed files with 30 additions and 13 deletions
-1
View File
@@ -1,7 +1,6 @@
language: node_js language: node_js
os: os:
- linux - linux
- osx
node_js: node_js:
- 6 - 6
before_install: before_install:
+8 -3
View File
@@ -52,9 +52,14 @@ gulp.task('tsc', function () {
let tsProjectAddon = ts.createProject(`./src/addons/${addon}/tsconfig.json`); let tsProjectAddon = ts.createProject(`./src/addons/${addon}/tsconfig.json`);
let tsResultAddon = tsProjectAddon.src().pipe(sourcemaps.init()).pipe(tsProjectAddon()); let tsResultAddon = tsProjectAddon.src().pipe(sourcemaps.init()).pipe(tsProjectAddon());
let tscAddon = tsResultAddon.js let tscAddon = merge(
.pipe(sourcemaps.write('.', {includeContent: false, sourceRoot: ''})) tsResultAddon.js
.pipe(gulp.dest(`${outDir}/addons/${addon}`)); .pipe(sourcemaps.write('.', {includeContent: false, sourceRoot: ''}))
.pipe(gulp.dest(`${outDir}/addons/${addon}`)),
tsResultAddon.dts
.pipe(sourcemaps.write('.', {includeContent: false, sourceRoot: ''}))
.pipe(gulp.dest(`${outDir}/addons/${addon}`))
)
return tscAddon; return tscAddon;
}); });
+4
View File
@@ -1573,6 +1573,8 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
// page up // page up
if (ev.shiftKey) { if (ev.shiftKey) {
result.scrollLines = -(this.rows - 1); result.scrollLines = -(this.rows - 1);
} else if (modifiers) {
result.key = C0.ESC + '[5;' + (modifiers + 1) + '~';
} else { } else {
result.key = C0.ESC + '[5~'; result.key = C0.ESC + '[5~';
} }
@@ -1581,6 +1583,8 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
// page down // page down
if (ev.shiftKey) { if (ev.shiftKey) {
result.scrollLines = this.rows - 1; result.scrollLines = this.rows - 1;
} else if (modifiers) {
result.key = C0.ESC + '[6;' + (modifiers + 1) + '~';
} else { } else {
result.key = C0.ESC + '[6~'; result.key = C0.ESC + '[6~';
} }
+2 -1
View File
@@ -5,6 +5,7 @@
"rootDir": ".", "rootDir": ".",
"outDir": "../../../lib/addons/attach/", "outDir": "../../../lib/addons/attach/",
"sourceMap": true, "sourceMap": true,
"removeComments": true "removeComments": true,
"declaration": true
} }
} }
+2 -1
View File
@@ -5,6 +5,7 @@
"rootDir": ".", "rootDir": ".",
"outDir": "../../../lib/addons/fit/", "outDir": "../../../lib/addons/fit/",
"sourceMap": true, "sourceMap": true,
"removeComments": true "removeComments": true,
"declaration": true
} }
} }
+2 -1
View File
@@ -5,6 +5,7 @@
"rootDir": ".", "rootDir": ".",
"outDir": "../../../lib/addons/fullscreen/", "outDir": "../../../lib/addons/fullscreen/",
"sourceMap": true, "sourceMap": true,
"removeComments": true "removeComments": true,
"declaration": true
} }
} }
+2 -1
View File
@@ -5,6 +5,7 @@
"rootDir": ".", "rootDir": ".",
"outDir": "../../../lib/addons/search/", "outDir": "../../../lib/addons/search/",
"sourceMap": true, "sourceMap": true,
"removeComments": true "removeComments": true,
"declaration": true
} }
} }
+2 -1
View File
@@ -5,6 +5,7 @@
"rootDir": ".", "rootDir": ".",
"outDir": "../../../lib/addons/terminado/", "outDir": "../../../lib/addons/terminado/",
"sourceMap": true, "sourceMap": true,
"removeComments": true "removeComments": true,
"declaration": true
} }
} }
+2 -1
View File
@@ -5,6 +5,7 @@
"rootDir": ".", "rootDir": ".",
"outDir": "../../../lib/addons/winptyCompat/", "outDir": "../../../lib/addons/winptyCompat/",
"sourceMap": true, "sourceMap": true,
"removeComments": true "removeComments": true,
"declaration": true
} }
} }
+2 -1
View File
@@ -5,6 +5,7 @@
"rootDir": ".", "rootDir": ".",
"outDir": "../../../lib/addons/zmodem/", "outDir": "../../../lib/addons/zmodem/",
"sourceMap": true, "sourceMap": true,
"removeComments": true "removeComments": true,
"declaration": true
} }
} }
+2 -1
View File
@@ -108,9 +108,10 @@ export class CursorRenderLayer extends BaseRenderLayer {
} }
public onGridChanged(terminal: ITerminal, startRow: number, endRow: number): void { public onGridChanged(terminal: ITerminal, startRow: number, endRow: number): void {
// Only render if the animation frame is not active
if (!this._cursorBlinkStateManager || this._cursorBlinkStateManager.isPaused) { if (!this._cursorBlinkStateManager || this._cursorBlinkStateManager.isPaused) {
this._render(terminal, false); this._render(terminal, false);
} else {
this._cursorBlinkStateManager.restartBlinkAnimation(terminal);
} }
} }
+2 -1
View File
@@ -5,7 +5,8 @@
"rootDir": "src", "rootDir": "src",
"outDir": "lib", "outDir": "lib",
"sourceMap": true, "sourceMap": true,
"removeComments": true "removeComments": true,
"declaration": true
}, },
"include": [ "include": [
"src/**/*" "src/**/*"