home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume20 / pcomm1.2 / part02 / Unixpc.shar / Readme.7300 < prev   
Text File  |  1989-10-25  |  6KB  |  155 lines

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