* 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:
Bryan Ashby
2015-04-28 22:42:22 -06:00
parent 39fff7826c
commit 48be2f69be
9 changed files with 109 additions and 26 deletions

View File

@@ -179,9 +179,15 @@ MCIViewFactory.prototype.createFromMCI = function(mci) {
break;
case 'TM' :
setOption(0, 'textStyle');
if(mci.args.length > 0) {
var color = { fg : parseInt(mci.args[0], 10), flags : 0 };
if(mci.args.length > 1) {
color.bg = parseInt(mci.args[1], 10);
}
options.styleColor1 = color;
}
setFocusOption(0, 'focusTextStyle')
setFocusOption(0, 'focusTextStyle');
view = new ToggleMenuView(options);
break;