home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume17 / mgr / part11 < prev    next >
Encoding:
Internet Message Format  |  1989-01-18  |  50.5 KB

  1. Subject:  v17i012:  MGR, Bellcore window manager, Part11/61
  2. Newsgroups: comp.sources.unix
  3. Approved: rsalz@uunet.UU.NET
  4.  
  5. Submitted-by: Stephen A. Uhler <sau@bellcore.com>
  6. Posting-number: Volume 17, Issue 12
  7. Archive-name: mgr/part11
  8.  
  9.  
  10.  
  11.  
  12. #! /bin/sh
  13. # This is a shell archive.  Remove anything before this line, then unpack
  14. # it by saving it into a file and typing "sh file".  To overwrite existing
  15. # files, type "sh file -c".  You can also feed this as standard input via
  16. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  17. # will see the following message at the end:
  18. #        "End of archive 11 (of 61)."
  19. # Contents:  demo/misc/grav.c demo/msg/README demo/tests/test_rop.c
  20. #   doc/usrman/Makefile font-16/Makefile font-32/Makefile
  21. #   font-32/Ucour7x14r font-32/Ucour7x14rI font-32/Ucour7x14ru
  22. #   font-32/Ugal7x14r font-32/Ugal7x14rI font-32/Ugal7x14ru
  23. #   font-32/User7x14rI font-32/User7x14ru icon/Makefile
  24. #   misc/lasergrafix.c src/intersect.c src/set_mode.c
  25. # Wrapped by rsalz@papaya.bbn.com on Thu Nov 17 21:05:10 1988
  26. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  27. if test -f 'demo/misc/grav.c' -a "${1}" != "-c" ; then 
  28.   echo shar: Will not clobber existing file \"'demo/misc/grav.c'\"
  29. else
  30. echo shar: Extracting \"'demo/misc/grav.c'\" \(2418 characters\)
  31. sed "s/^X//" >'demo/misc/grav.c' <<'END_OF_FILE'
  32. X/*                        Copyright (c) 1987 Bellcore
  33. X *                            All Rights Reserved
  34. X *       Permission is granted to copy or use this program, EXCEPT that it
  35. X *       may not be sold for profit, the copyright notice must be reproduced
  36. X *       on copies, and credit should be given to Bellcore where it is due.
  37. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  38. X */
  39. X/*    $Header: grav.c,v 4.3 88/06/30 11:41:44 sau Exp $
  40. X    $Source: /tmp/mgrsrc/demo/misc/RCS/grav.c,v $
  41. X*/
  42. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/demo/misc/RCS/grav.c,v $$Revision: 4.3 $";
  43. X
  44. X#include <sys/time.h>
  45. X#include <stdio.h>
  46. X#include "term.h"
  47. X#include "restart.h"
  48. X
  49. X#define MAXX    999
  50. X#define MAXY    999
  51. X#define MAXV    60
  52. X#define MINV    20
  53. X#define LCT    10
  54. X#define SLOW    60000        /* usec to sleep between lines */
  55. X#define ACC     2
  56. X#define fsleep(x) \
  57. X   { \
  58. X   struct timeval time; \
  59. X   time.tv_sec = 0; \
  60. X   time.tv_usec = x; \
  61. X   select(0,0,0,0,&time); \
  62. X   }
  63. X#define abs(x)    ((x) < 0 ? -(x) : (x))
  64. X
  65. Xint vx, vy; /* x and y velocities */
  66. Xint x, y, x1, y1;
  67. Xint rad, hsize, vsize;
  68. Xint lcolor,bcolor;
  69. Xlong random();
  70. X
  71. Xmain(argc,argv)
  72. Xchar **argv;
  73. X{
  74. X    char *getenv();
  75. X        register int s = 0;
  76. X    int sleep = 0;
  77. X
  78. X    ckmgrterm( *argv );
  79. X
  80. X    if (argc>1 && strcmp(argv[1],"-s")==0)
  81. X        sleep++;
  82. X
  83. X    m_setup(0);
  84. X    m_push(P_EVENT|P_FLAGS);
  85. X        Restart();
  86. X    get_size(&x, &y, &hsize, &vsize);
  87. X    rad = (vsize+hsize)>>6;/* size is the avg. of dims. / 32 */
  88. X
  89. X    vx = 5; /* constant horizontal velocity */
  90. X    vy = 0;  /* initial vertical velocity of zero */
  91. X    x = rad + 1;
  92. X    y = rad + 1;
  93. X    m_setevent(UNCOVERED,_quit);
  94. X    
  95. X    bcolor = random()%24;
  96. X    m_bcolor(bcolor);
  97. X    while((lcolor = random()%24) == bcolor);
  98. X    m_linecolor(B_SRC,lcolor);
  99. X    m_fcolor(lcolor);
  100. X    m_clear();
  101. X    m_circle(x,y,rad);
  102. X    for(;;)
  103. X    {
  104. X        x1 = x +vx; /* add velocity to x */
  105. X        if (x1 > MAXX-rad || x1 < rad) {
  106. X        /* fix coords if over border */
  107. X            vx *= -1;
  108. X            x1 += vx;
  109. X        }
  110. X        vy += ACC; /* accelerate vertical velocity */
  111. X        y1 = y + vy; /* add velocity to y */
  112. X        if (y1 > MAXY-rad || y1 < rad) {
  113. X                    m_circle(x1,MAXY-rad,rad);
  114. X            vy = -vy * 95 /100;
  115. X                        if (abs(vy) < ACC) {
  116. X                           fsleep(900000);
  117. X                           m_sendme(_quit);
  118. X                           }
  119. X            y1 += vy;
  120. X        }
  121. X        m_circle(x1,y1,rad); /* draw new position */
  122. X        x = x1; /* reset x and y */
  123. X        y = y1;
  124. X        m_flush();
  125. X        if (sleep)
  126. X           fsleep(90000);
  127. X    }
  128. X}
  129. X
  130. END_OF_FILE
  131. # end of 'demo/misc/grav.c'
  132. fi
  133. if test -f 'demo/msg/README' -a "${1}" != "-c" ; then 
  134.   echo shar: Will not clobber existing file \"'demo/msg/README'\"
  135. else
  136. echo shar: Extracting \"'demo/msg/README'\" \(2361 characters\)
  137. sed "s/^X//" >'demo/msg/README' <<'END_OF_FILE'
  138. X#                        Copyright (c) 1987 Bellcore
  139. X#                            All Rights Reserved
  140. X#       Permission is granted to copy or use this program, EXCEPT that it
  141. X#       may not be sold for profit, the copyright notice must be reproduced
  142. X#       on copies, and credit should be given to Bellcore where it is due.
  143. X#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  144. X
  145. X#    $Header: README,v 1.2 88/08/29 13:23:05 sau Exp $
  146. X#    $Source: /tmp/mgrsrc/demo/msg/RCS/README,v $
  147. X
  148. XThis directory contains a sample client-server system.  It uses menus
  149. Xto traverse the file system, and servers to do things to selected files.
  150. X
  151. X* do        runs a unix command as a server
  152. X* start        calls do with a bunch of canned servers
  153. X* client        monitors communications, and is a prototype for clients
  154. X* alias        is a CSH alias that lets the shell send messages to the servers
  155. X                via mgr menus
  156. X* send        sends a message to a server
  157. X* menus        downloads menus into mgr for use with send and do
  158. X
  159. XUSAGE
  160. X-----
  161. X
  162. X1) type make (makes do,client,menus,send and alias)
  163. X   - make sure LIB and INCL in Makefile are correct
  164. X2) make sure you are running mgr (and it is suid to root)
  165. X3) switch to csh (or convert alias to your favorite shell equivalent)
  166. X4) source alias
  167. X5) start up some clients (using start) - try "start more"
  168. X   - open a new window and change to this directory
  169. X   - cat start for some examples
  170. X   - make sure the appropriate icons are in .../icon
  171. X   
  172. X6) type "cd ." to start things off.
  173. X7) use the menu (button 2) to select a file, then
  174. X   use button 1 to pick a server
  175. X
  176. X
  177. X
  178. XMGR message subsystem summary
  179. X--- ------- --------- -------
  180. Xm_put(str)        put STR into the global buffer
  181. Xm_snarf()        return the global buffer
  182. X
  183. Xm_broadcast(str)    broadcast STR to all listeners
  184. Xm_sendme(str)        send STR back to self
  185. Xm_sendto(id,str)    send STR to window ID
  186. X
  187. XMessage events:
  188. X    ACCEPT        accept messages from applications
  189. X            running in other windows.
  190. X
  191. X    NOTIFY        register a name with MGR, and make this 
  192. X            name available to other applications 
  193. X
  194. Xevent parameters (for button events):
  195. X    %n        notify message (if any) from clicked-on window.
  196. X    %w        same as %n, only the ID of the window
  197. X    %S        The length of the string returned by %n.
  198. X
  199. Xaccept parameters:
  200. X    %f        id of message sender, as used in m_sendto()
  201. X    %m        text of message sent by m_sendto().
  202. X    %s        length (in chars) of the %m string
  203. END_OF_FILE
  204. # end of 'demo/msg/README'
  205. fi
  206. if test -f 'demo/tests/test_rop.c' -a "${1}" != "-c" ; then 
  207.   echo shar: Will not clobber existing file \"'demo/tests/test_rop.c'\"
  208. else
  209. echo shar: Extracting \"'demo/tests/test_rop.c'\" \(2453 characters\)
  210. sed "s/^X//" >'demo/tests/test_rop.c' <<'END_OF_FILE'
  211. X/*                        Copyright (c) 1987 Bellcore
  212. X *                            All Rights Reserved
  213. X *       Permission is granted to copy or use this program, EXCEPT that it
  214. X *       may not be sold for profit, the copyright notice must be reproduced
  215. X *       on copies, and credit should be given to Bellcore where it is due.
  216. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  217. X */
  218. X/*    $Header: test_rop.c,v 4.1 88/06/21 14:02:09 bianchi Exp $
  219. X    $Source: /tmp/mgrsrc/demo/tests/RCS/test_rop.c,v $
  220. X*/
  221. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/demo/tests/RCS/test_rop.c,v $$Revision: 4.1 $";
  222. X
  223. X
  224. X/* test raster op functions */
  225. X
  226. X#include <signal.h>
  227. X#include "term.h"
  228. X
  229. Xchar *op_names[] = {
  230. X   "0", 
  231. X   "~(destination | source)",
  232. X   "destination & ~source",
  233. X   "~source",
  234. X   "~destination & source",
  235. X   "~destination",
  236. X   "destination ^ source",
  237. X   "~(destination & source)",
  238. X   "destination & source",
  239. X   "~(destination ^ source)",
  240. X   "destination",
  241. X   "destination | ~source",
  242. X   "source",
  243. X   "~destination | source",
  244. X   "destination | source",
  245. X   "~0"    
  246. X   };
  247. X   
  248. Xchar buff[100];
  249. X
  250. Xmain(argc,argv)
  251. Xint argc;
  252. Xchar **argv;
  253. X   {
  254. X   register int i;
  255. X   int clean();
  256. X   int f_high;
  257. X
  258. X   m_setup(M_FLUSH);
  259. X   m_ttyset();
  260. X   get_font(0,&f_high);
  261. X
  262. X   signal(SIGINT,clean);
  263. X   signal(SIGTERM,clean);
  264. X
  265. X   m_clear();
  266. X
  267. X   m_moveprint( 70, 190, "destination" );
  268. X   m_moveprint( 70 + 333, 190, "source" );
  269. X   m_func(B_SET);
  270. X   for(i=0;i<3;i++)
  271. X      m_bitwrite(70+333*i,200,200,600);
  272. X   m_func(B_CLEAR);
  273. X   for(i=0;i<2;i++)
  274. X      m_bitwrite(75+333*i,205,190,590);
  275. X   m_func(B_SET);
  276. X   m_bitwrite(75+333*0,205,85,590);
  277. X   m_bitwrite(75+333*1,205,190,295);
  278. X
  279. X   for(i=0;i<16;i++) {
  280. X      m_func(B_SET);
  281. X      m_moveprint(10,f_high*2,"destination ...");
  282. X      m_cleareol();
  283. X      m_moveprint( 70 + 333*2, 190, "destination" );
  284. X      m_cleareol();
  285. X      m_func(B_CLEAR);
  286. X      m_bitwrite(75+333*2,205,190,590);
  287. X      m_func(B_SET);
  288. X      m_bitwrite(75+333*2,205,85,590);
  289. X      m_func(i);
  290. X      sleep(1);
  291. X      m_bitcopy(75+333*2,205,190,590,75+333*1,205);
  292. X      sprintf(buff,"function %d: %s",i,op_names[i]);
  293. X      m_moveprint(10,f_high*2,buff);
  294. X      m_cleareol();
  295. X      sprintf( buff, "function %d", i );
  296. X      m_moveprint( 70 + 333*2, 190, buff );
  297. X      m_cleareol();
  298. X      m_cleareol();
  299. X      m_gets(buff);
  300. X      }
  301. X   clean(0);
  302. X   }
  303. X
  304. X/* restore window state and exit */
  305. X
  306. Xclean(n)
  307. Xint n;
  308. X   {
  309. X   m_ttyreset();
  310. X   m_popall(0);
  311. X   exit(n);
  312. X   }
  313. END_OF_FILE
  314. # end of 'demo/tests/test_rop.c'
  315. fi
  316. if test -f 'doc/usrman/Makefile' -a "${1}" != "-c" ; then 
  317.   echo shar: Will not clobber existing file \"'doc/usrman/Makefile'\"
  318. else
  319. echo shar: Extracting \"'doc/usrman/Makefile'\" \(2544 characters\)
  320. sed "s/^X//" >'doc/usrman/Makefile' <<'END_OF_FILE'
  321. X#                        Copyright (c) 1988 Bellcore
  322. X#                            All Rights Reserved
  323. X#       Permission is granted to copy or use this program, EXCEPT that it
  324. X#       may not be sold for profit, the copyright notice must be reproduced
  325. X#       on copies, and credit should be given to Bellcore where it is due.
  326. X#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  327. X
  328. X#    $Header: Makefile,v 4.7 88/07/21 12:51:08 sau Exp $
  329. X#    $Source: /tmp/mgrsrc/doc/usrman/RCS/Makefile,v $
  330. X
  331. X#        manual makefile
  332. X
  333. X
  334. XPARTS= doc.0 doc.1 doc.2 doc.3 doc.4 doc.5 doc.6 doc.7 doc.8 doc.9
  335. XEXTRACT= doc.0 doc.1 doc.2 doc.3 doc.4 doc.5 doc.6
  336. X
  337. X#    croff (c-source => troff input converter) flags
  338. XCROFF=./croff/croff 
  339. XCRF=-k "" "" -c '\fI' '\fP'
  340. X
  341. XVERSION = version
  342. X
  343. X#    set to restrict range of printed pages
  344. XRANGE=
  345. X
  346. X#    Name of troff program
  347. XTROFF=ditroff
  348. X
  349. X#    Name of troff print filter, that troffs and routes to a printer,
  350. X#    all in one
  351. XPRINT=redroff
  352. X
  353. X#name of destination printer, as in $(TROFF) -T$(PRINTER) ...
  354. XPRINTER=300
  355. X
  356. X#    where to install manual
  357. XINSDIR=$(INSROOT)/doc
  358. X
  359. X# what installed nroff'd manual is called
  360. XNAME=usrman.out
  361. X
  362. XFILES= README INDEX abstract version $(EXTRACT)
  363. X
  364. XMAKE=make
  365. XSTART=.
  366. XCPIO=userman.cpio
  367. X
  368. X##########################################################
  369. X
  370. Xall:    abs print
  371. X
  372. Xfast small:    all
  373. X
  374. Xver:
  375. X        v=`cat $(VERSION)`;expr $$v + 1 > $(VERSION);\
  376. X            echo .nr $$v > ver
  377. X
  378. Xprint:    ver $(PARTS)
  379. X        -tbl ver $(PARTS) | $(CROFF) $(CRF) | \
  380. X            $(PRINT) -ms $(RANGE) -
  381. X
  382. Xabs:    ver doc.0 abstract
  383. X        $(PRINT) -ms ver doc.0 abstract
  384. X
  385. Xtemp.$(PRINTER).index:    $(EXTRACT)
  386. X        @echo "extracting category list and index from document"
  387. X        tbl ver $(EXTRACT)| $(CROFF) $(CRF) | \
  388. X            $(TROFF) -T$(PRINTER) -ms -rI1 >/dev/null 2> temp
  389. X        mv temp temp.$(PRINTER).index
  390. X
  391. Xdoc.7:    temp.$(PRINTER).index
  392. X        @echo "creating subject categories to doc.7"
  393. X        @grep "^.Fc" temp.$(PRINTER).index | sort +2 -n  > doc.7
  394. X
  395. Xdoc.8:    temp.$(PRINTER).index INDEX
  396. X        @echo "building index to doc.8"
  397. X        sh INDEX  < temp.$(PRINTER).index  > doc.8
  398. X
  399. X#    nroff version
  400. Xnroff:
  401. X        $(MAKE) TROFF=nroff PRINT=nroff PRINTER=$(PRINTER) all
  402. X
  403. Xinstall: $(INSDIR)
  404. X        -rm -f $(INSDIR)/$(NAME)
  405. X        cp $(NAME) $(INSDIR)/$(NAME)
  406. X        
  407. X$(INSDIR):
  408. X    mkdir $@
  409. X
  410. Xclean:
  411. X        rm -f temp
  412. X
  413. Xclobber:
  414. X        rm -f doc7 doc8 temp*
  415. X
  416. Xlist:
  417. X    @for i in Makefile $(FILES) $(NAME); do \
  418. X        echo "$(START)/$$i"; \
  419. X    done    
  420. X    @echo "$(START)/croff";
  421. X    @if [ -d croff ]; then \
  422. X        cd croff; $(MAKE) START=$(START)/croff list; \
  423. X    fi
  424. X
  425. Xcpio:
  426. X    $(MAKE) -s list | cpio -ocv > $(CPIO)
  427. X
  428. X.PHONY:    all print ver install clean list clobber cpio nroff
  429. END_OF_FILE
  430. # end of 'doc/usrman/Makefile'
  431. fi
  432. if test -f 'font-16/Makefile' -a "${1}" != "-c" ; then 
  433.   echo shar: Will not clobber existing file \"'font-16/Makefile'\"
  434. else
  435. echo shar: Extracting \"'font-16/Makefile'\" \(2542 characters\)
  436. sed "s/^X//" >'font-16/Makefile' <<'END_OF_FILE'
  437. X#                        Copyright (c) 1988 Bellcore
  438. X#                            All Rights Reserved
  439. X#       Permission is granted to copy or use this program, EXCEPT that it
  440. X#       may not be sold for profit, the copyright notice must be reproduced
  441. X#       on copies, and credit should be given to Bellcore where it is due.
  442. X#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  443. X
  444. X#    $Header: Makefile,v 1.2 88/07/21 14:10:45 sau Exp $
  445. X#    $Source: /tmp/mgrsrc/font-16/RCS/Makefile,v $
  446. X
  447. X#    fonts for mgr
  448. X
  449. XINSDIR=$(INSROOT)/font
  450. XSTART=.
  451. XCPIO=font.cpio
  452. XFONTS= \
  453. X    14x25b.fnt 14x25r.fnt 80x2.fnt 81.fnt child11x15.fnt child11x15b.fnt \
  454. X    child11x15bI.fnt child11x15bu.fnt cmr10x16b.fnt cmr10x16bI.fnt \
  455. X    cmr10x16bu.fnt cmr14x25r.fnt cmr14x25rI.fnt cmr14x25ru.fnt cmr15x25r.fnt \
  456. X    cmr15x25rI.fnt cmr15x25ru.fnt cmr9x16r.fnt cmr9x16rI.fnt cmr9x16ru.fnt \
  457. X    cmrb8.fnt colossus12x20.fnt cour6x12r.fnt cour6x12rI.fnt cour6x12ru.fnt \
  458. X    cour7x12b.fnt cour7x12bI.fnt cour7x12bu.fnt cour7x14b.fnt cour7x14bI.fnt \
  459. X    cour7x14bu.fnt cour7x14r.fnt cour7x14rI.fnt cour7x14ru.fnt cour8x16r.fnt \
  460. X    cour8x16rI.fnt cour8x16ru.fnt cour9x16b.fnt cour9x16bI.fnt cour9x16bu.fnt \
  461. X    default.fnt dot1x1r.fnt gal12x20b.fnt gal12x20r.fnt gal12x20rI.fnt \
  462. X    gal12x20ru.fnt gal13x20b.fnt gal13x20r.fnt gal7x11r.fnt gal7x11rI.fnt \
  463. X    gal7x11ru.fnt gal7x14r.fnt gal7x14rI.fnt gal7x14ru.fnt gal8x14b.fnt \
  464. X    gal8x14bI.fnt gal8x14bu.fnt gal8x16b.fnt gal8x16bI.fnt gal8x16bu.fnt \
  465. X    gal9x16r.fnt gal9x16rI.fnt gal9x16ru.fnt oldeng22x30r.fnt oldeng22x30rI.fnt \
  466. X    oldeng22x30ru.fnt sail6x8r.fnt sail6x8rI.fnt sail6x8ru.fnt sdh9x12b.fnt \
  467. X    sdh9x12bI.fnt sdh9x12bu.fnt ser7x12r.fnt ser7x12rI.fnt ser7x12ru.fnt \
  468. X    ser7x13r.fnt ser7x13rI.fnt ser7x13ru.fnt ser7x14r.fnt ser7x14rI.fnt \
  469. X    ser7x14ru.fnt ser8x16r.fnt ser8x16rI.fnt ser8x16ru.fnt ser9x18r.fnt \
  470. X    ser9x18rI.fnt ser9x18ru.fnt shadow38x40b.fnt shadow38x40bI.fnt \
  471. X    shadow38x40bu.fnt upside8x12.fnt
  472. X
  473. Xall:
  474. X
  475. Xinstall:    $(INSDIR)
  476. X#        Do not install the files if INSDIR is the current directory.
  477. X#        This stuff with ReMoveThisFile is to get around symbolic links.
  478. X    rm -rf ./ReMoveThisFile
  479. X    touch $(INSDIR)/ReMoveThisFile
  480. X    if [ ! -f ./ReMoveThisFile ]; then \
  481. X        ( list=`echo .mgrc *.fnt`;  cd $(INSDIR);  rm -f $$list ); \
  482. X        cp .mgrc *.fnt $(INSDIR); \
  483. X    else \
  484. X        echo ">>  $(INSDIR) == current directory; no files copied"; \
  485. X    fi
  486. X    rm -rf $(INSDIR)/ReMoveThisFile
  487. X
  488. X$(INSDIR):
  489. X    mkdir $@
  490. X
  491. Xclean clobber:
  492. X
  493. Xlist:
  494. X    @for i in Makefile .mgrc $(FONTS); do \
  495. X        echo "${START}/$$i"; \
  496. X    done    
  497. X
  498. Xcpio:
  499. X    make -s list | cpio -ocv > ${CPIO}
  500. END_OF_FILE
  501. # end of 'font-16/Makefile'
  502. fi
  503. if test -f 'font-32/Makefile' -a "${1}" != "-c" ; then 
  504.   echo shar: Will not clobber existing file \"'font-32/Makefile'\"
  505. else
  506. echo shar: Extracting \"'font-32/Makefile'\" \(2542 characters\)
  507. sed "s/^X//" >'font-32/Makefile' <<'END_OF_FILE'
  508. X#                        Copyright (c) 1988 Bellcore
  509. X#                            All Rights Reserved
  510. X#       Permission is granted to copy or use this program, EXCEPT that it
  511. X#       may not be sold for profit, the copyright notice must be reproduced
  512. X#       on copies, and credit should be given to Bellcore where it is due.
  513. X#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  514. X
  515. X#    $Header: Makefile,v 4.2 88/07/21 14:11:57 sau Exp $
  516. X#    $Source: /tmp/mgrsrc/font-32/RCS/Makefile,v $
  517. X
  518. X#    fonts for mgr
  519. X
  520. XINSDIR=$(INSROOT)/font
  521. XSTART=.
  522. XCPIO=font.cpio
  523. XFONTS= \
  524. X    14x25b.fnt 14x25r.fnt 80x2.fnt 81.fnt child11x15.fnt child11x15b.fnt \
  525. X    child11x15bI.fnt child11x15bu.fnt cmr10x16b.fnt cmr10x16bI.fnt \
  526. X    cmr10x16bu.fnt cmr14x25r.fnt cmr14x25rI.fnt cmr14x25ru.fnt cmr15x25r.fnt \
  527. X    cmr15x25rI.fnt cmr15x25ru.fnt cmr9x16r.fnt cmr9x16rI.fnt cmr9x16ru.fnt \
  528. X    cmrb8.fnt colossus12x20.fnt cour6x12r.fnt cour6x12rI.fnt cour6x12ru.fnt \
  529. X    cour7x12b.fnt cour7x12bI.fnt cour7x12bu.fnt cour7x14b.fnt cour7x14bI.fnt \
  530. X    cour7x14bu.fnt cour7x14r.fnt cour7x14rI.fnt cour7x14ru.fnt cour8x16r.fnt \
  531. X    cour8x16rI.fnt cour8x16ru.fnt cour9x16b.fnt cour9x16bI.fnt cour9x16bu.fnt \
  532. X    default.fnt dot1x1r.fnt gal12x20b.fnt gal12x20r.fnt gal12x20rI.fnt \
  533. X    gal12x20ru.fnt gal13x20b.fnt gal13x20r.fnt gal7x11r.fnt gal7x11rI.fnt \
  534. X    gal7x11ru.fnt gal7x14r.fnt gal7x14rI.fnt gal7x14ru.fnt gal8x14b.fnt \
  535. X    gal8x14bI.fnt gal8x14bu.fnt gal8x16b.fnt gal8x16bI.fnt gal8x16bu.fnt \
  536. X    gal9x16r.fnt gal9x16rI.fnt gal9x16ru.fnt oldeng22x30r.fnt oldeng22x30rI.fnt \
  537. X    oldeng22x30ru.fnt sail6x8r.fnt sail6x8rI.fnt sail6x8ru.fnt sdh9x12b.fnt \
  538. X    sdh9x12bI.fnt sdh9x12bu.fnt ser7x12r.fnt ser7x12rI.fnt ser7x12ru.fnt \
  539. X    ser7x13r.fnt ser7x13rI.fnt ser7x13ru.fnt ser7x14r.fnt ser7x14rI.fnt \
  540. X    ser7x14ru.fnt ser8x16r.fnt ser8x16rI.fnt ser8x16ru.fnt ser9x18r.fnt \
  541. X    ser9x18rI.fnt ser9x18ru.fnt shadow38x40b.fnt shadow38x40bI.fnt \
  542. X    shadow38x40bu.fnt upside8x12.fnt
  543. X
  544. Xall:
  545. X
  546. Xinstall:    $(INSDIR)
  547. X#        Do not install the files if INSDIR is the current directory.
  548. X#        This stuff with ReMoveThisFile is to get around symbolic links.
  549. X    rm -rf ./ReMoveThisFile
  550. X    touch $(INSDIR)/ReMoveThisFile
  551. X    if [ ! -f ./ReMoveThisFile ]; then \
  552. X        ( list=`echo .mgrc *.fnt`;  cd $(INSDIR);  rm -f $$list ); \
  553. X        cp .mgrc *.fnt $(INSDIR); \
  554. X    else \
  555. X        echo ">>  $(INSDIR) == current directory; no files copied"; \
  556. X    fi
  557. X    rm -rf $(INSDIR)/ReMoveThisFile
  558. X
  559. X$(INSDIR):
  560. X    mkdir $@
  561. X
  562. Xclean clobber:
  563. X
  564. Xlist:
  565. X    @for i in Makefile .mgrc $(FONTS); do \
  566. X        echo "${START}/$$i"; \
  567. X    done    
  568. X
  569. Xcpio:
  570. X    make -s list | cpio -ocv > ${CPIO}
  571. END_OF_FILE
  572. # end of 'font-32/Makefile'
  573. fi
  574. if test -f 'font-32/Ucour7x14r' -a "${1}" != "-c" ; then 
  575.   echo shar: Will not clobber existing file \"'font-32/Ucour7x14r'\"
  576. else
  577. echo shar: Extracting \"'font-32/Ucour7x14r'\" \(2354 characters\)
  578. sed "s/^X//" >'font-32/Ucour7x14r' <<'END_OF_FILE'
  579. Xbegin 644 cour7x14r.fnt
  580. XM& <.!(8           '[^<.                                     
  581. XM                                                            
  582. XM                                                 '#APX<   #_
  583. XM^<.             .'#APX< /P    $    (0                       
  584. XM                                  '@!X                      
  585. XM            80P <            '#APX<   '[^<.             .'#A
  586. XMPX< ?@ @H4$&!@00(      "."#AP$>'/CAP     !P8X>'GC]^>[OCS-QCS
  587. XMG'QQ\>_]^_?OW?D$ (0 $ ,  , #@, @(P<        !        @0(,R   
  588. XM         '#APX<   #_^<.             .'#APX< /P @H4/)"000($  
  589. XM   "1&$2(,0((D2(  ! $"(D()(B1$BB1" A(@B1,B*(BBDHD2)$B0D$ (H 
  590. XM$ $  $ $ $ @(0$        !        @0(6R            '#APX<   '[
  591. XM^<.             .'#APX< ?@ @H^1)2 @@$5     $1*$0(400 D2(  " 
  592. XM"")"4)(") @@1" A0@V9(B*(B@$(D2(HB!$" )$ " $  $ $ $   0$     
  593. XM   !        @0(3<            '#APX<   #_^<.             .'#A
  594. XMPX< /P @ 40&A  @$."    $1" 0(D<6!$2(8,$ ! ).4)(")(D@1" A@@V9
  595. XM(B*(B@$(BBHH4"$" (   '%AXT<?&UCAX3$5-AS8;;'GV;OW9]WP@0( 2   
  596. XM         '#APX<   '[^<.             .'#APX< ?@ @ 4,!#  @$5" 
  597. XM   (1" @Q$29!#B88,(/@@124.(")X\@?" A0@J5(CR(\<$(BBH04$$! (  
  598. XM  F2),B$)F0@(2$*F2)DF,HA")$B)(DC  & 2            '#APX<   #_
  599. XM^<.             .'#APX< /P @ 4&"$H @$$/@#X (1"! )^"1"$1H  0 
  600. XM 0A2B)(")(DG1" A0@J5(B"(H"$(BC8H(($! (   'D2!$^$(D0@(4$*D2)$
  601. XMB(&!"(HJ&(A @ (              '#APX<   '[^<.             .'#A
  602. XMPX< ?@   ^!%D0 @$ "    01"" ($"1"$0(  (/@@!,^(H") @B1"$A(@B3
  603. XM(B"(D"$(A!0H(0$ @(   (D2!$@$(D0@(<$*D2)$B(!!"(HJ&%" @0( !@  
  604. XM         '#APX<   #_^<.             .'#APX< /P   41*40 0( "!
  605. XM@ 801"$2($B1"$008,$ ! ! B(HB1$@B1"$A(BB3)B"(DB$(A!1$(0D @(  
  606. XM (F2),B$)D0@(2$*D2)DF((A"804)%$0@0( "0           '#APX<   '[
  607. XM^<.             .'#APX< ?@ @ 4>"3H 0(   @ 8@./GQP.<."#C@8$" 
  608. XM" @CC?''C]P<[OC#-_CY''!QF\?'!!3N<?D 0(   '=APV<?&N[X(S?*NYQ8
  609. XM:</ QL049B'P@0( "0           '#APX<   #_^<.             .'#A
  610. XMPX< /P    $!@  (0   @  @             $! $  <                
  611. XM   @          '@1X _         @  (     ! "        "  80P "0  
  612. XM         '#APX<   '[^<.             .'#APX< ?@    $        !
  613. XM                 (                        !0                
  614. XM         @  (     ! "        $   0  "0           '#APX<   #_
  615. XM^<.             .'#APX< /P                                  
  616. XM                       ,                        '  !P     #@
  617. X5'        >      !@          
  618. Xend
  619. END_OF_FILE
  620. # end of 'font-32/Ucour7x14r'
  621. fi
  622. if test -f 'font-32/Ucour7x14rI' -a "${1}" != "-c" ; then 
  623.   echo shar: Will not clobber existing file \"'font-32/Ucour7x14rI'\"
  624. else
  625. echo shar: Extracting \"'font-32/Ucour7x14rI'\" \(2355 characters\)
  626. sed "s/^X//" >'font-32/Ucour7x14rI' <<'END_OF_FILE'
  627. Xbegin 644 cour7x14rI.fnt
  628. XM& <.!(8 __________X$!CQ_____________________@ '_____________
  629. XM____________________________________________________________
  630. XM____________________________________________P   _X\>/'C___\ 
  631. XM!CQ_____________QX\>/'C_OP'___[____WO_______________________
  632. XM__________________________________X?^'______________________
  633. XM____________GO/_C_______P   _X\>/'C___X$!CQ_____________QX\>
  634. XM/'C__@'?7K[Y^?OOW______]Q]\>/[AXP<>/_____^/G'AX8<"!A$0<,R.<,
  635. XM8X..#A "! @0(@;[_WO_[_S__S_\?S_?W/C________^________?OWS-___
  636. XM____P   _X\>/'C___\ !CQ_____________QX\>/'C_OP'?7KPV]OOOW[__
  637. XM___]NY[MWSOWW;MW__^_[]W;WVW=N[==N]_>W?=NS=UW==;7;MV[=O;[_W7_
  638. XM[_[__[_[_[_?WO[________^________?OWI-_______P   _X\>/'C___X$
  639. XM!CQ_____________QX\>/'C__@'?7!NVM_??[J_____[NU[OWKOO_;MW__]_
  640. XM]]V]KVW]V_??N]_>O?)FW=UW=?[W;MW7=^[]_V[_]_[__[_[_[___O[_____
  641. XM___^________?OWLC_______P   _X\>/'C___\ !CQ_____________QX\>
  642. XM/'C_OP'?_KOY>__?[Q]____[N]_OW;CI^[MWGS[_^_VQKVW]VW;?N]_>??)F
  643. XMW=UW=?[W==77K][]_W___XZ>'+C@Y*<>'L[JR>,GDDX8)D0(F"(/?OW_M___
  644. XM____P   _X\>/'C___X$!CQ_____________QX\>/'C__@'?_KS^\__?[J]_
  645. XM___WN]_?.[MF^\=GGSWP??NMKQW]V'#?@]_>O?5JW<-W#C[W==7OK[[^_W__
  646. XM__9MVS=[V9O?WM[U9MV;9S7>]V[=VW;<__Y_M_______P   _X\>/'C___\ 
  647. XM!CQ_____________QX\>/'C_OP'?_KY][7_?[[P?\'_WN]^_V!]N][N7__O_
  648. XM_O>M=VW]VW;8N]_>O?5JW=]W7][W=<G7WW[^_W___X;M^[![W;O?WK[U;MV[
  649. XM=WY^]W75YW>_?_W_________P   _X\>/'C___X$!CQ_____________QX\>
  650. XM/'C__@'__!^Z;O_?[_]____ON]]_W[]N][OW__WP??^S!W7]V_?=N][>W?=L
  651. XMW=]W;][W>^O7WO[_?W___W;M^[?[W;O?WC[U;MV[=W^^]W75YZ]_?OW_^?__
  652. XM____P   _X\>/'C___\ !CQ_____________QX\>/'C_OP'__KNUKO_OW_]^
  653. XM?_GON][MW[=N][OOGS[_^_^_=W7=N[?=N][>W==LV=]W;=[W>^N[WO;_?W__
  654. XM_W9MVS=[V;O?WM[U;MV;9WW>]GOKVZ[O?OW_]O______P   _X\>/'C___X$
  655. XM!CQ_____________QX\>/'C__@'?_KA]L7_OW___?_G?QP8./QCQ]\<?G[]_
  656. XM]_?<<@XX<"/C$0<\R <&XX^.9#@X^^L1C@;_OW___XB>/)C@Y1$'W,@U1&.G
  657. XMECP_.3OKF=X/?OW_]O______P   _X\>/'C___\ !CQ_____________QX\>
  658. XM/'C_OP'___[^?__WO___?__?_____________[^_[__C________________
  659. XM___?__________X?N'_ _________?__W_____^_]________]__GO/_]O__
  660. XM____P   _X\>/'C___X$!CQ_____________QX\>/'C__@'___[________^
  661. XM_________________W________________________^O________________
  662. XM_________?__W_____^_]________[___O__]O______P   _X\>/'C___\ 
  663. XM!CQ_____________QX\>/'C_OP'_________________________________
  664. XM_______________________S________________________X__^/_____\?
  665. X5X________A______^?______P   
  666. Xend
  667. END_OF_FILE
  668. # end of 'font-32/Ucour7x14rI'
  669. fi
  670. if test -f 'font-32/Ucour7x14ru' -a "${1}" != "-c" ; then 
  671.   echo shar: Will not clobber existing file \"'font-32/Ucour7x14ru'\"
  672. else
  673. echo shar: Extracting \"'font-32/Ucour7x14ru'\" \(2355 characters\)
  674. sed "s/^X//" >'font-32/Ucour7x14ru' <<'END_OF_FILE'
  675. Xbegin 644 cour7x14ru.fnt
  676. XM& <.!(8           '[^<.                                     
  677. XM                                                            
  678. XM                                                 '#APX<   #_
  679. XM^<.             .'#APX< /P    $    (0                       
  680. XM                                  '@!X                      
  681. XM            80P <            '#APX<   '[^<.             .'#A
  682. XMPX< ?@ @H4$&!@00(      "."#AP$>'/CAP     !P8X>'GC]^>[OCS-QCS
  683. XMG'QQ\>_]^_?OW?D$ (0 $ ,  , #@, @(P<        !        @0(,R   
  684. XM         '#APX<   #_^<.             .'#APX< /P @H4/)"000($  
  685. XM   "1&$2(,0((D2(  ! $"(D()(B1$BB1" A(@B1,B*(BBDHD2)$B0D$ (H 
  686. XM$ $  $ $ $ @(0$        !        @0(6R            '#APX<   '[
  687. XM^<.             .'#APX< ?@ @H^1)2 @@$5     $1*$0(400 D2(  " 
  688. XM"")"4)(") @@1" A0@V9(B*(B@$(D2(HB!$" )$ " $  $ $ $   0$     
  689. XM   !        @0(3<            '#APX<   #_^<.             .'#A
  690. XMPX< /P @ 40&A  @$."    $1" 0(D<6!$2(8,$ ! ).4)(")(D@1" A@@V9
  691. XM(B*(B@$(BBHH4"$" (   '%AXT<?&UCAX3$5-AS8;;'GV;OW9]WP@0( 2   
  692. XM         '#APX<   '[^<.             .'#APX< ?@ @ 4,!#  @$5" 
  693. XM   (1" @Q$29!#B88,(/@@124.(")X\@?" A0@J5(CR(\<$(BBH04$$! (  
  694. XM  F2),B$)F0@(2$*F2)DF,HA")$B)(DC  & 2            '#APX<   #_
  695. XM^<.             .'#APX< /P @ 4&"$H @$$/@#X (1"! )^"1"$1H  0 
  696. XM 0A2B)(")(DG1" A0@J5(B"(H"$(BC8H(($! (   'D2!$^$(D0@(4$*D2)$
  697. XMB(&!"(HJ&(A @ (              '#APX<   '[^<.             .'#A
  698. XMPX< ?@   ^!%D0 @$ "    01"" ($"1"$0(  (/@@!,^(H") @B1"$A(@B3
  699. XM(B"(D"$(A!0H(0$ @(   (D2!$@$(D0@(<$*D2)$B(!!"(HJ&%" @0( !@  
  700. XM         '#APX<   #_^<.             .'#APX< /P   41*40 0( "!
  701. XM@ 801"$2($B1"$008,$ ! ! B(HB1$@B1"$A(BB3)B"(DB$(A!1$(0D @(  
  702. XM (F2),B$)D0@(2$*D2)DF((A"804)%$0@0( "0           '#APX<   '[
  703. XM^<.             .'#APX< ?@ @ 4>"3H 0(   @ 8@./GQP.<."#C@8$" 
  704. XM" @CC?''C]P<[OC#-_CY''!QF\?'!!3N<?D 0(   '=APV<?&N[X(S?*NYQ8
  705. XM:</ QL049B'P@0( "0          ?OW[]^_?OW[_^_?OW[]^_?OW[]^_?OW[
  706. XM]^_?OP#]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?
  707. XMOW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]
  708. XM^_?OP    '#APX<   '[^<.             .'#APX< ?@    $        !
  709. XM                 (                        !0                
  710. XM         @  (     ! "        $   0  "0           '#APX<   #_
  711. XM^<.             .'#APX< /P                                  
  712. XM                       ,                        '  !P     #@
  713. X5'        >      !@          
  714. Xend
  715. END_OF_FILE
  716. # end of 'font-32/Ucour7x14ru'
  717. fi
  718. if test -f 'font-32/Ugal7x14r' -a "${1}" != "-c" ; then 
  719.   echo shar: Will not clobber existing file \"'font-32/Ugal7x14r'\"
  720. else
  721. echo shar: Extracting \"'font-32/Ugal7x14r'\" \(2353 characters\)
  722. sed "s/^X//" >'font-32/Ugal7x14r' <<'END_OF_FILE'
  723. Xbegin 644 gal7x14r.fnt
  724. XM& <.!(8           '[^<.                                     
  725. XM                                                            
  726. XM                                80P              '#APX<   #_
  727. XM^<.             .'#APX< /P A(2$,C 0(0      "              ! 
  728. XM(!P0                              'D#P  (                   
  729. XM            @0( <            '#APX<   '[^<.             .'#A
  730. XMPX< ?@ A(2.2D@00($     "."#AP$^./CAP  " $"(H(<''#Y\<1/CR)!"1
  731. XM''AQX<?(D4%$B?$$ 00 ( $  $ # $ @(@.        !        @0()2   
  732. XM         '#APX<   #_^<.             .'#APX< /P A(253$@@0(5  
  733. XM   $1&$2(,@1(D2(  $ "")$(2(DB! B1" B1!"9(D2)$B$(D4%$B!$" 0X 
  734. XM$ $  $ $ $   @"        !        @0(52            '#APX<   '[
  735. XM^<.             .'#APX< ?@ A(_4-#! @$."    $1* 0(4@0 D2(8,(/
  736. XMA )<42(D2! @1" BA!F9(D2)$@$(D4$HB!$" 1L "'%APT<$&EC@XD"-%AQ8
  737. XM:6''R)$B1(GP@0(2<            '#APX<   #_^<.             .'#A
  738. XMPX< /P @ 24""  @$."    (3" 0(D\0!$2(8,0  @1442($2! @1" C!!F5
  739. XM(D2)$0$(BDDH4"$! 1$  (F2),B?)F0@(H"*F2)DF9(A")$B1(@0@0( 2   
  740. XM         '#APX<   '[^<.             .'#APX< ?@ @ D."%( @$5/@
  741. XM#X (5" @Q$">!#AX  @  0A44>($3QXF?" BA!:5(GB)X,$(BBH0($$! 0  
  742. XM  D2!$B$(D0@(P"*D2)$B0(!")$J*$@C  & 2            '#APX<   #_
  743. XM^<.             .'#APX< /P @!^%%HP @$$"    09"! )$"1!$0(  0 
  744. XM @A<B1($2! B1" B1!:3(D")("$(BBHH(($ @0   'D2!$^$(D0@(P"*D2)$
  745. XMB0'!"(HJ$$A @0(              '#APX<   '[^<.             .'#A
  746. XMPX< ?@   D%&8@ @$ "    01"" )^B1"$0(  (/A ! ^1(D2! B1"$B1!"3
  747. XM(D")$B$(A"HH(0$ @0   (D2!$@$(D0@(H"*D2)$B0 A"(HJ*"B @0( !@  
  748. XM         '#APX<   #_^<.             .'#APX< /P   D5*8@ 0(  !
  749. XM@ 8@1"$"($B1"$2(8,$ "  DB1(DB! F1"$B)!"1(D")$B$(A!1$(0$ 00  
  750. XM (F2),B$)D0@(D"*D2)DF0(A"80J1#$ @0( "0           '#APX<   '[
  751. XM^<.             .'#APX< ?@ @ D.)G8 0(  !@ 8@./GQP$<."#AP8," 
  752. XM$ @8B>''#Y :1/C")]"1'$!Q$<$'!!1$(?$ 00   'EAPT<$&D0@(B"*D1Q8
  753. XM:0' QH041!'P@0( "0           '#APX<   #_^<.             .'#A
  754. XMPX< /P    $    (0   @                $! (                   
  755. XM   @          '@#P!^         @  (     ! "        !  @0( "0  
  756. XM         '#APX<   '[^<.             .'#APX< ?@             #
  757. XM                 8                         8                
  758. XM        (@ !(     ! "        *  80P "0           '#APX<   #_
  759. XM^<.             .'#APX< /P                                  
  760. XM                                                '   P     ! 
  761. X5"        $      !@          
  762. Xend
  763. END_OF_FILE
  764. # end of 'font-32/Ugal7x14r'
  765. fi
  766. if test -f 'font-32/Ugal7x14rI' -a "${1}" != "-c" ; then 
  767.   echo shar: Will not clobber existing file \"'font-32/Ugal7x14rI'\"
  768. else
  769. echo shar: Extracting \"'font-32/Ugal7x14rI'\" \(2354 characters\)
  770. sed "s/^X//" >'font-32/Ugal7x14rI' <<'END_OF_FILE'
  771. Xbegin 644 gal7x14rI.fnt
  772. XM& <.!(8 __________X$!CQ_____________________@ '_____________
  773. XM____________________________________________________________
  774. XM________________________________GO/_________P   _X\>/'C___\ 
  775. XM!CQ_____________QX\>/'C_OP'>WM[S<_OWO______]______________^_
  776. XMW^/O______________________________X;\/__W___________________
  777. XM____________?OW_C_______P   _X\>/'C___X$!CQ_____________QX\>
  778. XM/'C__@'>WMQM;?OOW[_____]Q]\>/[!QP<>/__]_[]W7WCXX\&#CNP<-V^]N
  779. XMXX>.'C@W;KZ[=@[[_OO_W_[__[_\_[_?W?Q________^________?OWVM___
  780. XM____P   _X\>/'C___\ !CQ_____________QX\>/'C_OP'>WMJL[??OWJ__
  781. XM___[NY[MWS?NW;MW__[_]]V[WMW;=^_=N]_=N^]FW;MV[=[W;KZ[=^[]_O'_
  782. XM[_[__[_[_[___?]________^________?OWJM_______P   _X\>/'C___X$
  783. XM!CQ_____________QX\>/'C__@'>W KR\^_?[Q]____[NU_OWK?O_;MWGSWP
  784. XM>_VCKMW;M^_?N]_=>^9FW;MV[?[W;K[7=^[]_N3_]XZ>/+C[Y:<?';]RZ>.G
  785. XMEIXX-V[=NW8/?OWMC_______P   _X\>/'C___\ !CQ_____________QX\>
  786. XM/'C_OP'?_MK]]__?[Q]____WL]_OW;#O^[MWGSO__?NKKMW[M^_?N]_<^^9J
  787. XMW;MV[O[W=;;7K][^_N[__W9MVS=@V9O?W7]U9MV;9FW>]V[=NW?O?OW_M___
  788. XM____P   _X\>/'C___X$!CQ_____________QX\>/'C__@'?_;Q]ZW_?[JP?
  789. XM\'_WJ]_?.[]A^\>'__?__O>KKAW[L.'9@]_=>^EJW8=V'S[W==7OW[[^_O__
  790. XM__;M^[=[W;O?W/]U;MV[=OW^]V[5U[?<__Y_M_______P   _X\>/'C___\ 
  791. XM!CQ_____________QX\>/'C_OP'?^!ZZ7/_?[[]____OF]^_V[]N^[OW__O_
  792. XM_?>C=NW[M^_=N]_=N^ELW;]VW][W==77WW[_?O___X;M^[![W;O?W/]U;MV[
  793. XM=OX^]W75[[>_?OW_________P   _X\>/'C___X$!CQ_____________QX\>
  794. XM/'C__@'__;ZYG?_?[_]____ON]]_V!=N][OW__WP>_^_!NW;M^_=N][=N^]L
  795. XMW;]V[=[W>]77WO[_?O___W;M^[?[W;O?W7]U;MV[=O_>]W75U]=_?OW_^?__
  796. XM____P   _X\>/'C___\ !CQ_____________QX\>/'C_OP'__;JUG?_OW__^
  797. XM?_G?N][]W[=N][MWGS[_]__;=NW;=^_9N][=V^]NW;]V[=[W>^N[WO[_OO__
  798. XM_W9MVS=[V;O?W;]U;MV;9OW>]GO5N\[_?OW_]O______P   _X\>/'C___X$
  799. XM!CQ_____________QX\>/'C__@'?_;QV8G_OW__^?_G?QP8./[CQ]\>/GS]_
  800. XM[_?G=AXX\&_ENP<]V"]NX[^.[C[X^^N[W@[_OO___X:>/+C[Y;O?W=]U;N.G
  801. XMEOX_.7OKN^X/?OW_]O______P   _X\>/'C___\ !CQ_____________QX\>
  802. XM/'C_OP'___[____WO___?________________[^_W___________________
  803. XM___?__________X?\/^!_________?__W_____^_]________^__?OW_]O__
  804. XM____P   _X\>/'C___X$!CQ_____________QX\>/'C__@'____________\
  805. XM_________________G_________________________G________________
  806. XM________W?_^W_____^_]________U__GO/_]O______P   _X\>/'C___\ 
  807. XM!CQ_____________QX\>/'C_OP'_________________________________
  808. XM________________________________________________X___/_____^_
  809. X5]________[______^?______P   
  810. Xend
  811. END_OF_FILE
  812. # end of 'font-32/Ugal7x14rI'
  813. fi
  814. if test -f 'font-32/Ugal7x14ru' -a "${1}" != "-c" ; then 
  815.   echo shar: Will not clobber existing file \"'font-32/Ugal7x14ru'\"
  816. else
  817. echo shar: Extracting \"'font-32/Ugal7x14ru'\" \(2354 characters\)
  818. sed "s/^X//" >'font-32/Ugal7x14ru' <<'END_OF_FILE'
  819. Xbegin 644 gal7x14ru.fnt
  820. XM& <.!(8           '[^<.                                     
  821. XM                                                            
  822. XM                                80P              '#APX<   #_
  823. XM^<.             .'#APX< /P A(2$,C 0(0      "              ! 
  824. XM(!P0                              'D#P  (                   
  825. XM            @0( <            '#APX<   '[^<.             .'#A
  826. XMPX< ?@ A(2.2D@00($     "."#AP$^./CAP  " $"(H(<''#Y\<1/CR)!"1
  827. XM''AQX<?(D4%$B?$$ 00 ( $  $ # $ @(@.        !        @0()2   
  828. XM         '#APX<   #_^<.             .'#APX< /P A(253$@@0(5  
  829. XM   $1&$2(,@1(D2(  $ "")$(2(DB! B1" B1!"9(D2)$B$(D4%$B!$" 0X 
  830. XM$ $  $ $ $   @"        !        @0(52            '#APX<   '[
  831. XM^<.             .'#APX< ?@ A(_4-#! @$."    $1* 0(4@0 D2(8,(/
  832. XMA )<42(D2! @1" BA!F9(D2)$@$(D4$HB!$" 1L "'%APT<$&EC@XD"-%AQ8
  833. XM:6''R)$B1(GP@0(2<            '#APX<   #_^<.             .'#A
  834. XMPX< /P @ 24""  @$."    (3" 0(D\0!$2(8,0  @1442($2! @1" C!!F5
  835. XM(D2)$0$(BDDH4"$! 1$  (F2),B?)F0@(H"*F2)DF9(A")$B1(@0@0( 2   
  836. XM         '#APX<   '[^<.             .'#APX< ?@ @ D."%( @$5/@
  837. XM#X (5" @Q$">!#AX  @  0A44>($3QXF?" BA!:5(GB)X,$(BBH0($$! 0  
  838. XM  D2!$B$(D0@(P"*D2)$B0(!")$J*$@C  & 2            '#APX<   #_
  839. XM^<.             .'#APX< /P @!^%%HP @$$"    09"! )$"1!$0(  0 
  840. XM @A<B1($2! B1" B1!:3(D")("$(BBHH(($ @0   'D2!$^$(D0@(P"*D2)$
  841. XMB0'!"(HJ$$A @0(              '#APX<   '[^<.             .'#A
  842. XMPX< ?@   D%&8@ @$ "    01"" )^B1"$0(  (/A ! ^1(D2! B1"$B1!"3
  843. XM(D")$B$(A"HH(0$ @0   (D2!$@$(D0@(H"*D2)$B0 A"(HJ*"B @0( !@  
  844. XM         '#APX<   #_^<.             .'#APX< /P   D5*8@ 0(  !
  845. XM@ 8@1"$"($B1"$2(8,$ "  DB1(DB! F1"$B)!"1(D")$B$(A!1$(0$ 00  
  846. XM (F2),B$)D0@(D"*D2)DF0(A"80J1#$ @0( "0           '#APX<   '[
  847. XM^<.             .'#APX< ?@ @ D.)G8 0(  !@ 8@./GQP$<."#AP8," 
  848. XM$ @8B>''#Y :1/C")]"1'$!Q$<$'!!1$(?$ 00   'EAPT<$&D0@(B"*D1Q8
  849. XM:0' QH041!'P@0( "0          _?OW[]^_?OW__^_?OW[]^_?OW[]^_?OW
  850. XM[]^_?P'[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_
  851. XM?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?_W[
  852. XM]^_?@    '#APX<   '[^<.             .'#APX< ?@             #
  853. XM                 8                         8                
  854. XM        (@ !(     ! "        *  80P "0           '#APX<   #_
  855. XM^<.             .'#APX< /P                                  
  856. XM                                                '   P     ! 
  857. X5"        $      !@          
  858. Xend
  859. END_OF_FILE
  860. # end of 'font-32/Ugal7x14ru'
  861. fi
  862. if test -f 'font-32/User7x14rI' -a "${1}" != "-c" ; then 
  863.   echo shar: Will not clobber existing file \"'font-32/User7x14rI'\"
  864. else
  865. echo shar: Extracting \"'font-32/User7x14rI'\" \(2354 characters\)
  866. sed "s/^X//" >'font-32/User7x14rI' <<'END_OF_FILE'
  867. Xbegin 644 ser7x14rI.fnt
  868. XM& <.!(8 __________X$!CQ_____________________@ '_____________
  869. XM____________________________________________________________
  870. XM____________________________________________P   _X\>/'C___\ 
  871. XM!CQ_____________QX\>/'C_OP'___[____[O____________W_Y________
  872. XM__________________________________X?^'______________________
  873. XM____________GO/_C_______P   _X\>/'C___X$!CQ_____________QX\>
  874. XM/'C__@'?7U[Y^?OWW[_____]Q]\>/OAWP<>/_____^/CWA\H<"!R$0>$R.<,
  875. XM<8/&#B "! @0(@;[_W__W_S__S_\_Y_?W/C________^________?OW_M___
  876. XM____P   _X\>/'C___\ !CQ_____________QX\>/'C_OP'?7UPV]OOO[[__
  877. XM___]NY[MWOOWW;MW__^_[]W9WV[-N[=LN]_NW?=N[-VS=<;7;MV[=N[[_WO_
  878. XMW_[__[_[_]_?WO[________^________?OWS-_______P   _X\>/'C___X$
  879. XM!CQ_____________QX\>/'C__@'?7 NVM_?O[J_____[NU[OW?OO_;MW__]_
  880. XM]]V]KVWMV_?>N]_NO?)FWMU[=>[W;MW7=][]_W7_[_[__[_[_]___O[_____
  881. XM___^________?OWI#_______P   _X\>/'C___\ !CQ_____________QX\>
  882. XM/'C_OP'?_KOY>^_?]Q]____[N]_OO7CI^[MWGS[_^_VQKVW]V_??N]_N??)F
  883. XMWMU[=G[W==77K][]_V[_]XZ>'+C@\L<?'L[RZ>,GDDX8,D0(F"(/?OWLM___
  884. XM____P   _X\>/'C___X$!CQ_____________QX\>/'C__@'?_KS^\__?]U]_
  885. XM___WN]_?.WMF^\=GGSWP??NMKPW]V'#?@]_NO?5JWL-[#Y[W==7OK[[^_W__
  886. XM__9MVS=[[=O?WM[U=MF;9RW>^V[=VW;<__Y_M_______P   _X\>/'C___\ 
  887. XM!CQ_____________QX\>/'C_OP'?^!Y][7_?]NP?\'_WN]^_VW]N][N7__O_
  888. XM_O>M=W7]V_?8N]_NO?5JWM][7\[W=<G7W[[^_W___X;M^[![[=O?WK[U=MV[
  889. XM=WY^^W75Y[>_?_W_________P   _X\>/'C___X$!CQ_____________QX\>
  890. XM/'C__@'__7^Z;O_?]_]____ON]]_V#]N][OW__WP??^S!W7MV_?>N][NW?=L
  891. XMWM][;>[W>^O7WW[_?W___W;M^[?[X]O?WC[U=MV[=W^^^W75YZ]_?OW_^?__
  892. XM____P   _X\>/'C___\ !CQ_____________QX\>/'C_OP'__7NUKO_O[_]^
  893. XM?_GON][MWW=N][OOGS[_^_^_=W3=N[?,N][NW==LS=\W=.[W>^N[WW;_?W__
  894. XM_W9LVS=[W]O?WM[U=LV;9WW>^WOKV\[O?OW_]O______P   _X\>/'C___X$
  895. XM!CQ_____________QX\>/'C__@'?_7A]L7_O[___?_G?QP8./WCQ]\?OG[]_
  896. XM]_?<<@XX<"/B$0<<R <&XX^.91QX^^L1C@;_OW___XJ>/)CQX9D'W,@U9F.G
  897. XMECP_/+OKF=X/?OW_]O______P   _X\>/'C___\ !CQ_____________QX\>
  898. XM/'C_OP'___[^?__WW___?__?__________^?_[^_[__C________________
  899. XM___?__________[_OW_ ________WO_^W_____^_]________]__?OW_]O__
  900. XM____P   _X\>/'C___X$!CQ_____________QX\>/'C__@'___[____[O__^
  901. XM_________________W_________________________O__________X?^'__
  902. XM________WO__/_____^_]________[__GO/_]O______P   _X\>/'C___\ 
  903. XM!CQ_____________QX\>/'C_OP'_________________________________
  904. XM_______________________S________________________X?________\?
  905. X5X________G______^?______P   
  906. Xend
  907. END_OF_FILE
  908. # end of 'font-32/User7x14rI'
  909. fi
  910. if test -f 'font-32/User7x14ru' -a "${1}" != "-c" ; then 
  911.   echo shar: Will not clobber existing file \"'font-32/User7x14ru'\"
  912. else
  913. echo shar: Extracting \"'font-32/User7x14ru'\" \(2354 characters\)
  914. sed "s/^X//" >'font-32/User7x14ru' <<'END_OF_FILE'
  915. Xbegin 644 ser7x14ru.fnt
  916. XM& <.!(8           '[^<.                                     
  917. XM                                                            
  918. XM                                                 '#APX<   #_
  919. XM^<.             .'#APX< /P    $    $0            ( &        
  920. XM                                  '@!X                      
  921. XM            80P <            '#APX<   '[^<.             .'#A
  922. XMPX< ?@ @H*$&!@0(($     "."#AP0>(/CAP     !P<(>#7C]^-[OA[-QCS
  923. XMCGPY\=_]^_?OW?D$ (  ( ,  , # & @(P<        !        @0( 2   
  924. XM         '#APX<   #_^<.             .'#APX< /P @H*/)"000$$  
  925. XM   "1&$2(00((D2(  ! $"(F()$R1$B31" 1(@B1$R),BCDHD2)$B1$$ (0 
  926. XM( $  $ $ " @(0$        !        @0(,R            '#APX<   '[
  927. XM^<.             .'#APX< ?@ @H_1)2 @0$5     $1*$0(@00 D2(  " 
  928. XM"")"4)(2) @A1" 10@V9(2*$BA$(D2(HB"$" (H $ $  $ $ "   0$     
  929. XM   !        @0(6\            '#APX<   #_^<.             .'#A
  930. XMPX< /P @ 40&A! @"."    $1" 00H<6!$2(8,$ ! ).4)(") @@1" 1@@V9
  931. XM(2*$B8$(BBHH4"$" )$ "'%AXT<?#3C@X3$-%AS8;;'GS;OW9]WP@0(32   
  932. XM         '#APX<   '[^<.             .'#APX< ?@ @ 4,!#  @"*" 
  933. XM   (1" @Q(29!#B88,(/@@124/(")X\@?" 10@J5(3R$\&$(BBH04$$! (  
  934. XM  F2),B$$B0@(2$*B29DF-(A!)$B)(DC  & 2            '#APX<   #_
  935. XM^<.             .'#APX< /P @!^&"$H @"1/@#X (1"! )("1"$1H  0 
  936. XM 0A2B(H") @G1" 10@J5(2"$H#$(BC8H($$! (   'D2!$^$$B0@(4$*B2)$
  937. XMB(&!!(HJ&$A @ (              '#APX<   '[^<.             .'#A
  938. XMPX< ?@   H!%D0 @" "    01"" )\"1"$0(  (/@@!,^(H2) @A1"$1(@B3
  939. XM(2"$DA$(A!0H(($ @(   (D2!$@$'"0@(<$*B2)$B(!!!(HJ&%" @0( !@  
  940. XM         '#APX<   #_^<.             .'#APX< /P   H1*40 0$ "!
  941. XM@ 801"$2((B1"$008,$ ! ! B(LB1$@S1"$1(BB3,B#(BQ$(A!1$((D @(  
  942. XM (F3),B$("0@(2$*B3)DF((A!(04)#$0@0( "0           '#APX<   '[
  943. XM^<.             .'#APX< ?@ @ H>"3H 0$   @ 8@./GQP(<."#@08$" 
  944. XM" @CC?''C]P=[OCC-_CY''!QFN.'!!3N<?D 0(   '5APV<.'F;X(S?*F9Q8
  945. XM:</ PT049B'P@0( "0          ?OW[]^_?OW[_^_?OW[]^_?OW[]^_?OW[
  946. XM]^_?OP#]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?
  947. XMOW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]^_?OW[]
  948. XM^_?OP    '#APX<   '[^<.             .'#APX< ?@    $    $0  !
  949. XM                 (                         0          '@!X  
  950. XM        (0  P     ! "        $  80P "0           '#APX<   #_
  951. XM^<.             .'#APX< /P                                  
  952. XM                       ,                        '@        #@
  953. X5'        8      !@          
  954. Xend
  955. END_OF_FILE
  956. # end of 'font-32/User7x14ru'
  957. fi
  958. if test -f 'icon/Makefile' -a "${1}" != "-c" ; then 
  959.   echo shar: Will not clobber existing file \"'icon/Makefile'\"
  960. else
  961. echo shar: Extracting \"'icon/Makefile'\" \(2545 characters\)
  962. sed "s/^X//" >'icon/Makefile' <<'END_OF_FILE'
  963. X#                        Copyright (c) 1988 Bellcore
  964. X#                            All Rights Reserved
  965. X#       Permission is granted to copy or use this program, EXCEPT that it
  966. X#       may not be sold for profit, the copyright notice must be reproduced
  967. X#       on copies, and credit should be given to Bellcore where it is due.
  968. X#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  969. X
  970. X#    $Header: Makefile,v 4.7 88/08/17 09:01:30 sau Exp $
  971. X#    $Source: /tmp/mgrsrc/icon/RCS/Makefile,v $
  972. X
  973. X#    icons for mgr
  974. XINSROOT = .
  975. XINSDIR=$(INSROOT)/icon
  976. XSTART=.
  977. XSUBDIRS=eye grey mouse
  978. XCPIO=icons.cpio
  979. XICONS= \
  980. X    apple arrdown arrleft arrne arrright arrup \
  981. X    bandaid_bad bignot biplane blank block blockmask \
  982. X    bomb cherries cloudy copter copy cpath \
  983. X    cube1 cube2 cube3 cube4 cube5 dither \
  984. X    dkong1 dng dnguy document easel editor \
  985. X    editot eye_bld1 eye_bld2 eye_bld3 eyefrontmask eyesidemask \
  986. X    eyesmaller file-cabinet file_open file_shut file_shutb floppy \
  987. X    floppy1 folder foldercopy folderin folderkey folderlocked \
  988. X    folderout foo forty_five fourarrows frog1 frog2 \
  989. X    gcan_open gcan_shut ghost hammer hand hand_mouse \
  990. X    interdict letter letters martini mbox-opening mbox1 \
  991. X    mbox2 mbox_closed mbox_full mbox_open mbox_zip mickface \
  992. X    movie movie1 movie2 msg_board msg_none msg_note \
  993. X    msg_read nobozos1 nose noseback nosefront nosmoking \
  994. X    null partlycloudy partlysunny ptr_laser ptr_laseron ptr_tj \
  995. X    rainy reel1 reel2 reel3 reel4 screwdriver \
  996. X    scube1 scube2 scube3 scube4 scube5 slider_h \
  997. X    small_stop smalldriver smallspiff1 smallspiff2 smeye1 smeye2 \
  998. X    smeye3 smeye4 smileheart smouse0 smouse1 smouse2 \
  999. X    smouse3 sphere stopsign stormy sun_mouse sunny \
  1000. X    thinker tombstone tty umbrella verysunny veye1 \
  1001. X    veye2 veye3 weird_thing yieldsign zip
  1002. X
  1003. Xall:
  1004. X
  1005. Xinstall:    $(INSDIR)
  1006. X#        Do not install the files if INSDIR is the current directory.
  1007. X#        This stuff with ReMoveThisFile is to get around symbolic links.
  1008. X    rm -rf ./ReMoveThisFile
  1009. X    touch $(INSDIR)/ReMoveThisFile
  1010. X    if [ ! -f ./ReMoveThisFile ]; then \
  1011. X        ( list=`find [a-z0-9]* -print`; \
  1012. X            cd $(INSDIR);  rm -f $$list ); \
  1013. X        find [a-z0-9]* -print  |  cpio -pdumv $(INSDIR); \
  1014. X    else \
  1015. X        echo ">>  $(INSDIR) == current directory; no files copied"; \
  1016. X    fi
  1017. X    rm -rf $(INSDIR)/ReMoveThisFile
  1018. X
  1019. X$(INSDIR):
  1020. X    mkdir $@
  1021. X
  1022. Xclean clobber:
  1023. X
  1024. Xlist:
  1025. X    @for i in Makefile README $(ICONS); do \
  1026. X        echo "$(START)/$$i"; \
  1027. X    done
  1028. X    @for i in ${SUBDIRS}; do \
  1029. X        echo "${START}/$$i";\
  1030. X        if [ -d $$i ]; then \
  1031. X             cd $$i; $(MAKE) START=${START}/$$i list; cd ..;\
  1032. X        fi \
  1033. X    done    
  1034. X
  1035. Xcpio:
  1036. X    make -s list | cpio -ocv > $(CPIO)
  1037. END_OF_FILE
  1038. # end of 'icon/Makefile'
  1039. fi
  1040. if test -f 'misc/lasergrafix.c' -a "${1}" != "-c" ; then 
  1041.   echo shar: Will not clobber existing file \"'misc/lasergrafix.c'\"
  1042. else
  1043. echo shar: Extracting \"'misc/lasergrafix.c'\" \(2470 characters\)
  1044. sed "s/^X//" >'misc/lasergrafix.c' <<'END_OF_FILE'
  1045. X/*                        Copyright (c) 1988 Bellcore
  1046. X *                            All Rights Reserved
  1047. X *       Permission is granted to copy or use this program, EXCEPT that it
  1048. X *       may not be sold for profit, the copyright notice must be reproduced
  1049. X *       on copies, and credit should be given to Bellcore where it is due.
  1050. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1051. X */
  1052. X/* convert a mgr window dump to lasergrafix format version 4 */
  1053. X
  1054. X/*    $Header: lasergrafix.c,v 4.1 88/08/24 15:54:08 bianchi Exp $
  1055. X    $Source: /tmp/mgrsrc/misc/RCS/lasergrafix.c,v $
  1056. X*/
  1057. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/misc/RCS/lasergrafix.c,v $$Revision: 4.1 $";
  1058. X
  1059. X#include <stdio.h>
  1060. X
  1061. X#define WIDE    (30*85)                /* pixels/page */
  1062. X#define HIGH    (30*115)            /* pixels/page */
  1063. X#define HEX(x)    ((x)<10?(x)+'0':(x)-10+'A')
  1064. X
  1065. Xmain(argc,argv)
  1066. Xint argc;
  1067. Xchar **argv;
  1068. X   {
  1069. X   register int c,count=0, byte;
  1070. X   int w,h,d,bytesperline;
  1071. X   int scale = 2;
  1072. X
  1073. X   /* read in bitmap header */
  1074. X
  1075. X   if (!bitmaphead( stdin, &w, &h, &d, &bytesperline )) {
  1076. X      fprintf(stderr,"%s: invalid bitmap format \n",*argv);
  1077. X      exit(1);
  1078. X      }
  1079. X
  1080. X   printf("\r^PY^-\r");                /* new page */
  1081. X   printf("^PY^,");                /* new page */
  1082. X   printf("^IJ%.5d^IT%.5d",
  1083. X         (HIGH-h*scale)/2,(WIDE-w*scale)/2);    /* center picture */
  1084. X   printf("^IP0%d0%d",scale,scale);        /* expand by 2x2 */
  1085. X   printf("^P%.4d", bytesperline*8);        /* plot "w" dots/row */
  1086. X
  1087. X   while((c=getchar()) != EOF) {
  1088. X      if (count==0) {
  1089. X          count=1;
  1090. X          byte=c;
  1091. X          }
  1092. X      else if (c==byte && count<999) {
  1093. X          count++;
  1094. X          }
  1095. X      else {
  1096. X          switch(count) {
  1097. X             case 3:  putchar(HEX(byte>>4)), putchar(HEX(byte&017));
  1098. X             case 2:  putchar(HEX(byte>>4)), putchar(HEX(byte&017));
  1099. X             case 1:  putchar(HEX(byte>>4)), putchar(HEX(byte&017));
  1100. X                      break;
  1101. X             default: printf("^C%03d%c%c",count,HEX(byte>>4),HEX(byte&017));
  1102. X             }
  1103. X          count=1;
  1104. X          byte=c;
  1105. X          }
  1106. X      }
  1107. X   /* flush the rest of the picture */
  1108. X
  1109. X   switch(count) {
  1110. X      case 3:  putchar(HEX(byte>>4)), putchar(HEX(byte&017));
  1111. X      case 2:  putchar(HEX(byte>>4)), putchar(HEX(byte&017));
  1112. X      case 1:  putchar(HEX(byte>>4)), putchar(HEX(byte&017));
  1113. X               break;
  1114. X      default: printf("^C%03d%c%c",count,HEX(byte>>4),HEX(byte&017));
  1115. X      }
  1116. X
  1117. X   printf("^G^,");            /* print the page */
  1118. X   printf("\r^PY^-\r");            /* new page */
  1119. X   exit(0);
  1120. X   }
  1121. END_OF_FILE
  1122. # end of 'misc/lasergrafix.c'
  1123. fi
  1124. if test -f 'src/intersect.c' -a "${1}" != "-c" ; then 
  1125.   echo shar: Will not clobber existing file \"'src/intersect.c'\"
  1126. else
  1127. echo shar: Extracting \"'src/intersect.c'\" \(2432 characters\)
  1128. sed "s/^X//" >'src/intersect.c' <<'END_OF_FILE'
  1129. X/*                        Copyright (c) 1987 Bellcore
  1130. X *                            All Rights Reserved
  1131. X *       Permission is granted to copy or use this program, EXCEPT that it
  1132. X *       may not be sold for profit, the copyright notice must be reproduced
  1133. X *       on copies, and credit should be given to Bellcore where it is due.
  1134. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1135. X */
  1136. X/*    $Header: intersect.c,v 4.1 88/06/21 13:34:02 bianchi Exp $
  1137. X    $Source: /tmp/mgrsrc/src/RCS/intersect.c,v $
  1138. X*/
  1139. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/src/RCS/intersect.c,v $$Revision: 4.1 $";
  1140. X
  1141. X/*
  1142. X *******************************************************************************
  1143. X *
  1144. X *    see if two windows intersect
  1145. X */
  1146. X
  1147. X#include "bitmap.h"
  1148. X#include <stdio.h>
  1149. X#include "defs.h"
  1150. X
  1151. X#define WIDE(w)    w->BIT_WIDE(border)
  1152. X#define HIGH(w)    w->BIT_HIGH(border)
  1153. X
  1154. Xintersect(win1,win2)
  1155. Xregister WINDOW *win1, *win2;
  1156. X{
  1157. X    int result;
  1158. X    result = (
  1159. X        win1->x0 + WIDE(win1) < win2->x0 ||
  1160. X        win2->x0 + WIDE(win2) < win1->x0 ||
  1161. X        win1->y0 + HIGH(win1) < win2->y0 ||
  1162. X        win2->y0 + HIGH(win2) < win1->y0
  1163. X        ?0:1); 
  1164. X        return(result);
  1165. X}
  1166. X
  1167. X/*
  1168. X *******************************************************************************
  1169. X *
  1170. X *    see if any window intersects any other
  1171. X */
  1172. X
  1173. Xint
  1174. Xalone(check)
  1175. Xregister WINDOW *check;
  1176. X{
  1177. X    register WINDOW *win;
  1178. X        for(win=active;win != (WINDOW *) 0;win=win->next)
  1179. X          if (check!=win && intersect(check,win))
  1180. X             return(0);
  1181. X        return(1);
  1182. X}
  1183. X
  1184. X/***********************************************************************
  1185. X *    see if mouse is in window 
  1186. X */
  1187. X
  1188. Xmousein(x,y,win,how)
  1189. Xregister int x,y;
  1190. Xregister WINDOW *win;
  1191. Xint how;        /* how:  0-> intersect   1-> point */
  1192. X{
  1193. X   if (how == 0)
  1194. X    return(
  1195. X        x+16 < W(x0) || x > W(x0) + WIDE(win) ||
  1196. X            y+16 < W(y0) || y > W(y0) + HIGH(win)
  1197. X            ?0:1);
  1198. X   else
  1199. X    return(
  1200. X        x < W(x0) || x > W(x0) + WIDE(win) ||
  1201. X            y < W(y0) || y > W(y0) + HIGH(win)
  1202. X            ?0:1);
  1203. X}
  1204. X
  1205. X/**********************************************************************
  1206. X *      see if mouse is in text region
  1207. X */
  1208. X
  1209. Xint
  1210. Xin_text(x,y,win)
  1211. Xregister int x,y;
  1212. Xregister WINDOW *win;
  1213. X   {
  1214. X   if (W(text.wide)) {
  1215. X      int x0 = W(x0)+W(text.x);
  1216. X      int y0 = W(y0)+W(text.y);
  1217. X      return(
  1218. X        x < x0 || x > x0 + W(text.wide) ||
  1219. X            y < y0 || y > y0 + W(text.high)
  1220. X            ?0:1);
  1221. X      }
  1222. X   else
  1223. X      return(mousein(x,y,win,1));
  1224. X   }
  1225. END_OF_FILE
  1226. # end of 'src/intersect.c'
  1227. fi
  1228. if test -f 'src/set_mode.c' -a "${1}" != "-c" ; then 
  1229.   echo shar: Will not clobber existing file \"'src/set_mode.c'\"
  1230. else
  1231. echo shar: Extracting \"'src/set_mode.c'\" \(2478 characters\)
  1232. sed "s/^X//" >'src/set_mode.c' <<'END_OF_FILE'
  1233. X/*                        Copyright (c) 1987 Bellcore
  1234. X *                            All Rights Reserved
  1235. X *       Permission is granted to copy or use this program, EXCEPT that it
  1236. X *       may not be sold for profit, the copyright notice must be reproduced
  1237. X *       on copies, and credit should be given to Bellcore where it is due.
  1238. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1239. X */
  1240. X/*    $Header: set_mode.c,v 4.1 88/06/21 13:34:36 bianchi Exp $
  1241. X    $Source: /tmp/mgrsrc/src/RCS/set_mode.c,v $
  1242. X*/
  1243. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/src/RCS/set_mode.c,v $$Revision: 4.1 $";
  1244. X
  1245. X/* muck with tty modes */
  1246. X
  1247. X#include <sgtty.h>
  1248. X
  1249. X/* set up tty input modes */
  1250. X
  1251. Xint set_tty(file)
  1252. Xint file;                /* file descriptor */
  1253. X   {
  1254. X   set_mode(file,RAW,ECHO,0);
  1255. X   }
  1256. X
  1257. X/* setup mouse input modes */
  1258. X
  1259. Xint set_mouseio(file)
  1260. Xint file;                /* file descriptor */
  1261. X   {
  1262. X   set_mode(file,RAW,ECHO,B1200);
  1263. X   return(ioctl(file,TIOCEXCL,0));
  1264. X   }
  1265. X
  1266. X/* reset input tty modes */
  1267. X
  1268. Xint reset_tty(file)
  1269. Xint file;                /* file descriptor */
  1270. X   {
  1271. X   set_mode(file,ECHO,RAW,0);
  1272. X   }
  1273. X
  1274. X/*
  1275. X *******************************************************************************
  1276. X *
  1277. X *    Set the terminal mode 
  1278. X */
  1279. X
  1280. Xstatic set_mode(file,on,off,speed)
  1281. Xint file;        /* file pointer */
  1282. Xint on;            /* flags to turn on */
  1283. Xint off;        /* flags to turn off */
  1284. X{
  1285. X    struct sgttyb buff;
  1286. X
  1287. X    gtty(file,&buff);
  1288. X    buff.sg_flags |= on;
  1289. X    buff.sg_flags &= ~off;
  1290. X    if (speed) 
  1291. X       buff.sg_ispeed = buff.sg_ospeed = speed;
  1292. X    stty(file,&buff);
  1293. X        return(0);
  1294. X}
  1295. X
  1296. X/* void tty association */
  1297. X
  1298. Xvoid_tty()
  1299. X   {
  1300. X   int tty;
  1301. X
  1302. X   tty = open("/dev/tty",2);
  1303. X   ioctl(tty,TIOCNOTTY,0);
  1304. X   close(tty);
  1305. X   }
  1306. X
  1307. X/*********************************************************************/
  1308. X
  1309. X/* save tty modes for getshell */
  1310. X
  1311. X/* place to save tty modes */
  1312. X
  1313. Xstatic int t_ldisc;
  1314. Xstatic struct sgttyb t_sgttyb;
  1315. Xstatic struct tchars t_tchars;
  1316. Xstatic struct ltchars t_ltchars;
  1317. Xstatic int t_lflags;
  1318. X
  1319. Xsave_modes(fd)
  1320. Xint fd;            /* fd to save tty modes from */
  1321. X    {
  1322. X   ioctl(fd,TIOCGETD,&t_ldisc);
  1323. X   ioctl(fd,TIOCGETP,&t_sgttyb);
  1324. X   ioctl(fd,TIOCGETC,&t_tchars);
  1325. X   ioctl(fd,TIOCGLTC,&t_ltchars);
  1326. X   ioctl(fd,TIOCLGET,&t_lflags);
  1327. X    }
  1328. X
  1329. Xrestore_modes(fd)
  1330. Xint fd;
  1331. X    {
  1332. X   ioctl(fd,TIOCSETD,&t_ldisc);
  1333. X   ioctl(fd,TIOCSETP,&t_sgttyb);
  1334. X   ioctl(fd,TIOCSETC,&t_tchars);
  1335. X   ioctl(fd,TIOCSLTC,&t_ltchars);
  1336. X   ioctl(fd,TIOCLSET,&t_lflags);
  1337. X    }
  1338. X
  1339. Xadjust_mode(disc,flags)
  1340. Xint flags;        /* flags */
  1341. Xint disc;        /* line disc */
  1342. X    {
  1343. X   t_ldisc=disc;
  1344. X   t_sgttyb.sg_flags = flags;
  1345. X    }
  1346. END_OF_FILE
  1347. # end of 'src/set_mode.c'
  1348. fi
  1349. echo shar: End of archive 11 \(of 61\).
  1350. cp /dev/null ark11isdone
  1351. MISSING=""
  1352. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \
  1353.     21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 \
  1354.     38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 \
  1355.     55 56 57 58 59 60 61 ; do
  1356.     if test ! -f ark${I}isdone ; then
  1357.     MISSING="${MISSING} ${I}"
  1358.     fi
  1359. done
  1360. if test "${MISSING}" = "" ; then
  1361.     echo You have unpacked all 61 archives.
  1362.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1363. else
  1364.     echo You still need to unpack the following archives:
  1365.     echo "        " ${MISSING}
  1366. fi
  1367. ##  End of shell archive.
  1368. exit 0
  1369.