home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: DFÜ und Kommunikation / SOS-DFUE.ISO / programm / internet / uwwin104 / uw.doc < prev    next >
Encoding:
Text File  |  1992-12-09  |  19.6 KB  |  480 lines

  1.                 UW/WIN Version 1.03
  2.  
  3.                 Russell Poffenberger
  4.  
  5.                   January 1992
  6.  
  7. INTRODUCTION
  8.  
  9. This document describes version 1.03 of UW/WIN. This application is designed
  10. to run on IBM-PC's and compatible computers under Windows 3.0. This program
  11. was inspired by UW/PC, written by Rhys Weatherley. This program is entirely
  12. independent from UW/PC, and bears no resemblance to UW/PC other than its
  13. basic functionality. UW in general is based on a program written for the
  14. Macintosh by John Bruner. It provides for up to seven separate sessions on
  15. a remote UNIX machine. A UW server package must be running on the UNIX
  16. system for any of the advanced features to work.
  17.  
  18. IMPORTANT NOTE
  19.  
  20. In order to be less "similar" to UW/PC, some of the UW commands have been
  21. changed. Particularly the "New" command (Alt-N, creates a new UW session
  22. and window) has been changed to "Create" (Alt-C), "Kill" (Alt-K, kills
  23. the current window) has been changed to "Remove" (Alt-R), and "Exit" (Alt-E,
  24. exits the UW protocol) has been changed to "Protocol 0" (Alt-0). Also, "Upload"
  25. and "Download" (not implemented yet) have been changed to the "Page Up" and
  26. "Page Down" keys respectively.
  27.  
  28. Version 1.03 is the second version released to the public so far, and comments
  29. are welcome. This version implements the Unix Windows protocols 0 and 1.
  30. The UW server also has a "protocol 2" available, but is not yet implemented.
  31. Protocol 2 provides more window management. Look for support in a future
  32. release.
  33.  
  34. Note that the documentation for the server states that it will probably not
  35. compile on anything but BSD based UNIX systems. It will not work on System V.
  36. Also, UW/WIN will not operate in REAL mode. This is because Borland C++ is
  37. used, and BC++ does not support making REAL mode applications. At such time
  38. that Borland supports this, or Microsoft supports this in a C++ compiler,
  39. I will likely provide REAL mode support.
  40.  
  41. UW/WIN is distributed in the hopes that it will be found useful. If you like
  42. the program, a contribution to the author of $20 (or whatever you feel it
  43. is worth) would be appreciated and will help to keep enhancements and future
  44. products available. With any contribution, you will receive notification
  45. of new versions. With any contribution of $10 or more, you will receive
  46. a bound manual. Feel free to distribute this program as you wish, so long
  47. as its contents, and this notice are not changed. Note, however, that the
  48. server is copyrighted by John Bruner, and is not covered under these terms,
  49. and has its own terms and conditions contained within its documentation. For
  50. that reason, the server is not bundled with this package, but must be obtained
  51. separately.
  52.  
  53. The source code for the server, packaged together with the Macintosh binaries
  54. can be downloaded from some ftp sites.  The standard distribution is
  55. available in the directory "mirrors/unix-c/macintosh" on
  56. "wuarchive.wustl.edu" [128.252.135.4].  The file is named "uw42.tar-z".
  57. On "cica.cica.indiana.edu" [129.79.20.22] as uwserver.zip (no MAC binaries).
  58. The DOS based PC version can be obtained from "wuarchive.wustl.edu" in the
  59. mirrors/msdos/modem directory.
  60.  
  61. Comments about UW/WIN can be sent to the author at one of the following
  62. addresses:
  63.  
  64.     Internet: poffen@sj.ate.slb.com
  65.  
  66.         UUCP :    {uunet,decwrl,amdahl}!sjsca4!poffen 
  67.  
  68.         CIS :     72401,276
  69.  
  70.     US mail : Russ Poffenberger
  71.                   2827 Old Estates Ct.
  72.                   San Jose, Ca. 95135
  73.  
  74.  
  75. Comments about UW/PC (the DOS version), can be sent to:
  76.  
  77. Rhys Weatherley -- rhys@cs.uq.oz.au
  78.  
  79. Comments about the UW server for UNIX hosts should be sent to John Bruner:
  80.  
  81.     ARPANET/MILNET:     jdb@mordor.s1.gov
  82.  
  83.     UUCP:         {lll-crg,decwrl,caip}!mordor!jdb
  84.  
  85.     U.S. Mail:     John Bruner
  86.              Lawrence Livermore National Laboratory
  87.              P.O. Box 5503, L-276
  88.              Livermore, CA  94550
  89.  
  90. FILES
  91.  
  92. The following files should be present in the UW/WIN archive:
  93.  
  94.     UWWIN.EXE    The actual UW/WIN Windows 3.0 executable.
  95.     UWWIN.DOC    This documentation file.
  96.     DEFAULT.UW    An example configuration file.
  97.     README.UWW    History of UW/WIN versions.
  98.     UWWIN.HLP       A Windows 3.0 compatible help file.
  99.  
  100. USING UW/WIN
  101.  
  102. When UW/WIN starts, it creates a client area, then brings up the "File | Open"
  103. dialog box, allowing you to select a configuration file. You may select
  104. one of the available files, or press "Cancel". Pressing "Cancel" will NOT
  105. initialize the serial port or parameters. Use the various menus and dialog
  106. boxes (described below) to setup the desired parameters. You may navigate
  107. the drives and directories to find configuration files. By default, the
  108. directory where the UW/WIN executable was executed from is the starting
  109. directory.
  110.  
  111. You may specify the name of a configuration file on the command line. In this
  112. case the opening dialog is skipped, and the configuration file is read in
  113. directly. This allows you to setup filemanager associations, or create an
  114. icon in a program manager group to represent a specific connection.
  115.  
  116. Once you have selected a valid configuration file, or picked a com port for
  117. use from the "Setup | Comm" menu, UW/WIN enters "Protocol 0", which is
  118. equivalent to the dumb terminal emulations available in conventional
  119. communications programs.  The default emulation is ADM31, but VT52 emulation
  120. is also available.  A number of special keystrokes are defined in protocol 0:
  121.  
  122.     ALT-B - Sends a line break over the serial link. CTRL-BREAK and
  123.         CTRL-END will also send a line break.
  124.     ALT-D - Send the string defined by the "dial" configuration
  125.         variable to the modem. See "CONFIGURING UW/WIN" below.
  126.     ALT-H - Hangup the modem, by first dropping the DTR signal,
  127.         and then sending the hangup string if the carrier
  128.         signal is still present.
  129.     ALT-I - Send the modem initialization string.
  130.     ALT-U - Send the string defined by the "uw" initialization setup.
  131.         This is useful once connected to start the UW server on
  132.         the UNIX host. See "CONFIGURING UW/WIN" below.
  133.     ALT-X - Exit the UW protocol. If any windows are present, they
  134.         will be terminated. You will be prompted for verification
  135.         first. This function does NOT hangup the modem before
  136.         exiting, so UW/WIN can be restarted.
  137.     ALT-Q - Quit the program: All windows will be destroyed, and UW/WIN
  138.         will be exited. You will be prompted before quitting.
  139.  
  140. These functions may also be invoked under the "UW" menu.
  141.  
  142. The purpose of protocol 0 is to allow you to connect to the UNIX host in
  143. in the normal fashion.  When you are ready to use the multiple-window mode
  144. of UW/WIN, execute the UW server on the remote host by typing its command
  145. name, or by pressing ALT-U if the "uw" command string has been
  146. set correctly (see below).  Note that the server must be compiled and
  147. accessible for you to do this.
  148.  
  149. When the server starts, it uses special characters to begin the protocol
  150. with UW/WIN. The current window now becomes UW window 1. At this point, up
  151. to six more login windows may be started, either by using the ALT-N key,
  152. or using the "UW" menu. At this point, ALT-U, or the corresponding menu
  153. have no effect, and the following commands (or menu equivalents) are
  154. available :
  155.  
  156.     ALT-E - Exit the UW session and return to protocol 0. All windows
  157.         (except window 1) will be closed.
  158.     ALT-R - Remove just the current window.
  159.     ALT-C - Create a new window. Up to 7 windows total may be created,
  160.         if all 7 windows are already up, then this has no effect.
  161.     ALT-n - "n" is a digit between 1 and 7. Make window 'n' the active
  162.         window. It will be brought to the top, and given keyboard
  163.         focus.
  164.  
  165. Usually, if you exit a UNIX shell in a window, that window will be killed
  166. automatically, if you exit window 1, then ALL other windows will be killed,
  167. and UW/WIN will return to protocol 0.
  168.  
  169. Each window contains a status bar at the top. This bar contains information
  170. about the window, such as the window number, the screen size (columns X rows),
  171. and which protocol is in force. The screen size is useful to set the UNIX
  172. terminal characteristics correctly (usually using stty, refer to your UNIX
  173. system documentation for specific information.) after changing the window
  174. size. When a window is iconified, the window name is shortened to indicate
  175. just the window number, so as not to clutter up your windows desktop.
  176.  
  177. The UW server usually defaults to using ADM31 emulation whenever it creates
  178. a new window.  You may need to manually modify the UNIX terminal type in the
  179. windows to get the correct screen behavior if you have set your default
  180. emulation type to something other than ADM31 in the configuration file.
  181. If you are using the Bourne shell compatible shell, you can add the following
  182. lines to your ".cshrc" file to automatically change the terminal type to SS,
  183. where SS is your preferred terminal type.
  184.  
  185.         case $TERM in
  186.           adm31) eval `tset -s SS`;;
  187.           *) ;;
  188.         esac
  189.  
  190. When the UW server starts, it will set the TERMCAP environment variable within
  191. a UW window, but in protocol 0 the TERMCAP environment is not set
  192. automatically.
  193.  
  194. The following TERMCAP string may be used if your system lacks a working adm31
  195. entry. You may create an entry in your termcap file, or set your environment
  196. to this string. The formatting is for looks only, delete all leading and
  197. trailing spaces and returns to make it a single string if setting it in the
  198. TERMCAP variable. Put continuation characters '\' at the end of each line
  199. (except the last) if putting it in your termcap file.
  200.  
  201.     adm31:cr=^M:do=^J:nl=^J:al=\EE:am:le=^H:bs:ce=\ET:
  202.     cm=\E=%+ %+ :cl=^Z:cd=\EY:co#80:dc=\EW:dl=\ER:
  203.     ei=\Er:ho=^^:im=\Eq:li#24:mi:nd=^L:up=^K:MT:km:so=\EG1:se=\EG0:
  204.  
  205. UW/WIN allows for two different emulations to be used automatically. You may
  206. set the protocol 0 emulation (through the Emulation... dialog) to be something
  207. simple, typically vt52, since most UNIX systems have this entry. When entering
  208. protocol 1, the protocol 1 emulation will automatically be used.
  209.  
  210. CONFIGURING UW/WIN
  211.  
  212. When UW/WIN starts up, it first pops up a dialog box allowing you to select
  213. an existing configuration (profile) file. This file conforms to standard
  214. Windows 3.0 ".ini" conventions. If you press "Cancel", then no setups will
  215. occur, and you must use the various setup menus and dialog boxes to configure
  216. the various parameters. Once you have the desired settings, you may save this
  217. to a named profile file. An example configuration file is distributed with
  218. UW/WIN.  Each line of the file is of the form "name=arg" where "name" is the
  219. name of the configurable parameter, and "arg" is its argument.  Comments may
  220. be introduced starting with "#", but may not appear within commands.  The
  221. configurable parameters, which are all optional, and their defaults follow:
  222.  
  223.     comport
  224.  
  225.         The serial port to be used for communications.  This can
  226.         be either 1, 2, 3, or 4.
  227.  
  228.     baudrate
  229.  
  230.         The baud rate to use for transmission.  This can be
  231.         one of 300, 600, 1200, 2400, 4800, 9600 or 19200.
  232.  
  233.     parity
  234.  
  235.         The parity to use for transmission.  This can be one
  236.         of none, even or odd.
  237.  
  238.     datasize
  239.  
  240.         The number of data bits (7 or 8) to use for transmission.
  241.  
  242.     stopbits
  243.  
  244.         The number of stop bits (1 or 2) to use for transmission.
  245.  
  246.     modeminit
  247.  
  248.         The modem initialization string, The string cannot be
  249.         longer than 128 characters in length.
  250.  
  251.     p0emulation
  252.  
  253.         The default terminal emulation type to use for protocol 0.
  254.         This is to rectify some problems with UNIX termcap entries that
  255.         are missing the entry for ADM31 terminals, as discussed 
  256.         above under "USING UW/WIN".  It can be either adm31 or vt52.
  257.  
  258.     p1emulation
  259.  
  260.         Set the terminal emulation type for protocol 1.  This is is
  261.         the emulation used under protocol 1. This can be either adm31
  262.         or vt52.
  263.  
  264.     flowcontrol
  265.         Specifies which type of flowcontrol to use. It can be either
  266.         hardware or software.
  267.  
  268.     dialprefix
  269.  
  270.         This string is sent to the modem when dialing.
  271.  
  272.     phonenumber
  273.  
  274.         This string contains the phone number to send to the modem
  275.         when dialing. It is appended to the dialprefix string.
  276.  
  277.     f1_key - f10_key
  278.  
  279.         These ten configuration variables allow you to define
  280.         the function keys to any strings you desire.  If you do
  281.         not define a function key, it will have its default setting
  282.         as defined by the terminal emulation in use.  The characters
  283.         "^" is used to indicate that the next character is a control
  284.         character, ie "^m" is carriage return. The string should be
  285.         128 characters or less.
  286.  
  287.     uwcommand
  288.  
  289.         This specifies the string to send in response to ALT-u, or
  290.         when selecting "Start UW" from the "UW" menu. The "^"
  291.         character is treated as described above.
  292.  
  293.     fontresources
  294.  
  295.         This specifies the name of a file (or files) to load for extra
  296.         fonts. Usually these are ".fon" files. You can specify more than
  297.         one by separating the file names with a space. This cannot
  298.         be changed at runtime.
  299.  
  300.        historylines
  301.  
  302.                This specifies the number of lines for the scrollback history
  303.                buffer. This cannot be changed at runtime.
  304.  
  305.        bskey_map
  306.  
  307.                If non-zero (true), then the backspace key will output the "del"
  308.                code (0x7f).
  309.  
  310.        redialdelay
  311.  
  312.                This value specifies the delay (in seconds) before attempting
  313.                a redial if the previous dial was unsuccessful in connecting.
  314.  
  315. Most of these options may be changed at runtime using the various menus and
  316. dialog boxes. Any changes made affect only the current session. You may
  317. save these settings to a profile file by choosing the "File | Save" or
  318. "File | Save As" menu item. The menu operations are described below.
  319.  
  320.     File
  321.  
  322.         This menu item contains a submenu consisting of the following
  323.         items.
  324.  
  325.          Open    Provide a dialog box to allow selection of s profile
  326.             file to load.
  327.         Save    Save the current settings to the profile file last
  328.             loaded. If no file has been loaded, the this will
  329.             invoke the "Save As" function explained below.
  330.         Save As    Pop up a dialog box allowing the user to select an
  331.             existing file, or enter a new one to save the current
  332.             settings to. The extension ".uw" is recommended.
  333.         Exit    Exit UW/WIN.
  334.  
  335.     Edit
  336.  
  337.         This is the interface to the clipboard.
  338.  
  339.         Copy    If there is selected text, then this menu is enabled.
  340.             Selecting it will copy the selected text to the
  341.             Windows clipboard.
  342.  
  343.         Paste    If there is compatible text in the clipboard, then
  344.             selecting this function will copy the text from the
  345.             clipboard to the window session, sending it to the
  346.             remote system.
  347.  
  348.         Copy then Paste
  349.             This will perform a copy and subsequent paste in a
  350.             single operation.
  351.  
  352.     Setup
  353.  
  354.         From this menu you can invoke either the "Comm",
  355.         "Initialization", or "Emulation" dialog boxes.
  356.  
  357.         Comm    Use this dialog box to set the various communication
  358.             parameters, such as baud rate, parity, etc.
  359.  
  360.         Initialization
  361.             This dialog box allows you to specify strings to
  362.             use for the dialing prefix, modem initialization,
  363.             and the UW command.
  364.  
  365.         Emulation
  366.             Use this dialog box to select which emulation to
  367.             use for each protocol.
  368.  
  369.     Help
  370.  
  371.         This version of UW/WIN contains a Windows 3.0 compatible help
  372.         file. The items under this menu can be used to index into
  373.         help file using the Windows 3.0 help facility. An "About"
  374.         box provides version and identification information.
  375.  
  376.     Dial
  377.  
  378.         The "Dial" menu provides two entries, "Number" and "Hangup".
  379.  
  380.         Number    This brings up a dialog box allowing you to edit the
  381.             number to dial, and to invoke dialing. Pressing
  382.             "Cancel" before connection has occurred, will
  383.             terminate the call in progress.
  384.  
  385.         Hangup    Selecting this will cause a hangup using the Hayes
  386.             standard escape sequence "+++" to gain control of the
  387.             modem, then issuing "ath0" to hangup the modem. This
  388.             will not gracefully exit the UW protocol, and should
  389.             only be used in an emergency.
  390.  
  391.     Keys | Function
  392.  
  393.         This menu, when selected, will bring up a dialog box allowing
  394.         you to program your own strings to function keys. The dialog
  395.         provides ten radio buttons to select which function key to
  396.         program. The edit box show the current string, and allows you
  397.         to edit the string. Once the string is the way you want it,
  398.         press "Save" to save the string. If you don't save it, it will
  399.         be lost. At this point, you may select another function key
  400.         to program, or exit the dialog box. Strings should be 128
  401.         characters or less.
  402.  
  403.     Keys | Mapping
  404.  
  405.         This dialog allows you to select various default key mappings. Currently,
  406.         the only mapping supported is to map the Backspace key to the Delete
  407.         code (0x7f). Checking the box enables the mapping, unchecking the box
  408.         disables the mapping.
  409.  
  410.     UW
  411.  
  412.         Refer to the UW commands description above.
  413.  
  414.     Help
  415.  
  416.         From this menu, you may index into the help file using the
  417.         Windows help facility.
  418.  
  419.     Fonts
  420.  
  421.         Yoy may select which font you wish to use in the terminal
  422.         windows. The menu is created dynamically based on available
  423.         fixed pitch fonts available at the time UW/WIN was started.
  424.         Even fonts available via ATM may be used. Note that only
  425.         fixed pitch fonts will be shown, and be careful with very
  426.         small fonts. If the font is so small that the system menu
  427.         takes more than one line, then some problems will occur. This
  428.         will hopefully be fixed in a future release (it is a difficult
  429.         problem). There is also a menu entry "Bold". Selecting this
  430.         will toggle bold on/off. When a checkmark is next to it, then
  431.         the characters will be in bold.
  432.  
  433. On startup, UW/WIN uses the default SYSTEM font, and sets the window to
  434. 80 X 25 lines. You may resize the window by dragging a border, just like
  435. any other Windows application. Read the "Microsoft Windows 3.0 Users Guide"
  436. for more info.
  437.  
  438. The standard system colors "WINDOW" and "WINDOW_TEXT" are used for the client
  439. area background and text respectively. These can be changed using the "Color"
  440. utility in the Windows "Control Panel" program manager group.
  441.  
  442. LIMITATIONS
  443.  
  444. There are some limitations in UW/WIN and the UW server. If a lot of data
  445. is being received in one window, the UW server will be slow to process input
  446. from another. This is caused by the server, not UW/WIN. Another problem is
  447. one of modem communication reliability. Unless an error correcting modem
  448. protocol is used, characters could be dropped, lost or garbled. If one of
  449. the protocol bytes gets affected, strange behavior may result, such as output
  450. going to the wrong window, or input from one window going to the wrong
  451. session. If things become entirely out of sync, try exiting the UW protocol.
  452. If this doesn't work, try "ctrl-A" followed by the "Delete" key. The UW commands
  453. are a small part of the total data (statistically speaking) so these problems
  454. should be uncommon. Using an error correcting modem or protocol such as V.42,
  455. MNP 4, or Telebit PEP will avoid these problems. When using such modems, it is
  456. highly recommended that you make use of hardware flow control. Since high speed
  457. error correcting modems implement their own modem to modem flow control, it is
  458. much more efficient to let hardware handshaking govern the flow of characters.
  459. Some high speed protocols, particularly Telebit's PEP, don't switch the
  460. send/receive lines too well when a large amount of traffic is going in one
  461. direction. Attempting to use software flow control (where an XOFF character is
  462. sent to the remote system to turn off output) will generally result in lost
  463. characters. For low speed (2400 and below), the modems have no internal flow
  464. control mechanism, so you must use software flow control.
  465.  
  466. There is also a bug in Windows 3.0 related to the comm ports. If you type
  467. while any window is busy receiving and displaying data, the data you type
  468. may get "stuck" in the send queue. If this appears to happen, wait till the
  469. receive activity is through, and type another key, this will unstick the
  470. queue and send all queued characters.
  471.  
  472. FUTURE WORK
  473.  
  474. In the future, UW/WIN will be extended with the following capabilities: ANSI
  475. terminal emulation, X/Y/Zmodem file transfers in any window (and also
  476. protocol 0), and support for a subset of the UW protocol 2 features which
  477. gives more control over window management. Other minor features may include
  478. saving of selected font information to the configuration file, and other
  479. convenience items. Comments and suggestions are very welcome.
  480.