Skip to content
  • Rob Swindell's avatar
    Re-write to allow options in any order, more control over all behavior · 49053f31
    Rob Swindell authored
    Previously, in order to just specify the terminal-type string, the sysop
    would also have to pass new values for the tg-mode, client-name and
    server-name, which was not very friendly. We still support the old syntax
    where order of arguments matters, but also a new better syntax for options
    (which may now come before or after the required address[:port] argument):
    
    -c <client-name> (default: user alias)
    -s <server-name> (default: user real name)
    -t <terminal-type> (e.g. "xtrn=doorcode" to auto-exec door on server)
    -T <connect-timeout-seconds> (default: 10 seconds)
    -m <telnet-gateway-mode> (Number or TG_* vars OR'd together, default: 0)
    -p send current user alias and password as server and client-name values
    -q don't display banner or pause prompt displayed (quiet)
    -P don't pause for user key-press
    -C don't clear screen after successful session
    
    For arguments that take a value (e.g. -c, -s, -t, -T, -m), the value may
    immediately follow th...
    49053f31