lnterm, line terminal (c) 2000 Stanislav V. Mekhanoshin

What's this
-----------

This program is the simple terminal with the possibility to redirect standard
input/output. You need OS Windows 9x/NT/2000 or DOS to run it. Fossil is
required to work under DOS.

License Agreement
-----------------

This is Freeware software distributed "AS IS". Feel free to use and distribute
the software and do it on Your own risk.

There is no warranty of any kind, either expressed or implied, including but
not limited to the implied warranties of merchantability and/or fitness for a
particular purpose. The copyright owner is not liable for damages of any kind.
By using this software, you agree to this.

Usage
-----

lnterm [com:n] [baud:n] [rx-timeout:ms] [tx-timeout:ms]

Qualifiers:

com:n           - Com port number. Default is 1.
baud:n          - Com port lock baud. Default is 57600.
                  Port should be locked by fossil under DOS, this parameter
                  is ignored for compatibility.
rx-timeout:n    - Timeout in milliseconds to wait the next symbol from modem.
                  Default is 250.
tx-timeout:n    - Timeout in milliseconds to send the next symbol to modem.
                  If the write operation will not be finished for given period
                  then write attempt will be canceled and error is signaled.
                  Default is 2000.

lnterm reads data from stdin and sends the modem response to the stdout.
Therefor you can redirect input/output. For example one can init modem with
the command:

  echo ATZ|lnterm

When sending command to the modem the special symbol translation will occur:

  ^ - set DTR high
  v - lower DTR
  | - carriage return
  ~ - pause in sending data 1 second
  ` - pause in sending data 50 milliseconds

Please note that the symbol 'v' will be interpreted as control symbol. Use
commands with symbol 'V' (in uppercase) for proper work. Remeber also that
most of the modems allow commands to be in lower or upper case but not in the
mixed case!

For example following command will lower DTR, wait 100 ms, raise DTR and send
to command in a sequence to the modem:

  lnterm<cmd.txt

Where cmd.txt will contain:

  v``^AT#UD|ATZ

Try to do the same with a command echo v``^AT#UD|ATZ|lnterm will not succeed.
Command processor will interpret symbol '|' as a pipe and ATZ as a command.
Refer to the documentation of your shell to achieve the required behavior.
For example with 4DOS/4NT you can use following command:

  echo v%=`%=`%=^AT#UD%=|ATZ|lnterm

Also note that some modems it can be needed to make an additional pause before
ATZ:

  v``^AT#UD|~ATZ

How to reach me
---------------

mail-to: rampitec@tu.spb.ru
FIDO:    2:5030/172.9@fidonet.org
