* Fix MCI colors. Everything working well so far!

This commit is contained in:
Bryan Ashby 2015-04-30 14:39:03 -06:00
parent 23a4344a4b
commit 04c85d2311
8 changed files with 142 additions and 95 deletions

View file

@ -56,15 +56,11 @@ MCIViewFactory.prototype.createFromMCI = function(mci) {
var view;
var options = {
client : this.client,
id : mci.id,
color : mci.color,
focusColor : mci.focusColor,
graphicRendition : mci.graphicRendition,
focusGraphicRendition : mci.focusGraphicRendition,
position : { x : mci.position[0], y : mci.position[1] },
client : this.client,
id : mci.id,
ansiSGR : mci.SGR,
ansiFocusSGR : mci.focusSGR,
position : { x : mci.position[0], y : mci.position[1] },
};
function setOption(pos, name) {
@ -183,6 +179,7 @@ MCIViewFactory.prototype.createFromMCI = function(mci) {
break;
case 'TM' :
// :TODO: convert to new Graphics Rendition system here:
if(mci.args.length > 0) {
var color = { fg : parseInt(mci.args[0], 10), flags : 0 };
if(mci.args.length > 1) {