* Lots of WIP on FSE demo

* WIP emit position from MutliLineEditTextView
* ansi.rawWrite() when no iconv/lfs to be processed
This commit is contained in:
Bryan Ashby 2015-07-05 19:05:55 -06:00
parent 60cae7de3d
commit 3d5d21bcb5
17 changed files with 223 additions and 80 deletions

View file

@ -54,13 +54,12 @@ function VerticalMenuView(options) {
return;
}
self.client.term.write(ansi.goto(item.row, self.position.col));
self.client.term.write(index === self.focusedItemIndex ? self.getFocusSGR() : self.getSGR());
var text = strUtil.stylizeString(item.text, item.focused ? self.focusTextStyle : self.textStyle);
self.client.term.write(
strUtil.pad(text, this.dimens.width, this.fillChar, this.justify));
ansi.goto(item.row, self.position.col) +
(index === self.focusedItemIndex ? self.getFocusSGR() : self.getSGR()) +
strUtil.pad(text, this.dimens.width, this.fillChar, this.justify)
);
};
}