• src/syncterm/term.c

    From Deucе@VERT to Git commit to main/sbbs/master on Sat Mar 13 00:17:52 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/ecc690f573875558e0cf0a21
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Handle the new value of CIO_KEY_QUIT better.

    The low byte is no longer zero.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sat Mar 13 14:23:07 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/0f312cb33a391e7addf592f4
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Remove some backslashes from the ends of lines...

    Presumably these were part of macros once and never cleaned up?

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sun Mar 14 22:57:48 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/2ca3bc02fda2de5eb85d8e15
    Modified Files:
    src/syncterm/term.c
    Log Message:
    In XModem/YModem, when total_files reaches zero, stop downloading.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Mon Mar 15 00:03:43 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/24739b234af6f95de7651d7b
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Revert last change... YModem is supposed to send a termination block.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Mon Mar 15 01:30:18 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/581087f329a38dc7130b0c76
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Work around broken sz

    Some broken protocol drivers (like sz) don't send a YModem terminate
    at the end of a batch (or maybe just after a single file?) so SyncTERM
    ends up trying to fall back from G to CRC-16 to 8-bit before ending.

    This detects when the last known file was received, and if the YModem
    header that follows is not correct, aborts the transfer.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Fri Mar 19 11:05:12 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/d8920e0602d46033d5949aa0
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Better comment conformance in key parsing

    There's a comment saying we set key=0 when we consume it... do so
    in a couple cases where it wasn't done.

    Range check the key before sending to the remote.

    This should not actually do anything different, but in the future
    if things are changed at least the comments won't be misleading.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Mon May 17 22:29:22 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/b815404814b9dd6819c14c13
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Fix ETA calculation.

    Use remaining bytes divided by CPS rather than total estimated time
    minus elapsed time.

    We squirrley on resumed ZModem downloads.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sun Dec 25 14:09:03 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/cd3a3a2d9f5b63b722194c80
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Fix b64 decode buf length calculation

    Previously, b64_decode was being asked to decode past the end of
    the application string.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Wed Dec 28 19:54:31 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/29eb84a9762d210550e54c0e
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Since we have the code to generate the correct gamma transfer, let's
    not scale it in one colour space before translating it to a different
    one.

    Also, since almost all PPMs will use a maxval of 255, compile that
    in as the default so we don't need to generate it.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Wed Dec 28 20:21:12 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/6cfed436084fb6acf5591e7e
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Initialize pointer to NULL to avoid free()ing unallocated memory.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Wed Dec 28 20:22:50 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/fafed094c52b0ca167e6fd51
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Initialize mbuf too.

    ---
    ■ 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 Wed Mar 29 12:40:18 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/7aa6f21e42f94ff7807279a5
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Resolve GCC 12.2 warnings

    warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘void *’
    warning: ‘sprintf’ writing a terminating nul past the end of the destination

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Fri Apr 21 13:50:36 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/d0650fbaeb167af68d51d2bf
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Perform unicode-to-codepage for US-ASCII input

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Fri Apr 21 13:53:30 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/79831364263801c9e3a6141d
    Modified Files:
    src/syncterm/term.c
    Log Message:
    include <math.h> for pow()

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on ChromeOS)@VERT to Git commit to main/sbbs/master on Wed May 31 21:33:50 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/12eb94e24a34dee6eea938db
    Modified Files:
    src/syncterm/term.c
    Log Message:
    warning: pointer targets in passing argument 1 of ‘strcmp’ differ in signedness

    ---
    ■ 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 Jun 5 16:54:36 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/a47f94b80878b4d6597234a6
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Fix GCC v12.2.0 -O1 warnings

    warning: ‘maxval’ may be used uninitialized
    warning: ‘inch’ may be used uninitialized

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sun Sep 29 17:47:10 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/93a8c94862d8c76146460413
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Fix bug generating SAUCE date introduced by commit dcf8c35f9b

    Using snprintf() prevents the last character of the date from
    being put into the string.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sun Sep 29 18:10:09 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/829c5009fcfb0b2c5be5eac2
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Fix last commit.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Mon Sep 30 19:53:31 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/02460447d3eaa1f1532229e4
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Fix SAUCE date properly... avoid writing past the end of the buffer

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Wed Oct 23 09:38:38 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/f25fafae6c6cc27761998909
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Fix some remains of input weirdness...

    Now that the conio layer is handling translation of character sets,
    the key handler in term.c should only handle terminal related
    translations (such as backspace to delete).

    This fixes bug 159, but there's still some inconsistency across
    the various backends on how they handle C0 control characters and
    input characters outside of US-ASCII.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sun Nov 3 01:40:35 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/b50d96f6f771017444853a31
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Make Return send #, use CTRL-Return for return

    Not tested on Windows.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sun Nov 3 01:49:08 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/774d285494551046a4e73ec8
    Modified Files:
    src/syncterm/term.c
    Log Message:
    Map underscore to pound

    I think this map may be the final one.

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