https://gitlab.synchro.net/main/sbbs/-/commit/9e3ca95d9c966929f720d453
Modified Files:
src/sbbs3/str.cpp
Log Message:
Overhaul the gettmplt() (in JS, console.gettemplate) function
Oh this was (and in some ways is still) oh so broken and has been forever.
If backspace, DEL, or Ctrl-X was used, the returned string was often not what was being displayed on the terminal when the user hit ENTER. <sigh>
- Ctrl-X, Backspace and DEL actually clear out the entered text now
Backspace/DEL don't remove the non-template (e.g. symbol) chars though
- The left and right arrows keys can now be used to traverse the edited text
- TAB is now treated the same as CR (much like getstr())
- When editing a string, the cursor starts at the first character instead of
the last as this seems much more convenient. Perhaps getstr() should get the
treatment, but I hesitate because getstr() is used by so many.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net