mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 22:54:37 +02:00
* Fix MCI colors. Everything working well so far!
This commit is contained in:
parent
23a4344a4b
commit
04c85d2311
8 changed files with 142 additions and 95 deletions
16
core/view.js
16
core/view.js
|
@ -64,8 +64,8 @@ function View(options) {
|
|||
this.dimens.width = options.dimens.width;
|
||||
}
|
||||
|
||||
this.graphicRendition = options.graphicRendition || { fg : 7, bg : 0, styles : [ 0 ] };
|
||||
this.focusGraphicRendition = options.focusGraphicRendition || this.graphicRendition;
|
||||
this.ansiSGR = options.ansiSGR || ansi.getSGRFromGraphicRendition( { fg : 39, bg : 49 }, true);
|
||||
this.ansiFocusSGR = options.ansiFocusSGR || this.ansiSGR;
|
||||
|
||||
if(options.styleColor1) {
|
||||
this.styleColor1 = options.styleColor1;
|
||||
|
@ -167,20 +167,12 @@ View.prototype.setColor = function(color, bgColor, flags) {
|
|||
};
|
||||
*/
|
||||
|
||||
View.prototype.getGraphicRendition = function() {
|
||||
return this.graphicRendition;
|
||||
}
|
||||
|
||||
View.prototype.getFocusGraphicRendition = function() {
|
||||
return this.focusGraphicRendition;
|
||||
}
|
||||
|
||||
View.prototype.getSGR = function() {
|
||||
return ansi.getSGRFromGraphicRendition(this.getGraphicRendition());
|
||||
return this.ansiSGR;
|
||||
}
|
||||
|
||||
View.prototype.getFocusSGR = function() {
|
||||
return ansi.getSGRFromGraphicRendition(this.getFocusGraphicRendition());
|
||||
return this.ansiFocusSGR;
|
||||
}
|
||||
|
||||
View.prototype.redraw = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue