* Start of work on re-write of SGR stuff related to MCI codes

This commit is contained in:
Bryan Ashby 2015-04-29 15:38:20 -06:00
parent 48be2f69be
commit 3f29e3dba4
10 changed files with 110 additions and 94 deletions

View file

@ -37,7 +37,7 @@ ToggleMenuView.prototype.redraw = function() {
this.cachePositions();
this.client.term.write(this.getANSIColor(this.hasFocus ? this.getFocusColor() : this.getColor()));
this.client.term.write(this.hasFocus ? this.getFocusSGR() : this.getSGR());
assert(this.items.length === 2);
for(var i = 0; i < 2; i++) {
@ -47,13 +47,13 @@ ToggleMenuView.prototype.redraw = function() {
if(1 === i) {
//console.log(this.styleColor1)
var sepColor = this.getANSIColor(this.styleColor1 || this.getColor());
console.log(sepColor.substr(1))
//sepColor = '\u001b[0m\u001b[1;30m';
//var sepColor = this.getANSIColor(this.styleColor1 || this.getColor());
//console.log(sepColor.substr(1))
var sepColor = '\u001b[0m\u001b[1;30m'; // :TODO: FIX ME!!!
this.client.term.write(sepColor + ' / ');
}
this.client.term.write(this.getANSIColor(i === this.focusedItemIndex ? this.getFocusColor() : this.getColor()));
this.client.term.write(i === this.focusedItemIndex ? this.getFocusSGR() : this.getSGR());
this.client.term.write(text);
}
};