home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / internet / tcpip204 / TCPIP_Doc / Notes / Switches < prev    next >
Text File  |  1994-09-30  |  3KB  |  95 lines

  1. Terminal Control Command Switches
  2. =================================
  3.  
  4. FTP, TELNET, FINGER have had their command syntax extend to allow
  5. terminal control options and expect/send strings to be appended to the
  6. basic command. See the file "Chat for precise details of expect/send
  7. pairs.
  8.  
  9. This change, makes no alteration to the basic use of the FTP, TELNET and
  10. finger commands.
  11.  
  12.  
  13.   \        This character must occure on it's own to mark the
  14.           end of command specific parameters and the start of
  15.           terminal options, or the end of terminal options and the
  16.           start of expect / send strings.
  17.       
  18.   !        Prefixing any of the following options causes the
  19.         reverse effect, "!E" disables local echo. In the case
  20.         of "!X" and "!Y", the incidental effect is to restore
  21.         default width or height.
  22.  
  23.   B        Opens the commands edit box at the top/bottom of the window
  24.  
  25.   BB        Opens the commands edit box at the bottom of the window
  26.  
  27.   BT        Opens the commands edit box at the top of the window
  28.  
  29.   W             Cursor wrap mode on
  30.  
  31.   R        Causes the window to be read only
  32.  
  33.   E        Enable local echo.
  34.   
  35.   N        Enable newline mode
  36.   
  37.   F        Causes window to follow the cursor
  38.   
  39.   I        Switches to Inverse video
  40.   
  41.   L        Enables line editing mode, rather than raw character
  42.         mode.
  43.   
  44.   C<n>        Enables split screen chat mode, n is the line number of
  45.         the split point.
  46.   
  47.   X<n>        Sets the terminal window total width in characters
  48.   
  49.   Y<n>      Sets the terminal window total height in lines
  50.   
  51.   XV<n>        Sets the terminal window visible width in characters
  52.   
  53.   YV<n>      Sets the terminal window visible height in lines
  54.   
  55.   ><name>    Starts spooling with escape code to named file
  56.   >><name>    Start spooling without escape codes to named file
  57.   
  58.   @<name>    Attach the named macro menu to the command box
  59.  
  60.  
  61. "*" may be used in place of <name> to cause spooling to a unique
  62. temporary file which is auto-loaded into a text editor when either the
  63. spool file is closed, or the session ends.
  64.  
  65. Each of these options must be separated by a space. There must be no
  66. space between an option and it associated parameter.
  67.  
  68. All of these switches, except "R" have menu or dialogue box equivelents.
  69.  
  70. expect and send strings (case sensitive) follow the switches where
  71. required.
  72.  
  73. The main purpose of these command extensions is to allow terminal
  74. settings to be preset via user-defined hierarchicial menu based macro
  75. commands that will be added in a later release. These menu will be
  76. available from the menu button in the command editing box.
  77.  
  78. Currently the only option on this menu is "Clear" which clears the
  79. contents of the command box.
  80.  
  81. For example, to connect to, and login to Demon's ftp server, with a 100
  82. line terminal screen, spooling to a temporary file that will be loaded
  83. into !edit when the session is closed:
  84.  
  85. ftp ftp.demon.co.uk \ Y100 >>* \ "name: " "anonymous\r\n" "word:" "adam@\r\n"
  86.  
  87.  Start of options --^          ^-- Start of expect and send strings.
  88.  
  89. The "\r\n" are needed as eol characters are NOT auto appended to send
  90. strings, allowing send strings to be effectively single key presses.
  91.  
  92. Currently expect strings may be upto 16 characters. If anyone feels this
  93. to be insufficient, I can easily extend it.
  94.  
  95.