• src/sbbs3/main.cpp terminal.cpp

    From Deucе@1:103/705 to Git commit to main/sbbs/master on Saturday, April 11, 2026 23:27:08
    https://gitlab.synchro.net/main/sbbs/-/commit/f12aa2a2c854cf95ff7b6941
    Modified Files:
    src/sbbs3/main.cpp terminal.cpp
    Log Message:
    Fix issue #1120

    When you connect only with sftp, input and output for the terminal
    server won't work. Make them early exit.

    But the REAL problem was that cols = rows = 0...
    The line wrapping was subtracting cols from column to get it below
    cols... but that doesn't work when cols is zero.

    Special case cols = 0 in inc_col() and rows = 0 in inc_row()
    This is the bit that fixes it.
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)