home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / internet / tcpip204 / TCPIP_Doc / Notes / Chat < prev    next >
Text File  |  1994-12-31  |  3KB  |  71 lines

  1. Notes about chat sequences
  2. --------------------------
  3.  
  4. With chat strings, the following escape sequences are recognised in both
  5. expect and send strings:
  6.  
  7.   \\  as  \
  8.   \"  as  " (double quote)
  9.   \a  as  bell (7)
  10.   \b  as  backspace (8)
  11.   \t  as  tab (9)
  12.   \n  as  linefeed, (10)
  13.   \v  as  vertical tab (11)
  14.   \f  as  form feed (12)
  15.   \r  as  carriage return, (13)
  16.   \e  as  escape (27)
  17.  
  18. The strings must be in pairs, of which the first string is an expect
  19. string.
  20.  
  21. Expect strings are currently case sensitively matched against ALL
  22. received characters that are NOT part of a VT100 escape sequence
  23. (except the initial ESC characater), including control characters.
  24.  
  25. Expect strings may be specified as "" for a null string, though
  26. currently this equates to any character, rather than send the following
  27. send string immediately.
  28.  
  29. Send strings may be specified as "" null string. This may be used to ensure
  30. two separate, and possibly separated string matches are done before a
  31. send string is sent.
  32.  
  33. Expect/Send pairs need not be enclosed in quotes, unless the string
  34. includes a space character, or is a null string.
  35.  
  36. No additional characaters are appended to send strings, to if you want
  37. an EOL in the send string, you must specfiy it, eg "\r\n".
  38.  
  39. The chat handler works in parellel with user input, thus pressing keys
  40. on the keyboard, or keypad will have their usual effect. If local echo,
  41. or line edit mode is being used, entered characters are treated as part of
  42. the received character stream.
  43.  
  44. The maximum length of a expect string is currently 16 characters.
  45.  
  46. Not all of the above may suit everyone, but at least you know how it
  47. behaves, and thus what to expect from it.
  48.  
  49. I may, at some time, extend the string handling to allow optional
  50. case-insenstive matching, optional filtering of control characters from
  51. received stream, inclusion of \x00 type escape sequences, pause delays,
  52. timeouts and embed terminal switch commands in send strings, eg for
  53. switching a spool on/off.
  54.  
  55. ---
  56.  
  57. * A note about !TCPIP command parsing: Older versions of !TCPIP could
  58.   accept upto 10 separate tokens per command. I am not sure what maximum
  59.   command length was acceptable, though I think it was 80 or charcters
  60.   including end of line and string terminator.
  61.  
  62.   In order to cope with terminal switch tokens, net, terminal and chat
  63.   command separators, chat strings etc, the maximum number of tokens has
  64.   now been increased to 64, and the command line length in the command
  65.   box at the top of terminal windows is now 1020 characters (allowing for
  66.   "\r\n\0" to be appended.
  67.   
  68.   Maximum in-window, (ie at the prompt) command line length is from the
  69.   prompt to the end of the line, ie variable.
  70.  
  71.