Subj : src/sbbs3/str.cpp To : Git commit to main/sbbs/master From : Rob Swindell (on Windows 11) Date : Sat Jan 03 2026 12:14 am 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. - 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. .