home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume26 / pcomm-2.0.2 / part05 / Unixpc.shar / Readme.7300 < prev    next >
Encoding:
Text File  |  1993-04-13  |  5.6 KB  |  151 lines

  1.                   Pcomm v2.0
  2.              Additional Notes for users of
  3.                  AT&T Unix PC 7300/3b1
  4.  
  5.     1) This version of Pcomm *REQUIRES* the pseudo-tty and socket
  6.     emulation library called "uipc" found on osu-cis.
  7.  
  8.     2) You must run the Setup.sh shell script (as root) before
  9.     attempting to compile Pcomm.  The shell script will create a 
  10.     new link directive file, extract a few missing objects from
  11.     the C library, and create a new sys/time.h header.
  12.  
  13.     3) The shared libraries on your system contain Terminal Access
  14.     Method (TAM) routines in lieu of curses(3) routines.  However,
  15.     many of the routines have the same names!  This means that
  16.     curses library is not compatible with the shared library.  So,
  17.     to circumvent the problem, an alternate shared library "link
  18.     directive file" is needed.  The Setup.sh script creates this
  19.     file.
  20.  
  21.     4) Before Pcomm can be compiled, the curses library routines
  22.     must be installed on your system.  The diskette labeled
  23.     "Curses/Terminfo Programmer's Package" is a part of the "Unix
  24.     Development Set".  Likewise, before Pcomm can be used, the
  25.     terminfo database must be installed.  The diskettes labeled
  26.     "Curses/Terminfo End User Package" and "Terminfo Database" are
  27.     a part of the "Unix Foundation Set"
  28.  
  29.     5) Did you know that your system can use DEC vt100 style line
  30.     drawing character?  Curses automatically uses the "alternate"
  31.     character set (if found) to draw the boxes and lines rather than
  32.     using the "-" and "|" characters.  To allow your system to use
  33.     this feature, there are two things you must do:
  34.  
  35.         1) Load the line drawing font in slot 1 prior to running
  36.         a program requiring them.  This can be done by typing:
  37.  
  38.             setf /usr/lib/wfont/BLD.ft 1
  39.  
  40.         ...or permanently install this font in slot 1 by adding
  41.         the following two lines to the end of the /etc/rc file:
  42.  
  43.             sfont /usr/lib/wfont/BLD.ft 1
  44.             setf /usr/lib/wfont/BLD.ft 1
  45.  
  46.         2) Tell curses(3) about the alternate character set by
  47.         editing the terminfo database.
  48.  
  49.         To get a copy of the terminfo entry to play with,
  50.         you type:
  51.  
  52.             infocmp -I s4 > s4.ti
  53.  
  54.         now add the following line (with a leading tab) to the
  55.         "s4.ti" file:
  56.  
  57.             acsc=+h\,g.e-fjjkkllmmnnqqttuuvvwwxx,
  58.  
  59.         recompile the new entry:
  60.  
  61.             tic s4.ti
  62.  
  63.     There is one disadvantage...  Sometimes line noise will switch
  64.     you to the line drawing character set while you're communicating
  65.     with a remote!
  66.  
  67.     6) The "tset" command is broken on every version of Unix this
  68.     box has ever seen (it is commented out of /etc/profile for a
  69.     good reason).  One of tset's functions was to send a string to
  70.     initialize the settings of the terminal and to set the tab
  71.     stops.  The fact that this program isn't used is often
  72.     overlooked because the console (as well as a lot of other
  73.     terminals) doesn't require any initialization.  However, if you
  74.     call into your system from a remote terminal that *does* require
  75.     initialization, you've got trouble.
  76.  
  77.     For example, curses(3) looks at the terminfo database to see if
  78.     your terminal has "hardware tabs", if so, it expects the tab
  79.     stops to be set.  Ignoring tabs by using "stty -tabs" (to
  80.     convert tabs to spaces) won't work, in fact, curses(3) RESETS
  81.     things as if you had typed "stty tabs"!
  82.  
  83.     Likewise, my terminfo entry for PCPLUS v1.1's emulation of a
  84.     vt102 has "^[)0" in the initialization string to load the line
  85.     drawing character set.  It needs to be sent to the terminal
  86.     before running Pcomm.
  87.  
  88.     Some versions of Unix have a "init" option to the "tput" command
  89.     to perform all the initialization.  If so, you should edit the
  90.     /etc/profile to add the following commands at the bottom:
  91.  
  92.         tput init
  93.         tabs
  94.  
  95.     If your version of tput doesn't recognize the "init" option, a
  96.     somewhat longer solution is to edit /etc/profile and add the
  97.     following commands at the bottom:
  98.  
  99.         eval `tput iprog`
  100.         tput is1
  101.         tput is2
  102.         if [ -n "`tput hts`" ] ;then
  103.             stty tabs
  104.         else
  105.             stty -tabs
  106.         fi
  107.         tabs
  108.         cat -s "`tput if`"
  109.         tput is3
  110.         echo "\r\c"
  111.  
  112.     7) Pcomm makes (an arrogant) assumption that the phone line for
  113.     the OBM is already configured in the DATA mode.  Users with only
  114.     one phone line attached to ph0 will have to manually switch the
  115.     line to the DATA mode before using Pcomm and then switch it back
  116.     to VOICE afterwards.  To aid in this task, the following shell
  117.     script could be used:
  118.  
  119.         phtoggle
  120.         sleep 1
  121.         /usr/local/bin/pcomm $*
  122.         phtoggle
  123.  
  124.     Users with one phone line attached to ph0 will have to change
  125.     the TTY setup since the default Pcomm.modem file assumes that
  126.     ph1 is being used.
  127.  
  128.     If you only have one phone line but *always* use it in the DATA
  129.     mode, there is another solution.  Did you know that you can fool
  130.     your machine into having a one-line system in the DATA mode?
  131.     All you have to do is re-configure the Telephone Setup and tell
  132.     the machine that you've got two lines (one line to be shared
  133.     between VOICE and DATA on ph0, and one line to be DATA only on
  134.     ph1).  Then you just never plug the phone line into ph0, you use
  135.     ph1 instead.  The Telephone Setup menu is reached through the
  136.     Office of install, Administration, Hardware Setup menues.
  137.  
  138.     8. The SETUID_BROKE pre-processor variable was designed to take
  139.     care of systems that aren't able to switch back and forth
  140.     between the real and effective user id.  On the Unix PC, this
  141.     problem only exists if the program is set-group-id.  So, if
  142.     you're running HDB UUCP and have Pcomm set-user-id to uucp, you
  143.     don't need to have SETUID_BROKE defined.
  144.  
  145.     9. The default tunable parameters for the size of INPUT_BUF and
  146.     OUTPUT_BUF for the Unix PC are rather small in order to prevent a
  147.     "choppy" appearance on the screen.  However, if you have
  148.     installed the serial patch (called "serial_pat.Z" on osu-cis),
  149.     then the nominal sizes of 64 and 32 for INPUT_BUF and OUTPUT_BUF
  150.     will provide much better performance.
  151.