Add cursor to ITheme

This commit is contained in:
Daniel Imms
2017-09-01 22:53:21 -07:00
parent dc1e727613
commit 4919c40b57
7 changed files with 32 additions and 11 deletions
+2
View File
@@ -77,6 +77,7 @@ export class ColorManager {
this.colors = {
foreground: '#ffffff',
background: '#000000',
cursor: '#ffffff',
ansi: generate256Colors(DEFAULT_ANSI_COLORS)
};
}
@@ -84,6 +85,7 @@ export class ColorManager {
public setTheme(theme: ITheme): void {
if (theme.foreground) this.colors.foreground = theme.foreground;
if (theme.background) this.colors.background = theme.background;
if (theme.cursor) this.colors.cursor = theme.cursor;
if (theme.black) this.colors.ansi[0] = theme.black;
if (theme.red) this.colors.ansi[1] = theme.red;
if (theme.green) this.colors.ansi[2] = theme.green;