mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 12:47:13 +02:00
* A lot more work on cursor movement/etc. for MultiLineEditTextView2
* Start mostly placeholder stuff for regular key press / insertion of text
This commit is contained in:
parent
9be258dab5
commit
e401e4a1a0
3 changed files with 88 additions and 16 deletions
|
@ -6,6 +6,7 @@ var miscUtil = require('./misc_util.js');
|
|||
|
||||
exports.stylizeString = stylizeString;
|
||||
exports.pad = pad;
|
||||
exports.replaceAt = replaceAt;
|
||||
|
||||
// :TODO: create Unicode verison of this
|
||||
var VOWELS = [ 'a', 'e', 'i', 'o', 'u' ];
|
||||
|
@ -145,3 +146,7 @@ function pad(s, len, padChar, dir, stringSGR, padSGR) {
|
|||
|
||||
return stringSGR + s;
|
||||
}
|
||||
|
||||
function replaceAt(s, n, t) {
|
||||
return s.substring(0, n) + t + s.substring(n + 1);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue