* 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

@ -183,6 +183,20 @@ function ViewController(options) {
setViewProp('focusTextStyle');
setViewProp('maxLength');
setViewProp('width', function(v) { view.dimens.width = parseInt(v, 10); });
setViewProp('styleColor1', function(v) {
if(!_.has(v, 'fg')) {
return;
}
var color = {
fg : v.fg,
bg : v.bg || 0,
flags : v.flags || 0
};
view.styleColor1 = color;
});
setViewProp('fillChar', function(v) {
if(_.isNumber(v)) {