• src/syncterm/telnet_io.c

    From deuce@1:103/705 to CVS commit on Thu Feb 1 00:15:49 2018
    src/syncterm telnet_io.c 1.29 1.30
    Update of /cvsroot/sbbs/src/syncterm
    In directory cvs:/tmp/cvs-serv24265

    Modified Files:
    telnet_io.c
    Log Message:
    Fix warnings


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Sat Oct 20 17:37:17 2018
    src/syncterm telnet_io.c 1.30 1.31
    Update of /cvsroot/sbbs/src/syncterm
    In directory cvs:/tmp/cvs-serv7952

    Modified Files:
    telnet_io.c
    Log Message:
    Bug-fix: when using Telnet, we would *always* send the terminal type
    (if the server supported the option), as "ANSI". Now, if the current cterm emualation is PETASCII [sic], or ATASCII, send "PETSCII" or "ATASCII"
    instead.

    Now this brings up a couple of discussion points:
    1. Should that default Telnet term-type be "ANSI-BBS" (or "ansi-bbs") instead? 2. Similarlly, RLogin connections *always* send the term-type as "ansi-bbs" -
    I think a similar change is needed in rlogin.c to be technically correct,
    but we should probably be consistent about how SyncTERM in ANSI-BBS emulation
    mode identifies itself ("ANSI", "ANSI-BBS", or "ansi-bbs").
    3. If there is terminal type advertised via SSH, that probably needs addressing
    as well.



    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Mon Oct 22 19:18:57 2018
    src/syncterm telnet_io.c 1.31 1.32
    Update of /cvsroot/sbbs/src/syncterm
    In directory cvs:/tmp/cvs-serv31770

    Modified Files:
    telnet_io.c
    Log Message:
    Resolve GCC warning: enumeration value ΓÇÿCTERM_EMULATION_ANSI_BBSΓÇÖ not handled in switch


    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to rswindell on Mon Oct 22 23:00:50 2018
    Re: src/syncterm/telnet_io.c
    By: rswindell to CVS commit on Mon Oct 22 2018 07:18 pm

    Resolve GCC warning: enumeration value ΓÇÿCTERM_EMULATION_ANSI_BBSΓÇÖ not

    That's another system where I need to run 'update-locale --reset LANG=C' (to get rid of the unicode chars). <sigh>

    digital man

    This Is Spinal Tap quote #9:
    David St. Hubbins: I mean, it's not your job to be as confused as Nigel.
    Norco, CA WX: 60.2°F, 89.0% humidity, 0 mph S wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Thu Oct 25 23:19:48 2018
    src/syncterm telnet_io.c 1.32 1.33
    Update of /cvsroot/sbbs/src/syncterm
    In directory cvs:/tmp/cvs-serv9634

    Modified Files:
    telnet_io.c
    Log Message:
    Improve compatibility with some crappy Telnet server (e.g. in C64 BBSes):
    Send CR/NUL for <Enter> rather than CR/LF. Although the Telnet spec (RFC854) requires that either combination be accepted as a single "new line" character, some Telnet servers treat CR and LF as separate input characters and do weird things (e.g. treat the LF as a second <Enter> key or <^J> or invalid input).
    If we ever come across a Telnet server that does something weird with CR/NUL (and works better receiving CRLF) then perhaps we'll need a configuration option. Hopefully not. Of course, in binary mode, none of this applies.

    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Wed Jul 10 15:59:43 2019
    src/syncterm telnet_io.c 1.35 1.36
    Update of /cvsroot/sbbs/src/syncterm
    In directory cvs:/tmp/cvs-serv10488

    Modified Files:
    telnet_io.c
    Log Message:
    Revert r1.33

    Per RFC-5198:
    2. In Net-ASCII, CR MUST NOT appear except when immediately followed
    by either NUL or LF, with the latter (CR LF) designating the "new
    line" function. Today and as specified above, CR should
    generally appear only when followed by LF. Because page layout
    is better done in other ways, because NUL has a special
    interpretation in some programming languages, and to avoid other
    types of confusion, CR NUL should preferably be avoided as
    specified above.

    It's not worth breaking all connections for some broken telnet servers. Especially since we do not explicitly want CR behaviour which is the only
    place it's allowed.

    Per RFC-854:
    the sequence "CR NUL" must be used where a carriage return alone is
    actually desired;

    It's quite possible that these "telnet servers" are actually raw socket
    servers and should use raw sockets rather than telnet.



    --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Wed Aug 21 12:33:59 2019
    src/syncterm telnet_io.c 1.37 1.38
    Update of /cvsroot/sbbs/src/syncterm
    In directory cvs:/tmp/cvs-serv29256

    Modified Files:
    telnet_io.c
    Log Message:
    putcom():
    Don't make a blocking-call to send/sendsocket() without first checking writability with select().


    --- SBBSecho 3.08-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Wed Mar 4 18:21:19 2020
    src/syncterm telnet_io.c 1.39 1.40
    Update of /cvsroot/sbbs/src/syncterm
    In directory cvs:/tmp/cvs-serv11296

    Modified Files:
    telnet_io.c
    Log Message:
    Increase putcom() timeout to 10 seconds to allow network buffers to drain.



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sun Dec 25 00:36:23 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/836593162c49c5ccf5469240
    Modified Files:
    src/syncterm/telnet_io.c
    Log Message:
    Whitespace cleanup
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Tue Apr 23 00:25:42 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/2bae9a96e637c06d8f48c8c6
    Modified Files:
    src/syncterm/telnet_io.c
    Log Message:
    Track Telnet Binary TX mode set by server via Telnet (IAC) commands

    As reported by Chris/akacastor (21:1/162), SyncTERM would always assume the Telnet session was in ASCII mode until/unless conn_binary_mode_on() was called which is only called at the beginning of a file transfer, which sets the conn_api.binary_mode accordingly. Unfortunately, if the Telnet server
    requested binary mode itself (e.g. during initial connection), SyncTERM would (try to) set the connection back to ASCII mode after any file transfer. :-(

    With this change, the conn_api.binary_mode will track the actual binary TX
    mode whether initiated locally or remotely (by the server), but it'll only be set to true when *both* directions are succesfully set to binary mode. And
    this way, if the connection was already in binary mode before any file transfer, it'll remain in binary mode as was apparently desired by the server.

    Also with this change, we could probably remove the setting of conn_api.binary_mode to true/false in conn_binary_mode_on()/off() functions, but it shouldn't hurt anything if it's left there I suppose (in case some *other* terminal transport protocols have the concept of binary mode?).
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Fri Apr 26 09:27:51 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/90bdf8c207ced9796d7820be
    Modified Files:
    src/syncterm/telnet_io.c
    Log Message:
    Fix CID 425333: update_binary_mode() is a function returning void
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Mon May 27 23:14:45 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/1c7c3efd14a0cd6b4aec9af1
    Modified Files:
    src/syncterm/telnet_io.c
    Log Message:
    We don't support echo (sending what we receive back to the server).
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)