• ctrl/text.dat docs/v322_new.md exec/load/sbbsdefs.js text.js src/sbbs3

    From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sat Dec 5 20:18:52 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/7fb3851758acf648e4518980
    Modified Files:
    ctrl/text.dat docs/v322_new.md exec/load/sbbsdefs.js text.js src/sbbs3/getstr.cpp sbbs.h sbbsdefs.h text.h text_defaults.c text_id.c upload.cpp writemsg.cpp text/menu/editor.asc
    Log Message:
    Message editor: line editing commands, redraw, and help for new users (#1473)

    Editing:
    - Enter splits the line at the cursor; Backspace at the start of a line
    joins it to the line above (re-wrapping the result if it no longer
    fits). Both need cursor movement, so dumb terminals are unchanged.
    - New /J[x] (join a line with the next), /W[x] (re-wrap the message, or
    the paragraph at line x; /Wx-y a range) and /R/old/new/ (replace text,
    with the count reported by the new TextReplaced string). Lines that
    begin with white-space (e.g. quotes) begin a paragraph.
    - /I[x] keeps inserting until a line holding only "."; /L takes a range
    and always shows line numbers. /D, /E and /I accept only a line number
    or range, so a line such as "/Ende" stays text.
    - The changed lines are listed after /J, /W and /R. Listing no longer
    truncates UTF-8 lines in the middle of a character.

    Screen:
    - Ctrl-R redraws the screen (the tab line, the message's top text when
    line 1 is shown, and the lines around the cursor), even before any
    text is entered. getstr() reports Ctrl-R to a caller using K_LEFTEXIT
    or K_RIGHTEXIT with the new CON_REDRAW console flag, cleared on entry
    like the other exit flags.
    - The line counter is reset after each line entered, as getstr() does
    for its own newline, so a display file that clears the screen no
    longer pauses first.

    Help:
    - "Type /? on a new line for menu." moves out of EnterMsgNow into the
    new EditorMenuHint string, shown with the banner and again after every
    second blank line entered in a row, wherever the cursor is.
    - A line holding only the command prefix shows the menu.
    - The new EditorCommandPrefix string (default "/") sets the command
    prefix shown in the hint and menu (e.g. "." for keyboards where "/" is
    awkward); "/" is always accepted as well.
    - The /? menu (editor.asc) clears the screen, merges the optional-
    argument forms into one row each, and fits 40x24 terminals.

    Quitting the /UPLOAD protocol menu no longer reports "File NOT
    RECEIVED": recvfile() reports a quit through an optional out-parameter.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net