• src/sbbs3/putmsg.cpp

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Jan 23 01:08:25 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/09a32c0dad9f896893f2845b
    Modified Files:
    src/sbbs3/putmsg.cpp
    Log Message:
    Basic PETSCII output column/line counting in putmsg()

    When printing a PETSCII Sequence (.seq) file, count the lines/rows and columns similar to how we would if we were using outchar() (but we don't, we use the lower-level outcom() to bypass any translations).

    This is related to issue #325:
    PETSCII seq files seem to display just fine, the problem I saw was with the auto-pausing (e.g. before a screen-clear) after displaying them.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Jan 23 12:29:13 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/ca9bac807ce2a4721d6c17cb
    Modified Files:
    src/sbbs3/putmsg.cpp
    Log Message:
    Add case fall-through comment

    To address CID 345626

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Jan 23 12:48:34 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/77c7a2933e156cd2f0e61619
    Modified Files:
    src/sbbs3/putmsg.cpp
    Log Message:
    Address GCC warnings: case label value exceeds maximum value for type

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Thu Mar 10 00:24:49 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/3ca2c14ff9a87674c8e8808b
    Modified Files:
    src/sbbs3/putmsg.cpp
    Log Message:
    Fix Clang warnings.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sun Mar 12 17:36:56 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/6365250b6a0c4a3ea845918e
    Modified Files:
    src/sbbs3/putmsg.cpp
    Log Message:
    Add TRUNCATE @-code to enable line truncation when too wide for user's terminal

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (in GitKraken)@VERT to Git commit to main/sbbs/master on Sun Mar 12 18:24:18 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/2c546dc85b72fc25b1ffd6b0
    Modified Files:
    src/sbbs3/putmsg.cpp
    Log Message:
    Add TRUNCOFF @-code to turn off line truncation (if already turned on)

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (in GitKraken)@VERT to Git commit to main/sbbs/master on Mon Mar 13 18:31:32 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/9a43c11f3a86ae90d9af26cd
    Modified Files:
    src/sbbs3/putmsg.cpp
    Log Message:
    Fix typo in comment

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Mon Feb 3 11:11:09 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/0178043e56c04ef741cbb1cb
    Modified Files:
    src/sbbs3/putmsg.cpp
    Log Message:
    Correctly center lines of text that contain @-codes, after @center@

    @-codes weren't expanded before the text length calculation, so the centering logic (offset in the user's terminal screen) would usually be incorrect as pointed out by Nelgin in #synchronet when we were discussing the |C @-code modifier (which is to center an @-code value in a field, not the screen).

    This issue was a known limitation of the fix to issue #418 (commit 8987150bd) but now that we have the expand_atcodes() function (hooray!), this is an
    easily solvable problem.

    Note: we're now calling center() withOUT the 'msg' parameter set to true,
    which means the @center@ code goes back to the previous (to issue #418 fix) behavior of just using bputs() for the centered text (we don't need the recursive call to pustmsg() to support @-codes any longer). This was the only reason that center() grew the optional 'msg' parameter so we likely can remove that option/feature at some date.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Mon Mar 24 01:14:25 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/1886c63776b7cfa454dfb9ca
    Modified Files:
    src/sbbs3/putmsg.cpp
    Log Message:
    Clean-up the hex and decimal value parsing of "extra attribute codes"

    Eliminate the unnecessary calls to snprintf() and atoi()/ahtoul() since these are simple fixed-length parses. No change in behavior, just a minor optimization.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Wed Jan 7 03:57:55 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/0848856a624e3eeb89eaaa00
    Modified Files:
    src/sbbs3/putmsg.cpp
    Log Message:
    Add support for Wildcat! @ codes: STOP, NOSTOP, and NOCODE

    The NOCODE one is potentially useful I think (disables @-code parsing from
    that point forward in the file).

    STOP and NOSTOP are just like PCBoard's QON and QOFF

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Fri Jan 9 02:24:03 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/c6212d580ce6aac69d730db4
    Modified Files:
    src/sbbs3/putmsg.cpp
    Log Message:
    PCBoard and Wildcat! color codes don't support lowercase hex digits

    From the documents and examples I could find, support for lower case hex
    digits ('a'-'f') was never "a thing" in their color codes. So let's not parse these codes as valid color codes for these platforms.

    Add support for PCBoard XON and XOFF @-codes (to enable/disable PCBoard-style color code interpretation).

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sat Jan 10 20:48:55 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/73de34c503abde8b5312b6a6
    Modified Files:
    src/sbbs3/putmsg.cpp
    Log Message:
    CENTER @-code now abides by the P_TRUNCATE mode

    (passes current mode to Terminal::center())

    Stray WRAPOFF codes (not following a WORDWRAP code) are now ignored.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Mon Jan 19 23:49:20 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/0a2695696d52a45a1b8c6895
    Modified Files:
    src/sbbs3/putmsg.cpp
    Log Message:
    Fix the Extra Attribute clearing and lines_printed counting logic

    broken since commit 374282bf814d7 (New Terminal abstraction)

    The '\n' was skipped at the bottom of the loop, so lfisnl was never set to true and we never reset the attribute (back to lightgray) at the end of a line printed, like is expected of *some* extra attribute codes.

    The lines_printed counter was never incremented, so the logic that used it (detecting false-abort) would not work.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Tue Jan 27 18:04:07 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/ccf14ea502fa2007300b64d4
    Modified Files:
    src/sbbs3/putmsg.cpp
    Log Message:
    Add support for the WRAP @-code

    Useful with @80COLS@ to force ungraceful line wrapping (for Accession)

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Mon Feb 2 02:01:42 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/88a79ac23233f4137fde59d0
    Modified Files:
    src/sbbs3/putmsg.cpp
    Log Message:
    "Inverse" markup mode fix - don't blink-inverse when high fg_attr was set

    This was likely masked by Vertrauen's use of alternate fonts that disable blinking, so I didn't notice (and I don't use the '#' markup very often).

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sun Feb 8 08:15:07 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/232ce2d641e31ff4ca5f979d
    Modified Files:
    src/sbbs3/putmsg.cpp
    Log Message:
    Use new IS_UPPERHEXDIGIT macro

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