home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / misc / 3599 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  7.3 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!bu.edu!transfer!ceylon!gte.com!cjm1
  2. From: cjm1@gte.com (Christopher J. Matheus)
  3. Newsgroups: comp.unix.misc
  4. Subject: Announcing expecTerm 1.0 beta (terminal emulation in expect)
  5. Keywords: tcl expect expecTerm
  6. Message-ID: <cjm1.716064502@gte.com>
  7. Date: 9 Sep 92 18:48:22 GMT
  8. Sender: news@ceylon.gte.com
  9. Lines: 176
  10.  
  11. expecTerm 1.0 beta: terminal emulation in expect (details below)
  12. ===============================================================================
  13.  
  14. The beta release of expecTerm 1.0 is available by anonymous ftp from
  15. ceylon.gte.com in pub/expecterm/expecTerm1.0beta.tar.Z:
  16.  
  17.      > ftp ceylon.gte.com
  18.      Connected to ceylon.
  19.      220 ceylon FTP server (Version 5.84 Tue Jul 21 15:25:31 EDT 1992) ready.
  20.      Name (ceylon:cjm1): anonymous
  21.      331 Guest login ok, send ident as password.
  22.      Password:
  23.      230 Guest login ok, access restrictions apply.
  24.      ftp> binary
  25.      200 Type set to I.
  26.      ftp> cd pub/expecterm
  27.      250 CWD command successful.
  28.      ftp> get expecTerm1.0beta.tar.Z
  29.      200 PORT command successful.
  30.      150 Opening data connection for expecTerm1.0beta.tar.Z (221247 bytes)
  31.      .
  32.      226 Transfer complete.
  33.      local: expecTerm1.0beta.tar.Z remote: expecTerm1.0beta.tar.Z
  34.      222415 bytes received in 1.9 seconds (1.1e+02 Kbytes/s)
  35.      ftp> bye
  36.      221 Goodbye.
  37.  
  38. expecTerm has also been put into the incoming directory on 
  39. barkley.berkeley.edu and should soon be available from that site.
  40.  
  41. If you do not have ftp access send mail to matheus@gte.com.
  42.  
  43. Contents of the README file:
  44. ==============================================================================
  45. ExpectTerm 1.0 beta                                   September 9 1992
  46. Mark D. Weissman
  47. Christopher J. Matheus
  48. GTE Laboratories Incorporated
  49.  
  50. Don Libe's expect provides automated control of interactive programs.
  51. expecTerm adds terminal emulation to expect.  expecTerm can emulate
  52. any terminal for which terminfo and/or termcap information is
  53. available.  The details are described in the manpage.  The manpage for
  54. expect is also included in this distribution.
  55.  
  56. This release requires the installation of tcl version 6.2 or greater.
  57. tcl6.4.tar is ftp-able from ceylon.gte.com.
  58.  
  59. This release does NOT require the prior installation of expect.  The
  60. necessary code from expect (version 3.22.6) is included as part of the
  61. expecTerm package.
  62.  
  63. expecTerm has been compiled and tested on:
  64.  
  65.     SparcStation 2 (OS 4.1.1)   (use Makefile)
  66.     RS6000 (AIX Version 3.2)    (use Makefile.aix)
  67.     MIPS (Ultrix V4.2)          (use Makefile.ultrix)
  68.  
  69. The Makefile has predefined setups for each of these platforms.  After
  70. customizing the Makefile for your system, type "make install". If you
  71. port expecTerm to another platform or define another terminal in
  72. ExpectCap please send the diffs to Mark Weissman (weissman@gte.com).
  73.  
  74. It's VERY IMPORTANT either to install ExpectCap in the LIBDIR
  75. directory specified in the Makefile or set the environment variable
  76. EXPECT_DIR to point to the directory containing ExpectCap.  
  77.  
  78. There is a special ExpectCap file named ExpectCap.hp2624 that may be
  79. used in the event you have an application requiring the local modes of
  80. the HP Block Terminal 2624.
  81.  
  82. Two sample expecTerm scripts are provided: felix.exp and web.exp.
  83. felix.exp is specific to a program here at GTE Laboratories and will
  84. not function elsewhere; it is, however, a simple example of a useful
  85. script.  web.exp accesses the webster dictionary at Rutgers to look up
  86. definitions of words.  
  87.  
  88. Limitations:
  89.     * only guaranteed to work with inter_select and pty_bsd versions
  90.           (but other pty_*'s  *should* work also)
  91.     * Compilation on a SUN requires use of the system 5 libraries 
  92.        for proper support of curses: /usr/5bin, /usr/5include, /usr/5lib.
  93.     * some terminal control sequences may not be available in
  94.           the standard terminfo/termcaps files, and must be added to
  95.           the ExpectCap file.  Additional sequences for xterm are
  96.           included in the default ExpectCap file.
  97.     * the ultrix version may not recognize the xterm termcap on
  98.           some systems. fix: issue a "set term = vt100" or its equivalent
  99.           before running expecTerm.
  100.  
  101. ** PLEASE DIRECT ALL COMMENTS AND BUG REPORTS TO: **
  102.    weissman@gte.com
  103.    Mark Weissman
  104.    GTE Laboratories
  105.    40 Sylvan Rd.
  106.    Waltham, MA 02254
  107.  
  108. ===============================================================================
  109. Excerpt from expecTerm.man:
  110. ===============================================================================
  111.  
  112. EXPECTERM(1)             USER COMMANDS               EXPECTERM(1)
  113.  
  114.  
  115.  
  116. NAME
  117.      expecTerm -- expect with terminal emulation
  118.  
  119. SYNOPSIS
  120.      expecTerm [ expect_options ]
  121.  
  122. INTRODUCTION
  123.      expecTerm adds terminal emulation to Don Libes' expect  pro-
  124.      gram.   The standard expect commands are all supported, mak-
  125.      ing expecTerm compatible with existing expect scripts.
  126.  
  127.      expecTerm introduces five new commands:
  128.  
  129.           emulate adds terminal emulation to an existing  spawned
  130.           process
  131.  
  132.           screen_info returns  information  about  an  emulator's
  133.           screen and cursor
  134.  
  135.           set_master controls which emulator the user is viewing
  136.  
  137.           status_line displays a message  on  expecTerm's  status
  138.           line
  139.  
  140.           term_info acceses terminfo capabilities and  may  issue
  141.           them to the terminal
  142.  
  143.           term_switch provides access to terminal  switches  such
  144.           as echo and logging.
  145.  
  146.      expecTerm adds several new options to the expect command  to
  147.      support  screen-based pattern matching.  
  148.  
  149.      The timeout command  has  also  been  changed  to  accept  a
  150.      decimal argument for time, e.g. set timeout 0.5. 
  151.  
  152.      The following simple  script illustrates the use of  terminal  
  153.      emulation in expecTerm:
  154.  
  155.           spawn csh
  156.           emulate -term vt100
  157.           send who\n
  158.           expect -cols 0:3 jcr2 {puts stdout "jcr2 is logged in"}
  159.  
  160. ===============================================================================
  161.  
  162. Copyright 1992 by GTE Laboratories Incorporated.
  163.  
  164. Portions of this work are in the public domain.  Permission to use,
  165. copy, modify, and distribute this software and its documentation for
  166. any purpose and without fee is hereby granted, provided that the above
  167. copyright notice appear in all copies and that both the copyright
  168. notice and warranty disclaimer appear in supporting documentation, and
  169. that the names of GTE Laboratories or any of their entities not be
  170. used in advertising or publicity pertaining to distribution of the
  171. software without specific, written prior permission.
  172.  
  173. GTE disclaims all warranties with regard to this software, including
  174. all implied warranties of merchantability and fitness for a particular
  175. purpose, even if GTE Laboratories Incorporated knows about the
  176. purpose.  In no event shall GTE be liable for any special, indirect or
  177. consequential damages or any damages whatsoever resulting from loss of
  178. use, data or profits, whether in an action of contract, negligence or
  179. other tortuous action, arising out of or in connection with the use or
  180. performance of this software.
  181.  
  182. This code is based on and may include parts of Don Libes' expect code:
  183.   expect written by: Don Libes, NIST, 2/6/90
  184.   Design and implementation of expect was paid for by U.S. tax
  185.   dollars.  Therefore it is public domain.  However, the author and NIST
  186.   would appreciate credit if this program or parts of it are used.
  187.