* 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user