Well, I'm not sure if it can really be called a library - it only has 2 global functions - but it's still pretty useful for prompting a user for a lot of text.
More details are in comments in the code.
The code is here.
Version | Changed | Added | Removed |
1.0 | Initial script outline | ||
1.2 | Changed text spacing | Added text input cursor | |
1.5 | Changed cursor from simple line to terminal-style block | Added uppercase/lowercase control with SHIFT | |
1.8 | Added backspace option Added more SHIFT control |
||
2.0 | Closes when the user presses ESCAPE | Removed printing of chardata as you type - not needed anymore, it was just for debugging | |
2.5 | Now stops registering more text after the user has pressed escape | ||
2.8 | Added function to retrieve text | ||
({string.gsub(s, '[a-z]', 'MAT')})[1] == 'MAT'
string.gsub(s, '[a-z]', 'MAT') == 'MAT'
string.match(s, '^[a-z]$')
(s is a single character anyway though)This I was just making for the fun of it. I'm not expecting people to use it, I just wanted a way to input lots of multiline text in a way other than using a TPT-supplied interface or lots of tpt.input()s.