mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-01 15:34:30 +02:00
+ MCI support for focusArgs, e.g. 'focusTextStyle'
+ TextView initial support for fillChar and justify + Add color support to string_util.js::pad() * Better color handling in Views
This commit is contained in:
parent
4234e03008
commit
6c841105ab
13 changed files with 126 additions and 162 deletions
|
@ -16,7 +16,8 @@ function EditTextView(client, options) {
|
|||
TextView.call(this, client, options);
|
||||
|
||||
this.clientBackspace = function() {
|
||||
this.client.term.write('\b \b');
|
||||
this.client.term.write(
|
||||
'\b' + this.getANSIColor(this.getColor()) + this.fillChar + '\b' + this.getANSIColor(this.getFocusColor()));
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -29,7 +30,7 @@ EditTextView.prototype.onKeyPress = function(key, isSpecial) {
|
|||
|
||||
assert(1 === key.length);
|
||||
|
||||
console.log('key: ' + key);
|
||||
// :TODO: how to handle justify left/center?
|
||||
|
||||
if(this.text.length < this.options.maxLength) {
|
||||
key = strUtil.stylizeString(key, this.textStyle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue