Compare commits

...
Author SHA1 Message Date
Daniel Imms b2bb848dfe Merge pull request #2299 from Tyriar/release/3.14-5
Pull bug fixes into release/3.14 and bump version
2019-07-10 11:43:59 -07:00
Daniel Imms 8005272aa3 v3.14.5 2019-07-10 11:37:36 -07:00
Daniel Imms c97972b9bb Fix setTheme NPE in 3.14
Fixes #2220
2019-07-10 11:37:18 -07:00
Max Risuhin 0734e97022 Reset isWrapped line flag. 2019-07-10 11:35:54 -07:00
Daniel Imms 2a6791881c Merge pull request #2266 from Tyriar/release/3.14_2263
Release/3.14 2263
2019-06-26 10:56:06 -07:00
Daniel Imms 41cfe868e4 v3.14.4
Messed up publish for .3
2019-06-26 10:55:41 -07:00
Daniel Imms 71a998de76 v3.14.3 2019-06-26 10:44:21 -07:00
Daniel Imms 63b25813e7 Fix soft reset breaking default attribute
Fixes #2196
2019-06-26 10:44:06 -07:00
Daniel Imms ebb21710c5 Merge pull request #2179 from Tyriar/release/3.14_2174
Fix NPE in open
2019-06-03 12:34:14 -07:00
Daniel Imms 367e23b64e v3.14.2 2019-06-03 12:29:25 -07:00
Daniel Imms 322ae131a1 Fix NPE in open
Fixes #2174
2019-06-03 12:28:44 -07:00
Daniel Imms 4f35c21355 v3.14.1 2019-05-31 09:30:49 -07:00
Daniel Imms 13133d699f Make sure xterm.css gets built to dist/ 2019-05-31 09:30:40 -07:00
6 changed files with 13 additions and 10 deletions
+5 -1
View File
@@ -39,6 +39,10 @@ gulp.task('css', function() {
return gulp.src(`${srcDir}/**/*.css`).pipe(gulp.dest(outDir)); return gulp.src(`${srcDir}/**/*.css`).pipe(gulp.dest(outDir));
}); });
gulp.task('css-build', function() {
return gulp.src(`${srcDir}/**/*.css`).pipe(gulp.dest(buildDir));
});
gulp.task('watch-css', function() { gulp.task('watch-css', function() {
return gulp.watch(`${srcDir}/**/*.css`, ['css']); return gulp.watch(`${srcDir}/**/*.css`, ['css']);
}); });
@@ -136,6 +140,6 @@ gulp.task('sorcery-addons', ['browserify-addons'], function () {
}) })
}); });
gulp.task('build', ['css', 'sorcery', 'sorcery-addons']); gulp.task('build', ['css', 'css-build', 'sorcery', 'sorcery-addons']);
gulp.task('test', ['mocha']); gulp.task('test', ['mocha']);
gulp.task('default', ['build']); gulp.task('default', ['build']);
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "xterm", "name": "xterm",
"description": "Full xterm terminal, in your browser", "description": "Full xterm terminal, in your browser",
"version": "3.14.0", "version": "3.14.5",
"main": "lib/public/Terminal.js", "main": "lib/public/Terminal.js",
"types": "typings/xterm.d.ts", "types": "typings/xterm.d.ts",
"repository": "https://github.com/xtermjs/xterm.js", "repository": "https://github.com/xtermjs/xterm.js",
+1 -1
View File
@@ -1816,7 +1816,7 @@ export class InputHandler extends Disposable implements IInputHandler {
this._terminal.applicationCursor = false; this._terminal.applicationCursor = false;
this._terminal.buffer.scrollTop = 0; this._terminal.buffer.scrollTop = 0;
this._terminal.buffer.scrollBottom = this._terminal.rows - 1; this._terminal.buffer.scrollBottom = this._terminal.rows - 1;
this._terminal.curAttrData = DEFAULT_ATTR_DATA; this._terminal.curAttrData = DEFAULT_ATTR_DATA.clone();
this._terminal.buffer.x = this._terminal.buffer.y = 0; // ? this._terminal.buffer.x = this._terminal.buffer.y = 0; // ?
this._terminal.charset = null; this._terminal.charset = null;
this._terminal.glevel = 0; // ?? this._terminal.glevel = 0; // ??
+3 -2
View File
@@ -750,7 +750,6 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
this.element.appendChild(fragment); this.element.appendChild(fragment);
this._theme = this.options.theme; this._theme = this.options.theme;
this.options.theme = null;
this._colorManager = new ColorManager(document, this.options.allowTransparency); this._colorManager = new ColorManager(document, this.options.allowTransparency);
this._colorManager.setTheme(this._theme); this._colorManager.setTheme(this._theme);
@@ -833,7 +832,9 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
*/ */
private _setTheme(theme: ITheme): void { private _setTheme(theme: ITheme): void {
this._theme = theme; this._theme = theme;
this._colorManager.setTheme(theme); if (this._colorManager) {
this._colorManager.setTheme(theme);
}
if (this._renderCoordinator) { if (this._renderCoordinator) {
this._renderCoordinator.setColors(this._colorManager.colors); this._renderCoordinator.setColors(this._colorManager.colors);
} }
+2 -4
View File
@@ -22,9 +22,7 @@ export function applyWindowsMode(terminal: ITerminal): IDisposable {
const line = terminal.buffer.lines.get(terminal.buffer.ybase + terminal.buffer.y - 1); const line = terminal.buffer.lines.get(terminal.buffer.ybase + terminal.buffer.y - 1);
const lastChar = line.get(terminal.cols - 1); const lastChar = line.get(terminal.cols - 1);
if (lastChar[CHAR_DATA_CODE_INDEX] !== NULL_CELL_CODE && lastChar[CHAR_DATA_CODE_INDEX] !== WHITESPACE_CELL_CODE) { const nextLine = terminal.buffer.lines.get(terminal.buffer.ybase + terminal.buffer.y);
const nextLine = terminal.buffer.lines.get(terminal.buffer.ybase + terminal.buffer.y); nextLine.isWrapped = (lastChar[CHAR_DATA_CODE_INDEX] !== NULL_CELL_CODE && lastChar[CHAR_DATA_CODE_INDEX] !== WHITESPACE_CELL_CODE);
nextLine.isWrapped = true;
}
}); });
} }
+1 -1
View File
@@ -217,7 +217,7 @@ export class AttributeData implements IAttributeData {
} }
} }
export const DEFAULT_ATTR_DATA = new AttributeData(); export const DEFAULT_ATTR_DATA = Object.freeze(new AttributeData());
/** /**
* CellData - represents a single Cell in the terminal buffer. * CellData - represents a single Cell in the terminal buffer.