Merge pull request #2235 from Tyriar/webgl_prep

Pulling unrelated changes in from WebGL PR
This commit is contained in:
Daniel Imms
2019-06-15 14:49:42 -07:00
committed by GitHub
3 changed files with 4 additions and 20 deletions
+3 -2
View File
@@ -105,13 +105,14 @@ export class RenderService extends Disposable implements IRenderService {
// TODO: RenderCoordinator should be the only one to dispose the renderer
this._renderer.dispose();
this._renderer = renderer;
this.refreshRows(0, this._rowCount - 1);
}
private _fullRefresh(): void {
if (this._isPaused) {
this._needsFullRefresh = true;
} else {
this.refreshRows(0, this._rowCount);
this.refreshRows(0, this._rowCount - 1);
}
}
@@ -122,7 +123,7 @@ export class RenderService extends Disposable implements IRenderService {
public onDevicePixelRatioChange(): void {
this._renderer.onDevicePixelRatioChange();
this.refreshRows(0, this._rowCount);
this.refreshRows(0, this._rowCount - 1);
}
public onResize(cols: number, rows: number): void {
-17
View File
@@ -1,17 +0,0 @@
/**
* Copyright (c) 2017 The xterm.js authors. All rights reserved.
* @license MIT
*/
/**
* Flags used to render terminal text properly for the old CharData format
*/
export const enum FLAGS {
BOLD = 1,
UNDERLINE = 2,
BLINK = 4,
INVERSE = 8,
INVISIBLE = 16,
DIM = 32,
ITALIC = 64
}
+1 -1
View File
@@ -191,7 +191,7 @@ declare module 'xterm' {
cursor?: string,
/** The accent color of the cursor (fg color for a block cursor) */
cursorAccent?: string,
/** The selection color (can be transparent) */
/** The selection background color (can be transparent) */
selection?: string,
/** ANSI black (eg. `\x1b[30m`) */
black?: string,