Set background color on Renderer immediately

Prevents black flash on init
This commit is contained in:
Daniel Imms
2017-09-14 00:22:57 -07:00
parent c2b765f3ff
commit aca7ab63e8
9 changed files with 79 additions and 76 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { IColorSet } from './Interfaces';
import { IColorSet, IColorManager } from './Interfaces';
import { ITheme } from '../Interfaces';
const DEFAULT_FOREGROUND = '#ffffff';
@@ -64,7 +64,7 @@ function toPaddedHex(c: number): string {
/**
* Manages the source of truth for a terminal's colors.
*/
export class ColorManager {
export class ColorManager implements IColorManager {
public colors: IColorSet;
constructor() {