
Terminal.Telnet for OS/2  (c) 1997,1998,2002 by madded2.
--------------------------------------------------------

 The program provides remote console through serial port and/or modem.
 It requires TCP/IP stack and run telnetd.

 Actually the program is telnet-client but it uses for input/output serial
 port instead of screen and keyboard.

 Termtel can serve any terminal program connected through simple 3-wire
 null-modem cord or modem. Good results were observed on LiveWire for OS/2
 and Telemate for DOS in ANSI emulation terminal.

 If no option is given Termtel shows its usage help.

 Termtel supports two modes: daemon and batch. As a daemon Termtel waits for
 client connection that is detected by DCD or by triple <Enter> sequence.
 In the batch mode Termtel uses open connection provided by calling program
 (mailer).

 COM-port is given as a port number and parameters, or as an open port handle.
 The latter is allowed in batch mode only.

 Open sessions can be closed by Ctrl+]. It's suggested to double every Esc
 click. Being clicked only once it will take effect in 3 seconds.

 For bidirectional file transfer through Zmodem protocol Termtel uses freeware
 "P" program from The transfer protocol package, version 2.05, Copyright (c)
 1994 by Jyrki Salmi. Zmodem will work only when termtel is connected to local 
 telnetd.

 All Zmodem related files are placed in Zmodem\ directory. It's recommended
 to copy files rz.cmd, sz.cmd and p.exe in any directory presented in PATH
 (for example, c:\os2\apps\), and file p.dll in LIBPATH directory (for
 example, c:\os2\dll).

 Usage: sz file_name - send file through Zmodem;
        rz - receive file.

 Usage examples.

 termtel -port com2:38400 -wait enter
 Run Termtel as a daemon on port com3 mode 38400 baud, 8 bits, 1 stop bit,
 no parity control. It waits for triple <Enter> and opens a session with a 
 local telnetd.

 termtel -port com2:38400 -wait dcd -term at386 ivt.istu.udm.ru
 To work with a modem:
 Run Termtel as a daemon on port com2 mode 38400 baud, 8 bits, 1 stop 
 bit, no parity control. It waits for DCD, opens session with ivt.istu.udm.ru

 Process BBS          C:\tcpip\bin\termtel.exe -handle *O -dcd
 Run Termtel under fido-mailer T-Mail. Termtel gets open COM-port handle, 
 immediately opens session with a local telnetd and closes it on DCD lost.

 Option -v allows debug output.
 Termtel can be run in detached session.

 Exit codes:

    0 - no error;
    1 - syntax error;
    2 - serial port error;
    3 - TCP/IP error;
    4 - DCD lost;
    5 - time-out;
    6 - OS/2 system error.

 To avoid installation and tuning of OS/2 telnetd it's possible to use
 tiny telnetd (ttelnetd) from ttools: http://zuko.mitm.ru/files/ttools03.zip
 Note that it doesn't allow to run any VIO-programs (including File Commander).

---
 The author
 
 name:   Stepan Kazakov
 e-mail: madded@mitm.ru
 fido:   2:5050/13.29
 url:    http://zuko.mitm.ru
 irc:    zuko or [zuko] on #os2russian at efnet irc servers.

 English version (this file) by RElf.
