mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 14:44:40 +02:00
* Start work on new ANSI parser color/style system. Mostly notes. Will do in bulk later
* Start of styleColorX concept
This commit is contained in:
parent
39fff7826c
commit
48be2f69be
9 changed files with 109 additions and 26 deletions
|
@ -46,7 +46,11 @@ ToggleMenuView.prototype.redraw = function() {
|
|||
item.text, i === this.focusedItemIndex && this.hasFocus ? this.focusTextStyle : this.textStyle);
|
||||
|
||||
if(1 === i) {
|
||||
this.client.term.write(this.getANSIColor(this.getColor()) + ' / '); // :TODO: We need a color for this!!!
|
||||
//console.log(this.styleColor1)
|
||||
var sepColor = this.getANSIColor(this.styleColor1 || this.getColor());
|
||||
console.log(sepColor.substr(1))
|
||||
//sepColor = '\u001b[0m\u001b[1;30m';
|
||||
this.client.term.write(sepColor + ' / ');
|
||||
}
|
||||
|
||||
this.client.term.write(this.getANSIColor(i === this.focusedItemIndex ? this.getFocusColor() : this.getColor()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue