* styleColor -> styleSGR1, styleSGR2

This commit is contained in:
Bryan Ashby 2015-04-30 16:41:43 -06:00
parent 04c85d2311
commit e8346779da
6 changed files with 28 additions and 44 deletions

View file

@ -67,9 +67,8 @@ function View(options) {
this.ansiSGR = options.ansiSGR || ansi.getSGRFromGraphicRendition( { fg : 39, bg : 49 }, true);
this.ansiFocusSGR = options.ansiFocusSGR || this.ansiSGR;
if(options.styleColor1) {
this.styleColor1 = options.styleColor1;
}
this.styleSGR1 = options.styleSGR1 || this.ansiSGR;
this.styleSGR2 = options.styleSGR2 || this.ansiFocusSGR;
if(this.acceptsInput) {
this.specialKeyMap = options.specialKeyMap || VIEW_SPECIAL_KEY_MAP_DEFAULT;