home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / OS2 / OS2YOU20.ZIP / OS2YOU.DOC < prev    next >
Encoding:
Text File  |  1991-05-05  |  48.4 KB  |  1,024 lines

  1. OS2YOU 2.0  (read OS/2 to you) 1991-04-09         (c) 1990 Mikael Wahlgren
  2. ==========================================================================
  3.  
  4.  
  5. Introduction
  6. ============
  7. Os2You is a communication software to allow remote operation of any
  8. OS/2 full screen text session and the DOS compatibility box, over
  9. an asynchronous line (by cable or modem), a pipe or a remote pipe (over
  10. a LAN).  The program can be used with many different terminals and
  11. allows high speed file transfers between host and remote.  The program
  12. may be used in two different ways.  You can run the program as it is stand
  13. alone, but it is also possible to call the program from your own program,
  14. allowing your own programs to offer remote operation.
  15.  
  16. The program can directly replace the program MaxPipe (from Peter Fitzsimmons),
  17. and will be compatible with more programs than MaxPipe.
  18.  
  19. The program is only tested with OS/2 1.3 SE, but should work OK with
  20. OS/2 1.2 and OS/2 2.0.
  21.  
  22. If you have got the distribution files packed in a ZIP-file, you should
  23. unpack them first.  Files included in this package:
  24.  
  25. OS2YOU.EXE           The remote software
  26. OS2YOU.DOC           This documentation
  27. SPECS.DOC            Specification for the pipe protocol
  28. ORDER.DOC            Printable Order/Invoice form
  29. LANTERM.EXE          Terminal program using DOS on a LAN or modem.
  30. LANTERM2.EXE         Terminal program using OS/2 on a LAN or modem.
  31. LANBRIDG.EXE         LAN Bridge, to access OS/2 Requesters remote over LAN
  32. DOS2YOU.EXE          Program to access DOS compatibility box
  33. DOSREDIR.EXE         DOS-program required to use DOS compatibility box remote
  34. ????????.PRM         Terminal description files for different terminals
  35. SZ.CMD               Command file to initiate Zmodem file transfer from
  36.                      host to remote using M2Zmodem (not included).
  37. RZ.CMD               Command file to initiate Zmodem file transfer from
  38.                      remote to host using M2Zmodem (not included).
  39.  
  40. If you don't think this is the most current version of Os2You, you could
  41. send a formatted diskette and four International Post reply coupons
  42. (Coupon-Réponse International, Union Postale Universelle) to my address
  43. mentioned last in this documentation.
  44.  
  45.  
  46.  
  47.  
  48. Stand alone installation
  49. ========================
  50. You should copy all the distributed files to a subdirectory on your hard
  51. disk.  The directory should be specified in your PATH and DPATH environment
  52. variables.  Assuming you have copied the files to subdirectory called
  53. "C:\Remote" this is done by the command:
  54.  
  55. SET PATH=%PATH%C:\Remote;
  56. SET DPATH=%DPATH%C:\Remote;
  57.  
  58. To configure the program in stand alone mode, you run the program OS2YOU
  59. from an OS/2 Command Prompt, without any parameters.  You will get a
  60. configuration menu with different options.  When you have configured the
  61. modem, you can either enter host mode operation or exit the program.
  62.  
  63. Note that you should always use a Full Screen text session for the programs.
  64. The asynchrous support device driver COM0x.SYS driver should also be loaded
  65. in your CONFIG.SYS file.
  66.  
  67. To start the program with an existing configuration file, you start the
  68. program by typing "Os2You -c <cfg-file>" at the OS/2 Command Prompt
  69. (you replace <cfg-file> with the configuration filename you want to use).
  70. For more command line start options see separate section below or enter
  71. "Os2You -?" at the prompt.
  72.  
  73. The program will now put the modem into auto answer mode (if your modem is
  74. supported by the program), and wait for an incomming call, and answer
  75. it.  When the connection is established, the caller will be asked for
  76. an ID and password and validate them with your configuration file.
  77.  
  78. If you have specified a callback number for the caller, the connection
  79. will be closed, and the Os2You program will call the phone number in
  80. the userlist entry (note that you should only include the phone number
  81. in the user list entry and not the Hayes command prefix "ATD", but if
  82. you want, it is possible to include any dialling command in the entry).
  83. The caller will be asked for the password once again, and will then
  84. be spawned to an OS/2 full screen text session.
  85.  
  86. If you have OS/2 1.2 or later, it is recommended to put the line
  87. "AUTOFAIL=YES" in your CONFIG.SYS file.  This will cause the operating
  88. system NOT to generate pop-up error messages, which would cause the Os2You-
  89. program to hang (or actually be suspended while waiting for a keystroke
  90. from the "real" keyboard).
  91.  
  92. With the default priority (priority set to 14), the screen update thread
  93. has exactly the same priority as the executed program.  This results
  94. in a regular screen updates in most situations.  Sometimes however a
  95. higher value may result in smother operation.  If you find that the
  96. screen update performance is not at all what you expected, you may
  97. try to change this value.  Note that sometimes, a higher priority
  98. means that the thread will steal too much CPU, resulting in much worse
  99. performance.
  100.  
  101.  
  102.  
  103.  
  104.  
  105. Using Os2You with pipes or remote pipes with a LAN
  106. ==================================================
  107. It is possible to use Os2You in a LAN, in two different ways.  You can
  108. install Os2You on a OS/2 network SERVER, and access it remote from any
  109. workstation in the LAN.  You can also install Os2You on a network
  110. REQUESTER, and access the requester from any workstation in the LAN,
  111. but this will require that the LanBridge program is installed on an
  112. network server.
  113.  
  114. If you want to use Os2You in a LAN on a SERVER, you should configure Os2You
  115. for stand alone operation (se above), but replace the communication device
  116. with a remote pipe name like "\Pipe\Os2You1".
  117.  
  118. If you want to use Os2You in a LAN on a REQUESTER, you should configure
  119. Os2You for stand alone operation (se above), but replace the communication
  120. device with a remote pipe name like "\\Servername\Pipe\Os2You1".  You will
  121. also have to install LanBridge (LANBRIDG.EXE) on the LAN SERVER specified
  122. in the pipe name.  You install LanBridge like:
  123.  
  124.    LanBridg \Pipe\Os2You1 \Pipe\LanTerm1
  125.  
  126. Regardless of how you have installed Os2You, you have to use the LanTerm
  127. or LanTerm/2 programs to access Os2You over a LAN.  The program LanTerm
  128. is used on workstations running DOS and LanTerm/2 is used on workstations
  129. running DOS.  The programs are started with just one parameter specifying
  130. which pipe to use for communication.  Suppose you configured the system
  131. with the pipe name mentioned above.  In this case you start LanTerm or
  132. LanTerm/2 by typing:
  133.  
  134.       LanTerm \\Servername\Pipe\Os2You1
  135.       LanTerm2 \\Servername\Pipe\Os2You1
  136.  
  137. at the command line prompt.  The LanTerm and LanTerm/2 programs are
  138. automaticly terminated when you exit the remote session.  If you terminate
  139. LanTerm or LanTerm2 abnormally (like pressing Ctrl-Break), the host session
  140. will be closed at once, and Os2You will wait for the next "caller" and
  141. LanTerm or LanTerm/2 will be terminated.
  142.  
  143. If no parameter is specified when starting the LanTerm or LanTerm/2 program,
  144. it will look for an Os2You.CFG file and try to configure itself using the
  145. information specified in the file (using the Install.EXE program).  LanTerm/2
  146. (but not LanTerm) may be used for asynchronous communication devices as well
  147. as pipes.
  148.  
  149. With LanTerm and LanTerm/2 most keys that is possible to emulate with Os2You,
  150. are mapped to their correct keys, except <Esc> that you have to press twice,
  151. for compatibility reasons.  All Esc-sequences used over the asynchronous line
  152. will work with LanTerm and LanTerm/2 too.
  153.  
  154. It is possible to start multiple sessions with Os2You using the same Pipe-
  155. name.  Each running copy of Os2You will be ready to receive a connect
  156. request from a remote user, and the user will be connected to the first
  157. free instance of Os2You.  It isn't even necessary that the Os2You program
  158. is started from the same machine in a LAN.  You may start Os2You with
  159. the same pipe name from any LAN station, and a connect request will be
  160. directed to the first free instance.
  161.  
  162. Note, that early versions of OS/2 LAN Server did not work properly with
  163. remote named pipes, especially not from DOS Requestors.  This software
  164. is tested with OS/2 Lan Server 1.2 CSD 4093, and worked on this configuration
  165. both from OS/2 requestors and DOS requesters.  But when tested with CSD 4063
  166. the program did not work with DOS Requesters, but was OK with OS/2 Requesters.
  167.  
  168. This is a chart of how Os2You and LanTerm is configured to work together:
  169.  
  170.  
  171.    ╔═════════════════════════╗             ╔═════════════════════════════════╗
  172.    ║ OS/2 Async. host        ║             ║ DOS Remote (terminal)           ║
  173.    ╟─────────────────────────╫───modems────╫─────────────────────────────────╢
  174.    ║ Os2You <- <comport> ... ║      │      ║ LanTerm <comport> <baudrate>    ║
  175.    ╚═════════════════════════╝      │      ╚═════════════════════════════════╝
  176.                                     │      ╔═════════════════════════════════╗
  177.                                     │      ║ OS/2 Remote (terminal)          ║
  178.                                     └──────╫─────────────────────────────────╢
  179.                                            ║ LanTerm2 <comport> <baudrate>   ║
  180.                                            ╚═════════════════════════════════╝
  181.  
  182.  
  183.    ╔═════════════════════════╗             ╔═════════════════════════════════╗
  184.    ║ LAN Server (host)       ║             ║ DOS Requester (terminal)        ║
  185.    ╟─────────────────────────╫─────LAN─────╫─────────────────────────────────╢
  186.    ║ Os2You <- \Pipe\Os2You1 ║      │      ║ LanTerm \\Srvname\Pipe\Os2You1  ║
  187.    ╚═════════════════════════╝      │      ╚═════════════════════════════════╝
  188.                                     │      ╔═════════════════════════════════╗
  189.                                     │      ║ OS/2 Requester (terminal)       ║
  190.                                     └──────╫─────────────────────────────────╢
  191.                                            ║ LanTerm2 \\Srvname\Pipe\Os2You1 ║
  192.                                            ╚═════════════════════════════════╝
  193.    ╔══════════════════════════════════╗
  194.    ║ OS/2 Requester (host)            ║
  195.    ╟──────────────────────────────────╢
  196.    ║ Os2You <- \\Srvname\Pipe\Os2You1 ║
  197.    ╚══════════════╤═══════════════════╝
  198.                   │
  199.                   │
  200.    ╔══════════════╧═══════════════╗        ╔═════════════════════════════════╗
  201.    ║ LAN Server (bridge)          ║        ║ DOS Requester (terminal)        ║
  202.    ╟──────────────────────────────╫───LAN──╫─────────────────────────────────╢
  203.    ║ LanBridg                     ║    │   ║ LanTerm \\Srvname\Pipe\Lanterm1 ║
  204.    ║ \Pipe\Os2You1 \Pipe\LanTerm1 ║    │   ╚═════════════════════════════════╝
  205.    ╚══════════════════════════════╝    │   ╔═════════════════════════════════╗
  206.                                        │   ║ OS/2 Requester (terminal)       ║
  207.                                        └───╫─────────────────────────────────╢
  208.                                            ║ LanTerm2 \\Srvname\Pipe\LanTerm1║
  209.                                            ╚═════════════════════════════════╝
  210.  
  211.  
  212. Terminal emulation
  213. ==================
  214. The included files should be run in an OS/2 full screen text session,
  215. and will allow you to connect to it by modem or cable.  In addition
  216. to this program, you will need a terminal emulation program, that
  217. is capable of emulating one of the included terminal emulation modes
  218. available with Os2You.  It doesn't matter which operating system your
  219. terminal emulator is running.
  220.  
  221. If you use OS/2 or DOS you may use the LanTerm2 (for OS/2) or LanTerm
  222. (for DOS) programs for both terminal emulation over a network using
  223. named pipes, or as an asynchronous terminal program.  It will
  224. remap the keys to their corresponding Esc-sequences, and is also
  225. compatible with the Os2You binary mode (when running over a Pipe), which
  226. sometimes are faster than the terminal emulation mode, when used on fast
  227. connections.
  228.  
  229. If you want to run LanTerm2 or LanTerm on a asynchronous connection, you
  230. should start LanTerm2 with the following syntax:
  231.  
  232.    LanTerm2 <COM-device> [baudrate]
  233.    LanTerm  <COM-device> [baudrate]
  234.  
  235. The device name MUST begin with "COM" (like COM1).  If no baudrate is
  236. specified the program uses the default baudrate.  When used in this
  237. mode, the programs always sets the COM-device to 8 databits, 1 stop-
  238. bits and no parity.  The LanTerm program for DOS, requires that ANSI.SYS
  239. is loaded in your CONFIG.SYS file.  The DOS-mode program will only work
  240. with COM1 and COM2 serial ports.  The programs are terminated by pressing
  241. Ctrl-Break.
  242.  
  243. The following terminals are supported by Os2You currently
  244. (ANSI is default if none selected):
  245.  
  246. Terminal                         Description file
  247. ===============================  =================================
  248. ANSI/VT100/VT102                 ANSI.PRM (same as default)
  249. Hazeltine 1500                   HAZEL.PRM (not tested)
  250. IBM 3101                         IBM3101.PRM
  251. Tandberg TDV 2116                TANDBERG.PRM
  252. Televideo 910-955/ADM 5/Wyse 50  TELEVID.PRM
  253. VT52/Heath/Zenith/ADDS VP        VT52.PRM
  254.  
  255. If you want to select another terminal emulation than the default
  256. ANSI terminal, you should add "-t <term-file>" as a command line
  257. start option.  Note that the description files only alter the
  258. screen output, and does not care about different keystroke combinations
  259. used by different terminals, except the ANSI escape keysequences.  Also
  260. note that some terminals will work better if you run Os2You in a screen
  261. with only 24 lines (MODE CO80,24) instead of the more common 25 lines.
  262.  
  263. If your terminal is not supported with a terminal description file,
  264. you may define your own terminal, by starting OS2YOU without any
  265. parameters, and select "Terminal definitions" in the configuration
  266. menu displayed.  See section 'Defining your own terminal' below.
  267.  
  268. The program automaticly detects how many columns and lines the
  269. OS/2 session contains, but you have to configure your terminal program
  270. for a screen size with at least the same amount of columns/lines (it doesn't
  271. matter if the terminal program uses more columns/lines than the OS/2 session).
  272. It is possible to alter the screen size with the MODE-command, while
  273. connected to Os2You, as long as the screen will fit on the remote screen.
  274.  
  275. To "emulate" different keystrokes, Esc sequences are used.  The following
  276. Esc sequences are valid (note that upper/lower case letters are
  277. significant):
  278.  
  279. Ch. Result   Ch. Result    Ch. Result    Ch. Result    Ch. Result (?????)
  280. === ======   === ======    === ======    === ======    === ==================
  281.  A  Alt-A     N  Alt-N     Esc Escape     1  F1         !  Shift/Ctrl/Alt-F1
  282.  B  Alt-B     O  Alt-O      t  BackTab    2  F2         @  Shift/Ctrl/Alt-F2
  283.  C  Alt-C     P  Alt-P                    3  F3         #  Shift/Ctrl/Alt-F3
  284.  D  Alt-D     Q  Alt-Q      w  Arr up     4  F4         $  Shift/Ctrl/Alt-F4
  285.  E  Alt-E     R  Alt-R      <  Arr left   5  F5         %  Shift/Ctrl/Alt-F5
  286.  F  Alt-F     S  Alt-S      >  Arr right  6  F6         ^  Shift/Ctrl/Alt-F6
  287.  G  Alt-G     T  Alt-T      z  Arr down   7  F7         &  Shift/Ctrl/Alt-F7
  288.  H  Alt-H     U  Alt-U                    8  F8         *  Shift/Ctrl/Alt-F8
  289.  I  Alt-I     V  Alt-V      c  Ctrl-Break 9  F9         (  Shift/Ctrl/Alt-F9
  290.  J  Alt-J     W  Alt-W                    0  F10        )  Shift/Ctrl/Alt-F10
  291.  K  Alt-K     X  Alt-X                    -  F11        _  Shift/Ctrl/Alt-F11
  292.  L  Alt-L     Y  Alt-Y                    =  F12        +  Shift/Ctrl/Alt-F12
  293.  M  Alt-M     Z  Alt-Z
  294.                                                         s  Set F-key to Shift
  295.  i  Insert    h  Home       u  PageUp                   l  Set F-key to Ctrl
  296.  d  Delete    e  End        n  PageDown                 a  Set F-key to Alt
  297. =============================================================================
  298. Tab    Task list                          b  Toggle binary mode
  299. Break  Force Os2You to exit               p  Toggle physical screen
  300. Space  Force Os2You to update screen      ?  Status information
  301.  
  302. The above screen is showed if you press Esc without any character following
  303. within approx. one second.  You may select any keystroke from the menu, and
  304. the menu exits, ans Os2You sends the selected keystroke to your application.
  305. If Esc is pressed and directly followed by another character, the selected
  306. keystroke is sent directly to your application, without showing the help
  307. screen.
  308.  
  309. ANSI escape sequences for cursor movements are mapped to their corresponding
  310. arrow key.
  311.  
  312. All characters, except Esc, are translated directly to the corresponding
  313. keystroke.  ASCII 01H is translated to Ctrl-A, ASCII 02H to Ctrl-B and so
  314. on.
  315.  
  316. To emulate Shift, Ctrl and Alt function keys, you have to first select which
  317. mode you want by pressing Esc-s, Esc-l resp. Esc-a first followed by the
  318. appropriate function key Esc-code.  In the upper right corner of the help
  319. menu the current state of the function keys is written.
  320.  
  321. The above table means that you should press Esc FIRST and THEN a
  322. character.  "Esc-i" means that you should press "Esc" first and then
  323. followed by "i".  Note that you have to press "Esc" twice, if you want
  324. to emulate a "Esc" keystroke.
  325.  
  326.  
  327.  
  328.  
  329.  
  330. Task list
  331. =========
  332. By pressing Esc-tab (first <Esc> and then <Tab> 1bH, 09H) you will get
  333. a list of programs currently running.  It might look like this:
  334.  
  335. Os2You Task List
  336. ================
  337. A  Switch to
  338. B  OS/2 window
  339. C  OS/2 window
  340. D  Group - Applications
  341. E  Group - Bookshelf
  342. F  Group - Utilities
  343. G  Group - Toolkit Editors
  344. H  Group - Compilers
  345. I  Group - Communication
  346. J  M2ZMODEM.EXE
  347. K  Os2You.EXE
  348. L  TS.EXE
  349. M  Group - Main
  350. N  PM Diary
  351. O  Desktop Manager
  352. >  Next entries
  353.  
  354. Z  Return to original session
  355.  
  356.  
  357. The task list displayes all running programs.  If the list is too long
  358. for the screen, you may scroll up and down with the '<' and '>' keys.
  359. You enter the character displayed before the program you want to switch
  360. to.  If you want to return to the original session (the one you started
  361. from) you should select 'Z'.
  362.  
  363. You can only switch to programs running in an OS/2 full screen text
  364. session.  If you try to switch to another session, you will get an
  365. error message.  If you run another session than your original one,
  366. some limitations will exist.  The screen size is assumed to 80 columns
  367. and 25 rows, and is not adjusted to the real size of the running session
  368. The cursor position will not be updated while running another session than
  369. your original session.  On some VERY unusual conditions the program won't
  370. be able to figure out if the program is running in monochrome or color mode.
  371.  
  372. Note that the session you select is switched to the foreground at the
  373. host machine, and will interrupt any user running another session at
  374. the machine from the keyboard.  It will also interrupt any other user
  375. running the same host through Os2You running other session than their
  376. original session.  The session you selected should NOT be switched to
  377. the background, while you are connected to it, as you will lose all output
  378. from the connected session, while running in the background.
  379.  
  380. The task switcher requires OS/2 1.2 or compatible to work.
  381.  
  382.  
  383.  
  384.  
  385.  
  386. File transfer
  387. =============
  388. If you have M2Zmodem version 2.09 or later (another program from the
  389. same source), you may use it to up/download between the host and remote.
  390. This solution also allows auto Zmodem uploads.  I suggest that you copy
  391. the M2Zmodem.EXE and M2Zmodem.MSG-files into the same directory you used
  392. for Os2You.  Then you should include this directory in your PATH and DPATH.
  393.  
  394. It is now possible to receive files from host to remote (download) by just
  395. typing "Sz <files>" at the command prompt (any wildcards allowed).  If you
  396. run LanTerm/2 or LanTerm as terminal program at the remote (or any other
  397. terminal program with Zmodem autodownload), the file transfer will be
  398. automaticly started at the terminal side too, if not, you have to request
  399. download in your terminal program.
  400.  
  401. If you use LanTerm (for DOS), you should get DSZ file transfer program
  402. (shareware from Omen Technology).  If you use LanTerm/2 (for OS/2), you
  403. should get M2Zmodem file transfer program (shareware from the same place
  404. you got Os2You).  Both programs should be installed in the same directory
  405. as LanTerm(/2), or in a directory specified in your path.
  406.  
  407. To send files from remote to host (upload) just type "Rz" at the command
  408. prompt.  When you request upload in your terminal program, you should enter
  409. which files to send.  If you have called your receive batch file "Rz.Cmd"
  410. you don't even have to start the batch file before starting your send
  411. procedure, because the Rz command is executed automaticly by the Zmodem
  412. initializing procedure, if you are at the command line when you start the
  413. send procedure (auto Zmodem download).
  414.  
  415. The described configuration uses the fast and reliable Zmodem protocol for
  416. file transfers.  If you want to use another, like Xmodem, Xmodem-1K, Ymodem
  417. or Ymodem-G, you could just alter the CMD-files to change your protocol.
  418. The parameters for M2Zmodem are described further in the M2Zmodem.DOC file,
  419. or written to screen, if you just enter M2ZModem at the command prompt.
  420.  
  421. If you don't know how to get M2Zmodem, you could send a formatted diskette
  422. and four International Post reply coupons (Coupon-Réponse International,
  423. Union Postale Universelle) to my address mentioned last in this documentation.
  424.  
  425.  
  426.  
  427.  
  428. DOS-compatibility box
  429. =====================
  430. When you run the OS/2 session remote, you may enter the command
  431. "Dos2You" at the command line, and you will get access to the DOS-box
  432. (if available).  Note that any user running at the physical screen
  433. will be interruptet when the DOS-box is entered.  The cursor position
  434. won't be set correctly when running the DOS session.
  435.  
  436. Dos2You requires OS/2 version 1.2 or later, and the DOS.SYS driver must
  437. be loaded.
  438.  
  439. Note that your AUTOEXEC.BAT file should NOT contain any statements that
  440. would require any keyboard input, as the Dos2You program gets control of
  441. the DOS-box AFTER the AUTOEXEC.BAT file is executed, which means that any
  442. user input in the AUTOEXEC.BAT is taken from the "real" keyboard.
  443.  
  444. To enable Dos2You, you should copy the DOSREDIR.EXE file to a directory
  445. in your DOS-path, or load the DOSREDIR-program in your AUTOEXEC.BAT file.
  446. The DOSREDIR-program is a resident program that will communicate with the
  447. Os2You-program, allowing Os2You to control the DOS session.  The DOSREDIR
  448. program requires that a printer port is installed in the system, and will
  449. demand IOPL (put the line "IOPL=YES" in your CONFIG.SYS file).  The DOSREDIR
  450. program MAY conflict with the printer stream, but should not cause any other
  451. serious conflicts in your system.
  452.  
  453. The keyboard won't accept extended keycodes (like function keys).
  454.  
  455. When returning from the DOS-box you have to press Esc-P to reset Os2You to
  456. not use the physical screen area.  No extended keys like function keys will
  457. work in the DOS-box.
  458.  
  459.  
  460.  
  461.  
  462. Defining your own terminal
  463. ==========================
  464. If your terminal is not supported by a terminal definition file, you may
  465. create your own by starting OS2YOU without any parameters and select
  466. "Terminal definitions" in the configuration menu displayed.  The program
  467. will ask for a file name for the terminal  definition file.  Enter the
  468. the terminal definition file you want to create or alter.  The program
  469. will show a menu with different terminal setting. When not otherwise stated
  470. you should enter the hexadecimal values separated by spaces (max 20 values)
  471. corresponding to the ASCII-code for the characters to be sent.  Note that
  472. ALL values should be give in HEX-form (spaces will be replaced by under-
  473. score characters).
  474.  
  475. The program asks for the following:
  476.  
  477. 1. Initializing string.  String to initialize the terminal to selected
  478.    mode.  In most cases should this string be left blank.
  479.  
  480. 2. Cursor position; command.  String to begin a cursor position command.
  481.  
  482. 3. Cursor position; separator.  String to separate row and column
  483.    parameters in cursor position command.
  484.  
  485. 4. Cursor position; end.  String to end cursor position command.
  486.  
  487. 5. Cursor position; column first.  Select 'Yes' if the column should be sent
  488.    as the first parameter, otherwise enter 'No', and the row will be sent
  489.    first.
  490.  
  491. 6. Cursor position; column offset.  Value with which the column is added
  492.    with, before the cursor position command is sent.  The left most column
  493.    is treated as column 0.
  494.  
  495. 7. Cursor position; row offset.  Value with which the row is added
  496.    with, before the cursor position command is sent.  The top row is
  497.    treated as row 0.
  498.  
  499. 8. Cursor position; binary address.  Select 'Yes' if the row and column
  500.    parameters should be sent as binary values, using one byte each.
  501.  
  502. 9. Cursor position; maximum parameter length.  Enter the length the
  503.    row and column parameters may be assigned at most.  This value should
  504.    be set to 1 if binary address is selected.
  505.  
  506. 10.Cursor position; zero pad Col and Row parameters.  Select 'Yes' if
  507.    the row and column parameters should be padded with leading zeros
  508.    up to the length indicated by the above parameter.
  509.  
  510. 11.Scroll screen up; init string.  String sent to initiate a scroll
  511.    operation.
  512.  
  513. 12.Scroll screen up; each row.  String sent following the init string
  514.    to scroll the screen up one row each time.  It doesn't matter if
  515.    the cursor is moved during this command, as the cursor position will
  516.    be restored automaticly by the program. If no special scroll command
  517.    is available with your terminal, you should enter a string that places
  518.    the cursor at the bottom row, and advance one row.
  519.  
  520. 13.Clear to end of line.  String sent to clear the remaining (or all)
  521.    of the line the cursor is positioned at.  The line should ONLY be
  522.    cleared, NOT deleted.  Currently it doesn't matter if the whole line
  523.    is cleared, or only the end of it.
  524.  
  525. 14.Clear screen.  String sent to clear the entire screen, and position
  526.    the cursor at the home (upper left) position.
  527.  
  528. 15.Use ANSI colors.  Set to YES if you want Os2You to send color attributes
  529.    with ANSI escape sequences.  If set to NO, no color information will be
  530.    transfered.
  531.  
  532. 16.Strip control characters.  Set to YES if you want Os2You to replace all
  533.    visible control characters (between 0 and 31) on the host screen with
  534.    space characters instead.  This is usable if you use a terminal that
  535.    won't display control characters, but treat them as control information.
  536.  
  537. 17.Strip high order characters.  Set to YES if you want Os2You to replace
  538.    all high order characters (between 127 and 255) on the host screen with
  539.    space characters instead.  This is usable if you use a terminal that
  540.    does not support the PC character set, or if you use 7 databit connections.
  541.  
  542. Some terminals require a short "breath" after some commands like
  543. clearing the screen and positioning the cursor.  This may be
  544. accomplished by entering trailing zeros after the command strings.
  545. Os2You will send these null characters, but your terminal will
  546. in most cases ignore these characters and get their pause.
  547.  
  548.  
  549.  
  550.  
  551. Command line options
  552. ====================
  553. If you want to start the program from the OS/2 Command prompt without
  554. the phone answering capabilities, or want to call the program from
  555. your own application, the program is started with some parameters.
  556. The program may use a "hot" file handle (already opened).
  557.  
  558. It is the callers responsibility to set the communication port as
  559. wanted, and Os2You will use the current settings when called.
  560.  
  561. When the program exits, it restores the communication port to it's previous
  562. state.  If a program was successfully spawned the program will exit with
  563. Exit-code set to zero.  If the program failed by any reason, the Exit-code
  564. will be set to a non zero value.
  565.  
  566. The parameters may be entered at the command line or/and set in the
  567. environment variable "OS2YOU".  If both the environment variable and
  568. a command line is entered, the environment variable will be parsed first
  569. and the command line after that, making command line parameters override
  570. any settings in the environment variable.  The environment variable is
  571. set by the "SET OS2YOU=xxx xxxx xxxx xxx" command.  The following parameters
  572. are available (note that they should be lower case).
  573.  
  574. -c    <fname>   Use the configuration file <fname>.  This option is only
  575.                 valid if you use the HOST-mode or callback processing.
  576.                 Default is "OS2YOU.CFG".
  577.  
  578. -d              Do NOT detect carrier loss.  Normally the program monitors
  579.                 the carrier and close the remote session if carrier is lost.
  580.                 By adding this parameter you override this beaviour.
  581.  
  582. -e    <fname>   Execute program <fname> for the remote session (typically
  583.                 CMD.EXE).  This parameter is the last one read by Os2You.
  584.                 All following parameters are sent to the called program.
  585.                 Default is "CMD.EXE".
  586.  
  587. -f    <decint>  Delay between screenupdates with <decint> milliseconds.
  588.                 Default is 100 mSecs (0.1 seconds).
  589.  
  590. -i    <decint>  Exit if keyboard inactive in <decint> seconds.  If set
  591.                 to zero no inactivity timeout is used.  Note that only
  592.                 the keyboard activity is monitored, and that the inactivity
  593.                 counter is active even if the screen alters.
  594.                 Default is zero (no inactivity counter).
  595.  
  596. -l    <dname>   Use device <dname> for communication.  If <dname> is
  597.                 replaced by a percent sign and a decimal value (for
  598.                 example "%5"), the program will use the device handle
  599.                 (5 in the example) for communication.  The program may
  600.                 also use pipes handles for communication.
  601.                 This parameter has no default value, and if the parameter
  602.                 is omitted, the program will start up in HOST mode.
  603.  
  604. -n    <uname>   Use parameters for user <uname> in the configuration file,
  605.                 including callback processing to <uname>.  This parameter
  606.                 is only valid if you do NOT start the program in HOST mode.
  607.                 If you want to include spaces in the <uname> you should
  608.                 replace the space by an underscore "_", or surround the
  609.                 parameter with double quotes.
  610.                 Default is to not use any entries in the configuration
  611.                 file.
  612.  
  613. -p              Use physical screen area for remote.  If this parameter
  614.                 is specified the program will use the physical screen
  615.                 area for remote, and NOT the screen area owned by the
  616.                 session.  If this parameter is specified you can't use
  617.                 the "-s" parameter.
  618.                 Default is to use the session screen area.
  619.  
  620. -prty <decint>  Screen update priority <decint> 0-39.  This parameter
  621.                 sets the priority for the remote screen update thread.
  622.                 Zero is the lowest priority and 39 the highest.
  623.                 Priority 0-9 executes with IDLE priority, 10-19 has
  624.                 REGULAR priority, 20-29 HIGH priority and 30-39 TIME
  625.                 CRITICAL priority.  If priority is set to 14 the screen
  626.                 update thread has the exact same priority as the executed
  627.                 program.
  628.                 Default is 14 giving the update thread exactly the same
  629.                 priority as the executing program.  Setting the priority
  630.                 to a higher value (15) may result in smother operation.
  631.  
  632. -s              Disable the built in task switcher and physical screen.
  633.                 If you don't want the remote user to be able to switch
  634.                 between running tasks, you should disable this feature.
  635.                 If this parameter is specified you can't use the "-p"
  636.                 parameter.
  637.                 Default is to enable the task switcher.
  638.  
  639. -t    <fname>   Use terminal definition file <fname>.  The file extension
  640.                 ".PRM" is added if no extension is included.
  641.                 This parameter has no default value, instead the program
  642.                 has a built in table for ANSI terminal emulation.
  643.  
  644. Examples:
  645.  
  646. Os2You -l COM1 -f 1000 -i 300 -e CMD.EXE /K DIR
  647.  
  648. This command will tell Os2You to use COM1 and update the screen each 1000
  649. millisecond.  If no remote keystroke is received within 300 seconds the
  650. program will be forced to exit.  CMD.EXE is loaded for remote operation
  651. with the parameters "/K DIR" (which will tell CMD.EXE to display a
  652. directory list).
  653.  
  654. Os2You -l %4 -f 100 -i 0 -d -e CMD.EXE
  655.  
  656. This command will tell Os2You to use device handle 4 (decimal value) and
  657. update the screen each 100 millisecond.  If carrier i lost the program will
  658. be terminated. but no inactivity timer is set.
  659.  
  660. Os2You -l %4 -f 100 -i 0 -d -n Mikael_Wahlgren
  661.  
  662. This command is similar to the previous example, except that the program
  663. will spawn the program and use the parameters indicated by the username
  664. "Mikael Wahlgren" in the configuration file.  By using the "-n" option it
  665. is possible to spawn different session depending on username.
  666.  
  667.  
  668. To be compatible with MaxPipe (TM of Peter Fitzsimmons) an alternate calling
  669. syntax is automaticly invoked, if the first parameter does not begin with a
  670. minus sign "-".  In this case, the syntax will be like:
  671.  
  672. Os2You <device> <programname> <parm1> ... <parmN>
  673.  
  674. <device>            Tells which communication device to use.  It is
  675.                     possible to pass a "hot" device handle by replace
  676.                     the device name with a number corresponding to a
  677.                     the device handle decimal coded (like %4).  The
  678.                     device name may be replaced by a pipe name, but special
  679.                     care should be taken, when using this possibility.  The
  680.                     best choice when using pipes is to use the stand alone
  681.                     interface.
  682.  
  683. <programname>       Tells which program to load for remote operation.
  684.                     (Typically CMD.EXE).
  685.  
  686. <parm1> ... <parmN> The remaining parameters are optional and are passed as
  687.                     parameters to <programname>.
  688.  
  689. All other values are set to their default when using this syntax.
  690.  
  691.  
  692. To select which communication parameters to use, you should use the MODE-
  693. program, included with the operating system.  See more in the documentation
  694. for the operating system to see how to configure your communication line.
  695. All communication parameters set with MODE, will be used with Os2You.
  696.  
  697. Example:
  698.  
  699. MODE COM1:2400,N,8,1,OCTS=ON,DTR=ON,RTS=HS,BUFFER=ON
  700.  
  701. This command will tell Os2You to use baud rate 2400, no parity, 8 data bits,
  702. 1 stop bit, hardware handshaking CTS/RTS and use the extended hardware
  703. buffering capabilities.
  704.  
  705.  
  706.  
  707.  
  708.  
  709. Multi user configuration
  710. ========================
  711. By using Os2You you may actually use OS/2 in a multi user like manner.  Note
  712. that Os2You lacks any sort of security control for file managing, which a
  713. "normal" multi user operating system includes.
  714.  
  715.  
  716.  
  717.  
  718.  
  719. Commonly asked questions and problems
  720. =====================================
  721. Q1.  What terminal program should I use to communicate with Os2You and which
  722.      terminal emulation mode?
  723.  
  724. A1.  Use ANSI-BBS for your terminal program if it is available and
  725.      the built in or ANSI.PRM terminal mode in Os2You.
  726.  
  727.      If you run OS/2 on the remote, you may use the LanTerm2 program, by
  728.      configuring it with Os2You configuration menu, and start LanTerm2
  729.      without any parameters.  Or you could start LanTerm2 with the COM-
  730.      port and baudrate as parameters, like "LanTerm2 COM1 2400".  This
  731.      program in combination with the built in emulation in Os2You, is
  732.      the most comfortable configuration, as the keyboard will work as
  733.      you are used to.
  734.  
  735. Q2.  When started in HOST-mode and modem, Os2You loops around, asking
  736.      for <Enter> and eventually logon parameters, even if no user are
  737.      calling.
  738.  
  739. A2.  Os2You relies entirely on the DCD (Data Carrier Detect) signal on
  740.      the RS232-interface to reflect the real carrier state.  DCD is a
  741.      that tells the computer that the modem is connected to another modem.
  742.      You have to verify that the signal on the RS232 interface is connected
  743.      to the signal at the modems interface, and that the modem is configured
  744.      to reflect the real carrier state.
  745.  
  746. Q3.  When logging on to Os2You HOST mode, I first get a lot of garbage
  747.      characters, before I get the "Press Enter" message.
  748.  
  749. A3.  This is normal, if you have configured Os2You for multiple baud rates.
  750.      Os2You tries to find the correct baud rate for you.
  751.  
  752. Q4.  When the loggin on to Os2You HOST mode, the modems RD (Receive Data)
  753.      signal is blinking all the time, even when nothing appears on the
  754.      screen.
  755.  
  756. A4.  This is normal.  Os2You continously sends characters to the remote
  757.      when logging on, of technical reasons.
  758.  
  759. Q5.  The screen doesn't scroll correctly.
  760.  
  761. A5.  Scrolling has proved to be the hardest part to implement.  This has
  762.      to do with the fact that the Os2You program has no way to find out
  763.      how many lines your terminal program on the remote has.  The built
  764.      in ANSI driver in Os2You positions the cursor at line 999 and sends
  765.      a LF.  This works with the standard OS/2 ANSI driver, and some
  766.      terminal programs, as a line number greater than the maximum line,
  767.      will result in a position at the last line.
  768.  
  769.      Other terminal programs just ignores cursor positions that is outside
  770.      the screen size.  This is why there is a separate ANSI terminal
  771.      definition file available.  By using this file Os2You will position
  772.      the cursor at line 25 and send a LF, which works if your screen
  773.      size is just 25 lines.
  774.  
  775.      If neither the built in ANSI terminal nor the delivered ANSI
  776.      definition file works, you should modify ANSI.PRM (or the terminal
  777.      definition file that is appropriate for your terminal), and alter
  778.      the scroll sequence.
  779.  
  780. Q6.  Background colors are not displayed correctly at the remote screen,
  781.      using ANSI colors.
  782.  
  783. A6.  When Os2You sends a ClrEol (Clear to end of line) sequence, it
  784.      assumes that the line is cleared with the attribute currently in
  785.      use.  This is how it works in the ANSI driver for OS/2.  Some terminal
  786.      emulators though, fill the cleared line with the standard attribute
  787.      in opposite to the currently used attribute.
  788.  
  789. Q7.  When running some programs, I don't get any output from it.
  790.  
  791. A7.  Os2You is not compatible with programs running in Presentation
  792.      Manager.  Some programs running in OS/2 full screen text sessions
  793.      require the physical screen buffer.  Those programs won't be
  794.      100% compatible with Os2You, but you might to be able to run the
  795.      program if you use the task switcher and switch to the offending
  796.      program, as programs selected by the task switcher will run in
  797.      the foreground and have the physical screen adressable.
  798.  
  799. Q8.  When running some programs, I get output from the program, but
  800.      the keyboard doesn't seem to work.
  801.  
  802. A8.  The programs keyboard handling is not compatible with Os2You.  Please
  803.      report the problem to me, and if possible, send a copy of the offending
  804.      program.
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813. RELEASE NOTES
  814. =============
  815. Only bugs and improvements not described elsewhere are documented
  816. in this section.
  817.  
  818. 1.0:  First release.
  819.  
  820. 1.1:  The program could terminate with a GP error when run on a PS/2
  821.       system.  The port-parameters was not correctly restored.  This
  822.       is now corrected.
  823.  
  824. 1.2:  Improvements
  825.  
  826. 1.3:  Improvements
  827.  
  828. 1.4:  Improvements
  829.  
  830. 1.5:  Bug, that made the program incompatible with some programs
  831.       (especially programs polling the keyboard) is fixed.
  832.  
  833. 1.6   Improvements
  834.  
  835. 1.7   Some scancodes adjusted to make the CTRL-key, Enter-key and some
  836.       other special keys more compatible with some programs.
  837.  
  838.       The command line syntax is altered.  Note that it is NOT compatible
  839.       with previous syntax.  This had to be done, as the previous syntax
  840.       was unclear, and not flexible enough.
  841.  
  842.       LAN/Pipe operation fixed.
  843.  
  844. 1.8   LAN/Pipe operation fixed again.  Previous LanTerm2 didn't work
  845.       due to a serious compiler bug.
  846.  
  847.       The configuration file is opened in "Deny Write" mode for security
  848.       reasons.  This makes it impossible to modify the configuration file
  849.       during an session.
  850.  
  851. 1.9   The "Allow Task Switch" option in the login table is now used
  852.       to disable the task switch and the Break-functions.
  853.  
  854.       If the "-s" option is used or "Allow Task Switch" option is
  855.       set to NO in the user profile, the user won't be able to use
  856.       the Esc-c, Esc-Break sequences (to end the session abnormally).
  857.  
  858.       Now Break scancodes are also sent.
  859.  
  860.       Lanterm.EXE (LAN-operation for DOS workstations) are now included
  861.       again.  I hope it works OK, but I haven't been able to test this,
  862.       as I don't have access to any network with DOS workstations able
  863.       to run named pipes.
  864.  
  865.       Better shutdown operation, when a program gets stuck, or user lost
  866.       carrier.  REXX-sessions are shutdown correctly.
  867.  
  868.       Terminal configurable in user table.
  869.  
  870.       The configuration file is optionally (configurable) opened in
  871.       "Deny Read/Write" mode, to prevent an user to look at the
  872.       configuration file.  If the program is not configured to lock
  873.       the file, it will be possible to read, write and change the
  874.       configuration file.
  875.  
  876. 1.91  Fix to get the program work with LAN Server 1.2 CSD 4093 and
  877.       DOS Requesters.  Also tested successfully using Novell server
  878.       and remote named pipes.
  879.  
  880.       LanBridge added, to run OS/2 LAN Requesters remote over LAN.
  881.  
  882.       If program can't be killed, when exiting the session, Os2You will
  883.       go back to login screen.  Next user will probably get confused,
  884.       because the previous program is still alive.
  885.  
  886.       "-s" (disable task list) is default when using MaxPipe parameter
  887.       syntax.
  888.  
  889.       LanTerm and LanTerm2 programs are altered, to change the behaviour
  890.       of the Esc-key.  If the Esc-key in LanTerm(/2) is pressed the program
  891.       will send double Esc-codes making Os2You send one Esc-sequence to the
  892.       application.  If you press Shift-Esc in the LanTerm(/2) program will
  893.       send just one Esc-code, making Os2You to wait for an Esc-sequence (or
  894.       displaying the help screen).
  895.  
  896. 2.0   Color attributes are now transfered to the remote screen, by using
  897.       ANSI color escape sequences.  It is default to use ANSI colors when
  898.       no terminal definition file or an old definition is loaded.  To
  899.       upgrade your old terminal definition files, select terminal definition
  900.       from the Os2You menu, and modify the ANSI color entry.  Your other
  901.       definitions will be intact.
  902.  
  903.       The screen update handling is altogether rewritten.  In some respects
  904.       it is faster, but in some situations it might also be slower than
  905.       before.  The terminal does not need to wrap at end of lines anymore.
  906.       The program now supports different screen widthes and heights.  The
  907.       program assumes that you are running the application in color mode
  908.       (two bytes per character cell).  If this is not the case, the program
  909.       will transfer false attributes (converting underline/highlights to
  910.       colors).
  911.  
  912.       The "-n" option now allows Os2You to directly spawn different
  913.       sessions depending on the username.  The callback, shell, terminal
  914.       and switch parameters are used from the login table.
  915.  
  916.       The COM-buffers are flushed by reading all available characters, in
  917.       addition to a DosDevIOCtl call, as the DosDevIOCtl call didn't seem
  918.       to work in some networking environments.
  919.  
  920.       The option to strip control characters (0-31) and high order
  921.       characters (127-255) are added in the terminal definition file.
  922.       The default, if no terminal definition file or an old definition
  923.       is used, is to strip control characters but leave high order
  924.       characters.
  925.  
  926.       LanTerm/2 (for OS/2) and LanTerm (for DOS) are modified to accept
  927.       COM-ports from the command line.  Both program can be started with
  928.       the syntax "LanTerm <COM-port> <baudrate>".  The COM-port must have
  929.       a name beginning with "COM", and for the DOS-version only COM1 and
  930.       COM2 are valid.  LanTerm (for DOS) requires that ANSI.SYS is loaded
  931.       in your CONFIG.SYS file.  Both programs take advantage of the FIFO
  932.       buffered 16550 UART if available.
  933.  
  934.       LanTerm/2 and LanTerm now have Zmodem AUTO download/upload capability.
  935.       To transfer files between host and remote, just issue a file transfer
  936.       command on the host (use the Rz or Sz command files and M2Zmodem), and
  937.       the file transfer program will start on both host and remote.  If
  938.       you upload from remote to host, you will asked for a filename/pattern.
  939.       LanTerm/2 uses M2Zmodem, and LanTerm uses DSZ as file transfer
  940.       programs, and these programs much be available in the current
  941.       directory or in a path.
  942.  
  943.  
  944.  
  945.  
  946.  
  947. Planned enhancements
  948. ====================
  949. The following is a list a enhancements planned in a future release.  It
  950. isn't sure that the next release of the program will include these
  951. enhancements though.  Any adjustments necessary for Os2You to work
  952. with OS/2 2.0 will be made, when OS/2 has been released.
  953.  
  954. 1.  A special terminal program with enhanced terminal features for DOS
  955.     and OS/2.  This will fasten operation, and ease operation, as it you
  956.     wouldn't have to remember Esc-sequences to emulate different keys.
  957.     Only to registered users.
  958.  
  959. 2.  The DOS-box will be improved when OS/2 2.0 is out.  No further effort
  960.     to improve the DOS-box before that will be made, as the method probably
  961.     will have to be changed anyhow.
  962.  
  963.  
  964.  
  965. Copyright notes
  966. ===============
  967. OS/2     is a trademark of IBM Corporation.
  968. PS/2     is a registered trademark of IBM Corporation.
  969. IBM      is a registered trademark of International Business Machines
  970.          Corporation.
  971. DSZ      is a trademark of Omen Technology Incorporated.
  972. 386/SX   might be a trademark of Intel Corporation.
  973. Novell   is a trademark of Novell Inc.
  974.  
  975.  
  976.  
  977. Important license information
  978. =============================
  979. It is illegal (or at least unethical) to patch the program in any way.
  980. Any reverse engineering (disassembling or monitoring) is not an approved
  981. use of the application.
  982.  
  983. If you register the software with at least 300 SEK (about $50), you will
  984. get a license file and a copy of the most recent version of the program.
  985. In this case, you will also get rid of the registration screen during logon.
  986. In the future this registration file may enable features in the program
  987. not available in unregistered configurations, but currently all functionality
  988. is available in unregistered copies.  Note, that the registration file you
  989. get is valid for any future release of this program, and that you will
  990. be treated as registered to any future release.
  991.  
  992. If you use the program on a regular basis, or in commercial use, you must
  993. register with minimum the above mentioned sum for each machine running
  994. the Os2You program.  The LanTerm, LanTerm2 and LanBridg programs don't
  995. need any further registration, and may be used in unlimited instances, but
  996. an extra registration per each 20th instance of LanTerm or LanTerm2 is
  997. appriciated.  For use in the Scandinavian countries (Sweden, Norway and
  998. Denmark), I have the right to refuse registration of a user and prohibit
  999. commercial use of the program, if I wish.  This will be the case, if the
  1000. use of the program conflicts with commercial interests related to me.
  1001.  
  1002. The sourcecode (in Modula-2 and C) of the program is available,
  1003. on special terms.  Please contact me if this is of interest.
  1004.  
  1005. You are encouraged to spread this program (without registration file)
  1006. to anyone that might be interested.
  1007.  
  1008. If you want to register, send swedish banknotes, bank cheque or let bank
  1009. transfer money to my account by SWIFT (note that you should send all money
  1010. in swedish currency).
  1011.  
  1012. ╔═══════════════════════════════╦═══════════════════════════════════════╗
  1013. ║  My bank account is:          ║  My address is:                       ║
  1014. ╠═══════════════════════════════╬═══════════════════════════════════════╣
  1015. ║  Account no: 414 46 44-4      ║  Mikael Wahlgren                      ║
  1016. ║  PostGirot Sweden Inter.      ║  Kransen 4E                           ║
  1017. ║  S-105 06 STOCKHOLM           ║  S-416 72  GOTHENBURG                 ║
  1018. ║  Sweden                       ║  Sweden                               ║
  1019. ║                               ║                                       ║
  1020. ║  SWIFT: PGSI SE SS            ║  Fidonet: Mikael Wahlgren 2:203/302.5 ║
  1021. ║  Telex: 10185 pgint S         ║  Internet: d9mikael@dtek.chalmers.se  ║
  1022. ╚═══════════════════════════════╩═══════════════════════════════════════╝
  1023.  
  1024.