home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume17 / mgr / part07 < prev    next >
Encoding:
Internet Message Format  |  1989-01-18  |  53.0 KB

  1. Subject:  v17i008:  MGR, Bellcore window manager, Part07/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 8
  7. Archive-name: mgr/part07
  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 7 (of 61)."
  19. # Contents:  demo/misc/oclose.c demo/misc/set_emacs.c
  20. #   demo/misc/set_termcap.c demo/msg/do.h demo/plot/Makefile
  21. #   demo/tests/Makefile demo/tests/many.c doc/c_menu.1 doc/ether.1
  22. #   doc/mgrmsgs.1 doc/usrman/abstract font-16/Ucour6x12r
  23. #   font-16/Ucour6x12rI font-16/Ucour6x12ru font-16/Uupside8x12
  24. #   font-32/Ucour6x12r font-32/Ucour6x12rI font-32/Ucour6x12ru
  25. #   font-32/Uupside8x12 misc/Makefile src/blit/README src/border.c
  26. #   src/compile_font.c src/debug_flags.c src/erase_win.c src/font.h
  27. # Wrapped by rsalz@papaya.bbn.com on Thu Nov 17 21:05:02 1988
  28. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  29. if test -f 'demo/misc/oclose.c' -a "${1}" != "-c" ; then 
  30.   echo shar: Will not clobber existing file \"'demo/misc/oclose.c'\"
  31. else
  32. echo shar: Extracting \"'demo/misc/oclose.c'\" \(1683 characters\)
  33. sed "s/^X//" >'demo/misc/oclose.c' <<'END_OF_FILE'
  34. X/*                        Copyright (c) 1987 Bellcore
  35. X *                            All Rights Reserved
  36. X *       Permission is granted to copy or use this program, EXCEPT that it
  37. X *       may not be sold for profit, the copyright notice must be reproduced
  38. X *       on copies, and credit should be given to Bellcore where it is due.
  39. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  40. X */
  41. X/*    $Header: oclose.c,v 4.2 88/06/22 14:37:55 bianchi Exp $
  42. X    $Source: /tmp/mgrsrc/demo/misc/RCS/oclose.c,v $
  43. X*/
  44. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/demo/misc/RCS/oclose.c,v $$Revision: 4.2 $";
  45. X
  46. X/* close a window */
  47. X
  48. X#include <signal.h>
  49. X#include "term.h"
  50. X
  51. X#define POS(x)        800+(x)/18        /* where to put window */
  52. X#define Max(x,y)    ((x)>(y)?(x):(y))
  53. X
  54. Xmain(argc,argv)
  55. Xint argc;
  56. Xchar **argv;
  57. X   {
  58. X   char host[16];
  59. X   char *text;
  60. X   char line[2];
  61. X   int x,y,wide,high;
  62. X   int clean();
  63. X   int font;
  64. X
  65. X   /* get icon text */
  66. X
  67. X   if (argc>1) 
  68. X      text = argv[1];
  69. X   else {
  70. X      gethostname(host,sizeof(host));
  71. X      text = host;
  72. X      }
  73. X
  74. X   m_setup(0);
  75. X   m_push(P_ALL);    
  76. X   signal(SIGINT,clean);
  77. X   signal(SIGTERM,clean);
  78. X   m_setevent(ACTIVATED,"A\\n");
  79. X   m_setevent(REDRAW,"R\\n"); 
  80. X
  81. X   get_size(&x,&y,&wide,&high);
  82. X   if (argc>2 && (font=atoi(argv[2])) > 0)
  83. X      m_font(font);
  84. X   m_sizeall(x,POS(y+high/2),Max(strlen(text),5),1);
  85. X   m_setmode(M_NOWRAP);
  86. X   m_setmode(M_BACKGROUND);
  87. X   m_clear();
  88. X   m_printstr(text);
  89. X   m_clearmode(M_ACTIVATE);
  90. X   m_flush();
  91. X
  92. X   while(1) {
  93. X      read(0,line,sizeof(line));
  94. X      m_clear();
  95. X      m_printstr(text);
  96. X      m_flush();
  97. X      if (*line == 'A')
  98. X         clean();
  99. X      }
  100. X   }
  101. Xclean()
  102. X   {
  103. X   m_pop(0);
  104. X   exit(1);
  105. X   }
  106. END_OF_FILE
  107. # end of 'demo/misc/oclose.c'
  108. fi
  109. if test -f 'demo/misc/set_emacs.c' -a "${1}" != "-c" ; then 
  110.   echo shar: Will not clobber existing file \"'demo/misc/set_emacs.c'\"
  111. else
  112. echo shar: Extracting \"'demo/misc/set_emacs.c'\" \(1780 characters\)
  113. sed "s/^X//" >'demo/misc/set_emacs.c' <<'END_OF_FILE'
  114. X/*                        Copyright (c) 1987 Bellcore
  115. X *                            All Rights Reserved
  116. X *       Permission is granted to copy or use this program, EXCEPT that it
  117. X *       may not be sold for profit, the copyright notice must be reproduced
  118. X *       on copies, and credit should be given to Bellcore where it is due.
  119. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  120. X */
  121. X/*    $Header: set_emacs.c,v 4.3 88/06/23 09:40:47 bianchi Exp $
  122. X    $Source: /tmp/mgrsrc/demo/misc/RCS/set_emacs.c,v $
  123. X*/
  124. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/demo/misc/RCS/set_emacs.c,v $$Revision: 4.3 $";
  125. X
  126. X/* print the current termcap entry on stdout (for EMACS) */
  127. X
  128. X#include <stdio.h>
  129. X#include "window.h"
  130. X
  131. X#define ENTRY    "\'px|mgr|mgr teminal emulator:am:li#%d:co#%d:bs:cl=^L:ce=\\Ec:cd=\\EC:cm=\\E%%r%%d,%%dM:cs=\\E%%d,%%d%t:ve=\\Et:al=\\Ea:AL=\\E%%da:DL=\\E%%dd:dl=\\Ed:ic=\\EA:dc=\\EE:ta=^I:up=\\Eu:do=\\Ef:nd=\\Er:ku=\\E[A:kd=\\E[B:kr=\\E[C:kl=\\E[D:so=\\Ei:se=\\En:\'"
  132. X
  133. Xmain(argc,argv)
  134. Xint argc;
  135. Xchar **argv;
  136. X   {
  137. X   int b_flag=1;
  138. X   int cols, rows;
  139. X   char *rindex(), *getenv(), *getpass();
  140. X   char *shell = getenv("SHELL");
  141. X   char get[5];
  142. X
  143. X   ckmgrterm( *argv );
  144. X
  145. X   if (argc>1 && strcmp("-b",argv[1])==0)
  146. X      b_flag=0;
  147. X
  148. X   if (shell && rindex(shell,'/'))
  149. X      shell = rindex(shell,'/')+1;
  150. X
  151. X   sprintf(get,"%c%d%c",ESC,G_WINSIZE,E_GETINFO);
  152. X   sscanf(getpass(get),"%d %d\n",&cols,&rows);
  153. X   
  154. X   if (b_flag && shell && strcmp(shell,"csh")==0) {        /* csh */
  155. X      printf("set noglob;");
  156. X      printf("setenv TERMCAP ");
  157. X      printf(ENTRY,rows,cols);
  158. X      printf(";unset noglob\n");
  159. X      }
  160. X   else                            /* /bin/sh */
  161. X     {
  162. X      printf("export TERMCAP\n");
  163. X      printf("TERMCAP=");
  164. X      printf(ENTRY,rows,cols);
  165. X      putchar('\n');
  166. X     }
  167. X   } 
  168. END_OF_FILE
  169. # end of 'demo/misc/set_emacs.c'
  170. fi
  171. if test -f 'demo/misc/set_termcap.c' -a "${1}" != "-c" ; then 
  172.   echo shar: Will not clobber existing file \"'demo/misc/set_termcap.c'\"
  173. else
  174. echo shar: Extracting \"'demo/misc/set_termcap.c'\" \(1744 characters\)
  175. sed "s/^X//" >'demo/misc/set_termcap.c' <<'END_OF_FILE'
  176. X/*                        Copyright (c) 1987 Bellcore
  177. X *                            All Rights Reserved
  178. X *       Permission is granted to copy or use this program, EXCEPT that it
  179. X *       may not be sold for profit, the copyright notice must be reproduced
  180. X *       on copies, and credit should be given to Bellcore where it is due.
  181. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  182. X */
  183. X/*    $Header: set_termcap.c,v 4.3 88/06/23 09:10:41 bianchi Exp $
  184. X    $Source: /tmp/mgrsrc/demo/misc/RCS/set_termcap.c,v $
  185. X*/
  186. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/demo/misc/RCS/set_termcap.c,v $$Revision: 4.3 $";
  187. X
  188. X/* print the current termcap entry on stdout */
  189. X
  190. X#include <stdio.h>
  191. X#include "window.h"
  192. X
  193. X#define ENTRY    "\'px|mgr|mgr teminal emulator:am:li#%d:co#%d:bs:cl=^L:ce=\\Ec:cd=\\EC:cm=\\E%%r%%d,%%dM:al=\\Ea:dl=\\Ed:ic=\\EA:dc=\\EE:ta=^I:up=\\Eu:do=\\Ef:nd=\\Er:ku=\\E[A:kd=\\E[B:kr=\\E[C:kl=\\E[D:so=\\Ei:se=\\En:vs=\\EV:ve=\\Ev:\'"
  194. X
  195. Xmain(argc,argv)
  196. Xint argc;
  197. Xchar **argv;
  198. X   {
  199. X   int b_flag=1;
  200. X   int cols, rows;
  201. X   char *rindex(), *getenv(), *getpass();
  202. X   char *shell = getenv("SHELL");
  203. X   char get[5];
  204. X
  205. X   ckmgrterm( *argv );
  206. X
  207. X   if (argc>1 && strcmp("-b",argv[1])==0)
  208. X      b_flag=0;
  209. X
  210. X   if (shell && rindex(shell,'/'))
  211. X      shell = rindex(shell,'/')+1;
  212. X
  213. X   sprintf(get,"%c%d%c",ESC,G_WINSIZE,E_GETINFO);
  214. X   sscanf(getpass(get),"%d %d\n",&cols,&rows);
  215. X   
  216. X   if (b_flag && shell && strcmp(shell,"csh")==0) {        /* csh */
  217. X      printf("set noglob;");
  218. X      printf("setenv TERMCAP ");
  219. X      printf(ENTRY,rows,cols);
  220. X      printf(";unset noglob\n");
  221. X      }
  222. X   else                            /* /bin/sh */
  223. X     {
  224. X      printf("export TERMCAP\n");
  225. X      printf("TERMCAP=");
  226. X      printf(ENTRY,rows,cols);
  227. X      putchar('\n');
  228. X     }
  229. X   } 
  230. END_OF_FILE
  231. # end of 'demo/misc/set_termcap.c'
  232. fi
  233. if test -f 'demo/msg/do.h' -a "${1}" != "-c" ; then 
  234.   echo shar: Will not clobber existing file \"'demo/msg/do.h'\"
  235. else
  236. echo shar: Extracting \"'demo/msg/do.h'\" \(1523 characters\)
  237. sed "s/^X//" >'demo/msg/do.h' <<'END_OF_FILE'
  238. X/*    $Header: do.h,v 4.1 88/06/21 14:02:42 bianchi Exp $
  239. X    $Source: /tmp/mgrsrc/demo/msg/RCS/do.h,v $
  240. X*/
  241. Xstatic char    h_do_[] = "$Source: /tmp/mgrsrc/demo/msg/RCS/do.h,v $$Revision: 4.1 $";
  242. X
  243. X/*                        Copyright (c) 1987 Bellcore
  244. X *                            All Rights Reserved
  245. X *       Permission is granted to copy or use this program, EXCEPT that it
  246. X *       may not be sold for profit, the copyright notice must be reproduced
  247. X *       on copies, and credit should be given to Bellcore where it is due.
  248. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  249. X */
  250. X/* simple server-client message protocol */
  251. X
  252. X/* server messages */
  253. X
  254. X#define S_HI    'H'        /* announce existence  (broadcast)*/
  255. X#define S_BYE    'B'        /* announce demise     (broadcast)*/
  256. X#define S_REPLY    'R'        /* reply to message    (point-to-point) */
  257. X
  258. X/* types of server replies */
  259. X
  260. X#define R_WHO    '?'        /* server identification */
  261. X#define R_RCVD    'r'        /* received command */
  262. X#define R_DO    '.'        /* working on command */
  263. X#define R_DONE    'd'        /* command completed */
  264. X#define R_HOST    'h'        /* rejected, no remote requests accepted */
  265. X#define R_NET    'n'        /* Can't get file for remote request */
  266. X#define R_BAD    'x'        /* command rejected */
  267. X#define R_UNKWN    'u'        /* unknown command */
  268. X
  269. X/* client messages */
  270. X
  271. X#define C_WHO    '?'        /* who is out there  (broadcast) */
  272. X#define C_DO    'F'        /* do 'file' command (next arg is file name) */
  273. X
  274. X#define C_SNARF    '$'        /* use snarf buffer for file name */
  275. X#define HOST    ':'        /* file name prefixed with hostname */
  276. END_OF_FILE
  277. # end of 'demo/msg/do.h'
  278. fi
  279. if test -f 'demo/plot/Makefile' -a "${1}" != "-c" ; then 
  280.   echo shar: Will not clobber existing file \"'demo/plot/Makefile'\"
  281. else
  282. echo shar: Extracting \"'demo/plot/Makefile'\" \(1539 characters\)
  283. sed "s/^X//" >'demo/plot/Makefile' <<'END_OF_FILE'
  284. X#                        Copyright (c) 1987 Bellcore
  285. X#                            All Rights Reserved
  286. X#       Permission is granted to copy or use this program, EXCEPT that it
  287. X#       may not be sold for profit, the copyright notice must be reproduced
  288. X#       on copies, and credit should be given to Bellcore where it is due.
  289. X#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  290. X
  291. X#    $Header: Makefile,v 4.1 88/06/21 14:03:05 bianchi Exp $
  292. X#    $Source: /tmp/mgrsrc/demo/plot/RCS/Makefile,v $
  293. X
  294. XINSROOT=/usr/mgr
  295. XSTART=.
  296. XMGR=../..
  297. XMGRLIB=$(MGR)/lib/libmgr.a
  298. XMGRINCL=$(MGR)/lib
  299. X#
  300. XBIN=$(INSROOT)/bin
  301. XMAN=$(INSROOT)/man
  302. XLIB=$(INSROOT)/lib
  303. XCPIO=plot.cpio
  304. XCFLAGS=    -O -I$(MGRINCL)
  305. XALL=    libmgrplot.a mgrplot 
  306. X
  307. XCFILES= subs.c mgrplot.c
  308. XDOCS= mgrplot.1g
  309. XOTHER= Makefile README plot.ex
  310. X
  311. Xall small:    $(ALL)
  312. X
  313. Xfast:        $(CFILES)
  314. X        cc -c $(CFLAGS) $(CFILES)
  315. X        make all
  316. X
  317. Xlibmgrplot.a:    subs.o $(MGRLIB)
  318. X        ar r libmgrplot.a subs.o
  319. X        ranlib libmgrplot.a
  320. X
  321. Xmgrplot:    mgrplot.o libmgrplot.a $(MGRLIB)
  322. X        cc -o mgrplot  mgrplot.o libmgrplot.a $(MGRLIB) -lm
  323. X
  324. Xinstall smallinstall:    all $(BIN) $(LIB) $(MAN) $(MAN)/man1
  325. X        chmod 755 mgrplot
  326. X        rm -f $(BIN)/mgrplot
  327. X        cp mgrplot $(BIN)
  328. X        rm -f $(LIB)/libmgrplot.a
  329. X        cp libmgrplot.a $(LIB)
  330. X        ranlib $(LIB)/libmgrplot.a
  331. X        cd $(MAN)/man1;  rm -f $(DOCS)
  332. X        cp $(DOCS) $(MAN)/man1
  333. X
  334. X$(BIN) $(LIB) $(MAN) $(MAN)/man1:
  335. X        mkdir $@
  336. X
  337. Xclean:
  338. X        rm -f *.o
  339. X
  340. Xclobber:
  341. X        rm -f $(ALL)
  342. X
  343. Xlist:
  344. X    @for i in $(CFILES) $(HFILES) $(DOCS) $(OTHER); do \
  345. X        echo "$(START)/$$i"; \
  346. X    done    
  347. X
  348. Xcpio:
  349. X    make -s list | cpio -ocv > $(CPIO)
  350. END_OF_FILE
  351. # end of 'demo/plot/Makefile'
  352. fi
  353. if test -f 'demo/tests/Makefile' -a "${1}" != "-c" ; then 
  354.   echo shar: Will not clobber existing file \"'demo/tests/Makefile'\"
  355. else
  356. echo shar: Extracting \"'demo/tests/Makefile'\" \(1637 characters\)
  357. sed "s/^X//" >'demo/tests/Makefile' <<'END_OF_FILE'
  358. X#                        Copyright (c) 1987 Bellcore
  359. X#                            All Rights Reserved
  360. X#       Permission is granted to copy or use this program, EXCEPT that it
  361. X#       may not be sold for profit, the copyright notice must be reproduced
  362. X#       on copies, and credit should be given to Bellcore where it is due.
  363. X#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  364. X
  365. X#    $Header: Makefile,v 4.1 88/06/21 14:02:01 bianchi Exp $
  366. X#    $Source: /tmp/mgrsrc/demo/tests/RCS/Makefile,v $
  367. X
  368. X# makefile for demo test routines
  369. X
  370. XLIB= ../../lib/libmgr.a
  371. XINCL= -I../../lib
  372. XCPIO=test.cpio
  373. XCFLAGS=-g $(INCL)
  374. XSTART=.
  375. X
  376. XCFILES= test_rop.c test_text.c test_menu.c half.c many.c
  377. X
  378. XALL =    test_rop test_text test_menu half many
  379. X
  380. Xall small:    $(ALL)
  381. X
  382. Xfast:        $(CFILES)
  383. X        cc -c $(CFLAGS) $(CFILES)
  384. X        make all
  385. X
  386. Xtest_menu:    test_menu.o $(LIB)
  387. X        cc $(CFLAGS) -o test_menu test_menu.o $(LIB)
  388. X
  389. Xscale:    scale.o $(LIB)
  390. X        cc $(CFLAGS) -o scale scale.o $(LIB)
  391. X
  392. Xblank:    blank.o $(LIB)
  393. X        cc $(CFLAGS) -o blank blank.o $(LIB)
  394. X
  395. Xcut:    cut.o $(LIB)
  396. X        cc $(CFLAGS) -o cut cut.o $(LIB)
  397. X
  398. Xsnap:    snap.o $(LIB)
  399. X        cc $(CFLAGS) -o snap snap.o $(LIB)
  400. X
  401. Xmany:    many.o $(LIB)
  402. X        cc $(CFLAGS) -o many many.o $(LIB)
  403. X
  404. Xcal:        cal.o $(LIB)
  405. X        cc $(CFLAGS) -o cal cal.o $(LIB)
  406. X
  407. Xhalf:        half.o $(LIB)
  408. X        cc $(CFLAGS) -o half half.o $(LIB)
  409. X
  410. Xtest_rop:    test_rop.o $(LIB)
  411. X        cc $(CFLAGS) -o test_rop test_rop.o $(LIB)
  412. X
  413. Xtest_text:    test_text.o $(LIB)
  414. X        cc $(CFLAGS) -o test_text test_text.o $(LIB)
  415. X
  416. Xclean:
  417. X        rm -f *.o
  418. X
  419. Xclobber:
  420. X        rm -f $(ALL)
  421. X
  422. Xinstall smallinstall:
  423. X
  424. Xlist:
  425. X    @for i in $(CFILES) Makefile; do \
  426. X        echo "$(START)/$$i"; \
  427. X    done
  428. X
  429. Xcpio:
  430. X    make -s list | cpio -ocv > $(CPIO)
  431. END_OF_FILE
  432. # end of 'demo/tests/Makefile'
  433. fi
  434. if test -f 'demo/tests/many.c' -a "${1}" != "-c" ; then 
  435.   echo shar: Will not clobber existing file \"'demo/tests/many.c'\"
  436. else
  437. echo shar: Extracting \"'demo/tests/many.c'\" \(1627 characters\)
  438. sed "s/^X//" >'demo/tests/many.c' <<'END_OF_FILE'
  439. X/*                        Copyright (c) 1987 Bellcore
  440. X *                            All Rights Reserved
  441. X *       Permission is granted to copy or use this program, EXCEPT that it
  442. X *       may not be sold for profit, the copyright notice must be reproduced
  443. X *       on copies, and credit should be given to Bellcore where it is due.
  444. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  445. X */
  446. X/*    $Header: many.c,v 4.1 88/06/21 14:02:06 bianchi Exp $
  447. X    $Source: /tmp/mgrsrc/demo/tests/RCS/many.c,v $
  448. X*/
  449. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/demo/tests/RCS/many.c,v $$Revision: 4.1 $";
  450. X
  451. X/* test many windows */
  452. X
  453. X#include <stdio.h>
  454. X#include "term.h"
  455. X
  456. X#define GAP    10
  457. X
  458. Xmain(argc,argv)
  459. Xint argc;
  460. Xchar **argv;
  461. X
  462. X   {
  463. X   int num;
  464. X   int count;
  465. X   int x,y,w,h;
  466. X   int lastx=0, lasty=0;
  467. X   char buff[100];
  468. X   char *sprintf();
  469. X   int offset, foo;
  470. X   register int i;
  471. X   
  472. X   if (argc < 2 || (count=atoi(argv[1])) <=0)
  473. X      count = 5;
  474. X
  475. X   srandom(getpid());
  476. X   m_setup(M_FLUSH);
  477. X   get_size(&x,&y,&w,&h);
  478. X   foo = (w + h)/2;
  479. X
  480. X   for(i=0;i<=count;i++) {
  481. X      offset = random()%foo;
  482. X      x += random()&1 ? offset+GAP : - (offset+GAP);
  483. X      offset = random()%foo;
  484. X      y += random()&1 ? offset+GAP : - (offset+GAP);
  485. X      if (x<8) x=8;
  486. X      if (y<80) y=80;
  487. X      if (x+w > 1140) x = 1140-w;
  488. X      if (y+h > 890) y = 890-w;
  489. X      if (lastx == x || lasty == y) {
  490. X         i--; continue;
  491. X         }
  492. X      lastx = x, lasty = y;
  493. X      num = m_makewindow(x,y,w,h);
  494. X      m_selectwin(num);
  495. X      printf("Window %d\n",num);
  496. X      } 
  497. X   m_selectwin(0);
  498. X   m_setmode(M_ACTIVATE);
  499. X   printf("back to window zero\n");
  500. X   }
  501. END_OF_FILE
  502. # end of 'demo/tests/many.c'
  503. fi
  504. if test -f 'doc/c_menu.1' -a "${1}" != "-c" ; then 
  505.   echo shar: Will not clobber existing file \"'doc/c_menu.1'\"
  506. else
  507. echo shar: Extracting \"'doc/c_menu.1'\" \(1698 characters\)
  508. sed "s/^X//" >'doc/c_menu.1' <<'END_OF_FILE'
  509. X'\"                        Copyright (c) 1988 Bellcore
  510. X'\"                            All Rights Reserved
  511. X'\"       Permission is granted to copy or use this program, EXCEPT that it
  512. X'\"       may not be sold for profit, the copyright notice must be reproduced
  513. X'\"       on copies, and credit should be given to Bellcore where it is due.
  514. X'\"       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  515. X'\"
  516. X'\"    $Header: c_menu.1,v 1.1 88/07/08 13:43:27 sau Exp $
  517. X'\"    $Source: /tmp/mgrsrc/doc/RCS/c_menu.1,v $
  518. X.TH c_menu 1L "November 15, 1987"
  519. X.SH NAME
  520. XC_MENU \- Turn 
  521. X.B C
  522. Xerror messages into 
  523. X.B vi
  524. Xmenus.
  525. X.SH SYNOPSIS
  526. Xmake -k | c_menu; vi
  527. X.SH DESCRIPTION
  528. XC_menu
  529. Xreads its standard input and looks for lines of the form:
  530. X.RS
  531. X"foo.c", line 19: word undefined.
  532. X.RE
  533. XAll such lines are gathered into a set of menus, one for each 
  534. X.B C
  535. Xfile, that are useful for locating the errors in the source files using
  536. Xthe
  537. X.I vi
  538. Xedittor.
  539. X.LP
  540. XThe main menu contains the names of the 
  541. X.B C
  542. Xfiles with errors, selecting a file causes that file to be editted.
  543. XSliding off to the right of the
  544. X.I "file name"
  545. Xmenu
  546. Xpops up a list of error messages.
  547. XSelecting an error message while in 
  548. X.I vi
  549. Xcauses 
  550. X.I vi
  551. Xto move its cursor to the line containing the error.
  552. X.LP
  553. XThe most common way to use 
  554. X.I c_menu
  555. Xis with the
  556. X.B MGR
  557. X.I cut
  558. Xand
  559. X.I paste
  560. Xfacility.
  561. XAfter running a
  562. X.I make
  563. Xor
  564. X.I cc
  565. Xthat produces 
  566. X.B C
  567. Xerror messages,
  568. Xsimply 
  569. X.I cut
  570. Xthe error messages, type
  571. X.B c_menu;vi ,
  572. X.I paste
  573. Xthe errors into
  574. X.I c_menu ,
  575. Xthen key
  576. X.I CNTL d.
  577. X.SH SEE ALSO
  578. Xmgr(1L)
  579. Xmenu(1L)
  580. X.SH BUGS
  581. XAfter adding or deleting lines from the file,
  582. X.I c_menu 's
  583. Xnotion of which line contains the error is incorrect.
  584. X.SH AUTHOR
  585. XS. A. Uhler
  586. END_OF_FILE
  587. # end of 'doc/c_menu.1'
  588. fi
  589. if test -f 'doc/ether.1' -a "${1}" != "-c" ; then 
  590.   echo shar: Will not clobber existing file \"'doc/ether.1'\"
  591. else
  592. echo shar: Extracting \"'doc/ether.1'\" \(1612 characters\)
  593. sed "s/^X//" >'doc/ether.1' <<'END_OF_FILE'
  594. X'\"                        Copyright (c) 1988 Bellcore
  595. X'\"                            All Rights Reserved
  596. X'\"       Permission is granted to copy or use this program, EXCEPT that it
  597. X'\"       may not be sold for profit, the copyright notice must be reproduced
  598. X'\"       on copies, and credit should be given to Bellcore where it is due.
  599. X'\"       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  600. X'\"
  601. X'\"    $Header: ether.1,v 4.1 88/06/21 13:51:30 bianchi Exp $
  602. X'\"    $Source: /tmp/mgrsrc/doc/RCS/ether.1,v $
  603. X.TH ether 1L "April 30, 1985"
  604. X.SH NAME
  605. Xether \- Display a strip chart of network traffic.
  606. X.SH SYNOPSIS
  607. X.B ether
  608. X[ \fB\-f<freq>\fP ]
  609. X[ \fB\-m<max>\fP ]
  610. X.SH DESCRIPTION
  611. X.B Ether
  612. Xis a graphical version of
  613. X.I netstat
  614. Xthat runs on
  615. X.I mgr
  616. Xterminals.
  617. X.B Ether,
  618. Xdisplays the number of input packet, 
  619. Xoutput packets, and collisions on the first network interface reported by
  620. X.I netstat.
  621. X.LP
  622. XThe following options are recognized on the command line:
  623. X.TP
  624. X.B \-f<freq>
  625. XThe display is updated every
  626. X.I freq
  627. Xseconds, instead of the default 3 seconds.
  628. X.TP
  629. X.B -m<max>
  630. Xspecifies the maximum number of packets counted per update.
  631. XThe default is 15.
  632. X.SH "SEE ALSO"
  633. Xmgr(1L)
  634. Xnetstat(1)
  635. X.SH DIAGNOSTICS
  636. X.TP
  637. XWindow is not wide enough
  638. XMake the window wider and the graph will continue.
  639. X.TP
  640. XWindow is not high enough
  641. XMake the window taller and the graph will continue.
  642. X.SH BUGS
  643. XIf the window is reshaped,
  644. X.I ether
  645. Xrequires up to
  646. X.B freq
  647. X(usually 3)
  648. Xseconds to learn about the new window size.
  649. X.LP
  650. X.I Ether
  651. Xcalls
  652. X.I netstat(1) and assumes a particular output format from it
  653. X(i.e. 4.2 BSD).
  654. X.SH AUTHOR
  655. XS. A. Uhler
  656. END_OF_FILE
  657. # end of 'doc/ether.1'
  658. fi
  659. if test -f 'doc/mgrmsgs.1' -a "${1}" != "-c" ; then 
  660.   echo shar: Will not clobber existing file \"'doc/mgrmsgs.1'\"
  661. else
  662. echo shar: Extracting \"'doc/mgrmsgs.1'\" \(1782 characters\)
  663. sed "s/^X//" >'doc/mgrmsgs.1' <<'END_OF_FILE'
  664. X'\"                        Copyright (c) 1988 Bellcore
  665. X'\"                            All Rights Reserved
  666. X'\"       Permission is granted to copy or use this program, EXCEPT that it
  667. X'\"       may not be sold for profit, the copyright notice must be reproduced
  668. X'\"       on copies, and credit should be given to Bellcore where it is due.
  669. X'\"       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  670. X'\"
  671. X'\"    $Header: mgrmsgs.1,v 4.1 88/06/21 13:51:54 bianchi Exp $
  672. X'\"    $Source: /tmp/mgrsrc/doc/RCS/mgrmsgs.1,v $
  673. X.TH mgrmsgs 1L "April 30, 1985"
  674. X.SH NAME
  675. Xmgrmsgs \- message arrival notification
  676. X.SH SYNOPSIS
  677. X.B mgrmsgs
  678. X[ \fB\-s\fP ]
  679. X[ \fB\-x\fP<pos> ]
  680. X[ \fB\-y\fP<pos> ]
  681. X[ \fB\-f\fP<font> ]
  682. X[ \fB\-p\fP<poll> ]
  683. X.SH DESCRIPTION
  684. X.I Mgrmsgs
  685. Xlooks for, and announces the arrival of new
  686. X.B msgs.
  687. XWhen initially invoked,
  688. X.I mgrmsgs
  689. Xshrinks its window to the single line
  690. Xdisplaying the number of pending messages.
  691. XWhen new messages arrive,
  692. X.B mgrmsgs
  693. Xrings the bell, and updates the current message count.
  694. XIf the 
  695. X.I mgrmsgs
  696. Xwindow is activated when messages are pending,
  697. Xusually by clicking on it with the mouse,
  698. XIt changes to a larger window with 
  699. X.I msgs
  700. Xrunning in it.
  701. X.LP
  702. XWhile in the 
  703. X.I msgs
  704. Xwindow, the middle mouse button activates a menu of commonly
  705. Xused msgs commands.
  706. X.LP
  707. X.B Mgrmsgs
  708. Xrecognizes the following command line flags:
  709. X.TP 
  710. X-s
  711. XDon't reshape the window upon 
  712. X.B mgrmsgs
  713. Xinvocation.
  714. X.TP 
  715. X-x<pos>
  716. XStarting x-coordinate of 
  717. X.I msgs
  718. Xwindow.
  719. X.TP 
  720. X-y<pos>
  721. XStarting y-coordinate of 
  722. X.I msgs
  723. Xwindow.
  724. X.TP 
  725. X-f<font_number>
  726. XFont to use for
  727. X.I msgs
  728. Xwindow.
  729. X.TP 
  730. X-p<poll interval>
  731. XLook for new messages every
  732. X.I poll interval
  733. Xseconds (defaults to 60).
  734. X.SH FILES
  735. X.TP 
  736. X.B /usr/spool/msgs/bounds
  737. X.TP 
  738. X.B $HOME/.msgsrc
  739. X.SH SEE ALSO
  740. Xmsgs(1)
  741. Xmgr(1L)
  742. X.SH AUTHOR
  743. XS. A. Uhler
  744. END_OF_FILE
  745. # end of 'doc/mgrmsgs.1'
  746. fi
  747. if test -f 'doc/usrman/abstract' -a "${1}" != "-c" ; then 
  748.   echo shar: Will not clobber existing file \"'doc/usrman/abstract'\"
  749. else
  750. echo shar: Extracting \"'doc/usrman/abstract'\" \(1635 characters\)
  751. sed "s/^X//" >'doc/usrman/abstract' <<'END_OF_FILE'
  752. X'\"                        Copyright (c) 1988 Bellcore
  753. X'\"                            All Rights Reserved
  754. X'\"       Permission is granted to copy or use this program, EXCEPT that it
  755. X'\"       may not be sold for profit, the copyright notice must be reproduced
  756. X'\"       on copies, and credit should be given to Bellcore where it is due.
  757. X'\"       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  758. X'\"
  759. X'\"    $Header: abstract,v 4.1 88/06/29 17:04:37 bianchi Exp $
  760. X'\"    $Source: /tmp/mgrsrc/doc/usrman/RCS/abstract,v $
  761. X.RP
  762. X.TL
  763. X\*M - C Language Application Interface
  764. X.AU
  765. XStephen A. Uhler
  766. X.AI
  767. XBell Communications Research
  768. X.AB
  769. X\*M 
  770. X(\fBm\fPana\fBg\fPe\fBr\fP)
  771. Xis a window system for Unix that currently runs on Sun Workstations.
  772. X\*M manages asynchronous updates of overlapping windows
  773. Xand provides application support for a heterogeneous network
  774. Xenvironment, i.e.,
  775. Xmany different types of computers connected by various 
  776. Xcommunications media.
  777. XThe application interface enables applications (called client programs) to be
  778. Xwritten in a variety of programming languages, and run on different
  779. Xoperating systems.
  780. XThe client program can take full 
  781. Xadvantage of the windowing capabilities 
  782. Xregardless of the
  783. Xtype of connection to the workstation running \*M.
  784. XThis document describes the
  785. XC interface library for \*M
  786. Xwhich provides a set of macros and functions that
  787. Ximplement the stream protocol.
  788. XThis library provides client programs written in
  789. X.B C
  790. Xwith a function call interface to \*M.
  791. XThe library provides the lowest level access to \*M functions
  792. Xand represents a one to one mapping to the underlying stream protocol.
  793. X.AE
  794. X.LP
  795. END_OF_FILE
  796. # end of 'doc/usrman/abstract'
  797. fi
  798. if test -f 'font-16/Ucour6x12r' -a "${1}" != "-c" ; then 
  799.   echo shar: Will not clobber existing file \"'font-16/Ucour6x12r'\"
  800. else
  801. echo shar: Extracting \"'font-16/Ucour6x12r'\" \(1726 characters\)
  802. sed "s/^X//" >'font-16/Ucour6x12r' <<'END_OF_FILE'
  803. Xbegin 644 cour6x12r.fnt
  804. XM%@8,!(8          __..                           "0     !    
  805. XM                                       .0<                  
  806. XM           &$8           .....   ?_..           ...... ? $**
  807. XM$(&"$(     !,$,,">&>,,     ,&,>/>??/[?/;<QS.>.>/?[[[;[?(0$  
  808. XM( P & & P$$8<       (      ($$ X         .....   __..       
  809. XM    ...... _ $**/4("$($    "2,22&0(222  " 02)$)1)))12$"*(199
  810. XM)9)15211*11(($$ ( 0 " ( 0  ($       (      ($$)D         ...
  811. XM..   ?_..           ...... ? $*?15($($5$   "2$2"*00"22,,$ ("
  812. XM3,)0)((02$",(;91)1)0$211**"(($* $,<,.,(-<<<)$JL,L-;.>V;[;[>(
  813. XM$$5X         .....   __..           ...... _ $ *0*$ ($.$   $
  814. XM2$",*<<$,2,,(>$$5*.0)..0>$",(;51)1),$2*5$*$($$1  "2222>22$$*
  815. XM$52222-2(2*1*22($$2H         .....   ?_..           ...... ?
  816. XM $ *.$+ ($5? ? $2$$"2"2$2.  0 "(5*)0)((32$"*(551.1."$2*5$$((
  817. XM$$   .202>(22$$,$52222(((2*5$*$0 " D         .....   __..   
  818. XM        ...... _   ?!*2 ($$$   (2$(2?"2(2"  (>$(2>)0)((12$2*
  819. XM(531(1*!$2***$0("$   22020(22$$*$52222($(2*5$,(($$ &        
  820. XM .....   ?_..           ...... ?   *152 ($ $, ,(2$22"22(2$,,
  821. XM$ ( (2)1))(12$2))133(1)1$2$**$1("$   22222(22$$*$52222(2(2$*
  822. XM*$2($$ )         .....   __..           ...... _ $ *>%- $(  
  823. XM, ,0,.>,',,(,8,," 0('S>.>?<.[?,;?QQ.<.9>.,$*;.?(!$   -L,-,>.
  824. XM[?$9?5[,<.<<&-$*;(>($$ )         .....   ?_..           ....
  825. XM.. ?    $"  $(  $  0           $                     $      
  826. XM   (!$         "  $     0"       ( ($$ )         .....   __.
  827. XM.           ...... _        "0  (              (            
  828. XM         +         . < ?       <  8     X'       < &$8 &    
  829. XM     .....   ?_..           ...... ?                        
  830. XM                                                            
  831. X/                    
  832. Xend
  833. END_OF_FILE
  834. # end of 'font-16/Ucour6x12r'
  835. fi
  836. if test -f 'font-16/Ucour6x12rI' -a "${1}" != "-c" ; then 
  837.   echo shar: Will not clobber existing file \"'font-16/Ucour6x12rI'\"
  838. else
  839. echo shar: Extracting \"'font-16/Ucour6x12rI'\" \(1727 characters\)
  840. sed "s/^X//" >'font-16/Ucour6x12rI' <<'END_OF_FILE'
  841. Xbegin 644 cour6x12rI.fnt
  842. XM%@8,!(8 _________  QQ__________________  _______]O_____^____
  843. XM_______________________________________QOC__________________
  844. XM___________Y[G________  _QQQQQ___@ QQ___________QQQQQQ_? [UU
  845. XM[WY][W_____^S[SS]AYASS_____SYSAPA@@P$@PDC.,QAQAP@$$$D$@WO[__
  846. XMW_/_Y_Y_/[[GC_______W______W[[_'______  _QQQQQ___  QQ_______
  847. XM____QQQQQQ__ [UUPKW][W[____]MSMMYOWMMM__]_OMV[VNVVVNM[]UWNFF
  848. XMVFVNJMNNUNNWW[[_W_O_]_W_O__W[_______W______W[[V;______  _QQQ
  849. XMQQ___@ QQ___________QQQQQQ_? [U@NJW[W[J[___]M[M]UOO]MMSS[_W]
  850. XMLSVOVWWOM[]SWDFNVNVO[MNNUU]WW[U_[SCSQSWRCCCV[53S3RDQA)D$D$AW
  851. XM[[J'______  _QQQQQ___  QQ___________QQQQQQ__ [_UOU[_W[Q[___[
  852. XMM[]SUCC[SMSSWA[[JUQOVQQOA[]SWDJNVNVS[MUJ[U[W[[N__]MMMMAMM[[U
  853. XM[JMMMMRMWMUNUMMW[[M7______  _QQQQQ___@ QQ___________QQQQQQ_?
  854. XM [_UQ[T_W[J@_@_[M[[]M]M[MQ__O_]WJUVOVWWLM[]UWJJNQNQ][MUJ[[WW
  855. XM[[___QMOMAWMM[[S[JMMMMWWWMUJ[U[O_]_;______  _QQQQQ___  QQ___
  856. XM________QQQQQQ__ __@^UM_W[[[___WM[WM@]MWM]__WA[WMAVOVWWNM[MU
  857. XMWJLNWNU^[MUUU[OW][___MMOMOWMM[[U[JMMMMW[WMUJ[SWW[[_Y______  
  858. XM_QQQQQ___@ QQ___________QQQQQQ_? __UNJM_W[_[S_SWM[MM]MMWM[SS
  859. XM[_W_WMVNVVWNM[MVVNLLWNVN[M[UU[NW][___MMMMMWMM[[U[JMMMMWMWM[U
  860. XMU[MW[[_V______  _QQQQQ___  QQ___________QQQQQQ__ [_UAZR_[W__
  861. XMS_SOSQASXSSWSGSS]_OWX,AQA@CQ$@SD@..QCQFAQS[UDQ@W^[___R3SRSAQ
  862. XM$@[F@J$SCQCCYR[UDWAW[[_V______  _QQQQQ___@ QQ___________QQQQ
  863. XMQQ_? ___[]__[W__[__O___________[_____________________[______
  864. XM___W^[_________]__[_____O]_______W_W[[_V______  _QQQQQ___  Q
  865. XMQ___________QQQQQQ__ _______]O__W______________W____________
  866. XM_________T_________Q_C_@_______C__G_____'X_______C_Y[G_Y____
  867. XM__  _QQQQQ___@ QQ___________QQQQQQ_? _______________________
  868. XM____________________________________________________________
  869. X/__________________  
  870. Xend
  871. END_OF_FILE
  872. # end of 'font-16/Ucour6x12rI'
  873. fi
  874. if test -f 'font-16/Ucour6x12ru' -a "${1}" != "-c" ; then 
  875.   echo shar: Will not clobber existing file \"'font-16/Ucour6x12ru'\"
  876. else
  877. echo shar: Extracting \"'font-16/Ucour6x12ru'\" \(1727 characters\)
  878. sed "s/^X//" >'font-16/Ucour6x12ru' <<'END_OF_FILE'
  879. Xbegin 644 cour6x12ru.fnt
  880. XM%@8,!(8          __..                           "0     !    
  881. XM                                       .0<                  
  882. XM           &$8           .....   ?_..           ...... ? $**
  883. XM$(&"$(     !,$,,">&>,,     ,&,>/>??/[?/;<QS.>.>/?[[[;[?(0$  
  884. XM( P & & P$$8<       (      ($$ X         .....   __..       
  885. XM    ...... _ $**/4("$($    "2,22&0(222  " 02)$)1)))12$"*(199
  886. XM)9)15211*11(($$ ( 0 " ( 0  ($       (      ($$)D         ...
  887. XM..   ?_..           ...... ? $*?15($($5$   "2$2"*00"22,,$ ("
  888. XM3,)0)((02$",(;91)1)0$211**"(($* $,<,.,(-<<<)$JL,L-;.>V;[;[>(
  889. XM$$5X         .....   __..           ...... _ $ *0*$ ($.$   $
  890. XM2$",*<<$,2,,(>$$5*.0)..0>$",(;51)1),$2*5$*$($$1  "2222>22$$*
  891. XM$52222-2(2*1*22($$2H         .....   ?_..           ...... ?
  892. XM $ *.$+ ($5? ? $2$$"2"2$2.  0 "(5*)0)((32$"*(551.1."$2*5$$((
  893. XM$$   .202>(22$$,$52222(((2*5$*$0 " D         .....   __..   
  894. XM        ...... _   ?!*2 ($$$   (2$(2?"2(2"  (>$(2>)0)((12$2*
  895. XM(531(1*!$2***$0("$   22020(22$$*$52222($(2*5$,(($$ &        
  896. XM .....   ?_..           ...... ?   *152 ($ $, ,(2$22"22(2$,,
  897. XM$ ( (2)1))(12$2))133(1)1$2$**$1("$   22222(22$$*$52222(2(2$*
  898. XM*$2($$ )         .....   __..           ...... _ $ *>%- $(  
  899. XM, ,0,.>,',,(,8,," 0('S>.>?<.[?,;?QQ.<.9>.,$*;.?(!$   -L,-,>.
  900. XM[?$9?5[,<.<<&-$*;(>($$ )         .....   ?_..           ....
  901. XM.. ?    $"  $(  $  0           $                     $      
  902. XM   (!$         "  $     0"       ( ($$ )        ?????????__?
  903. XM???????????????????_ ???????????????????????????????????????
  904. XM????????????????????????????????????????_???????????????????
  905. XM??   .....   ?_..           ...... ?                        
  906. XM                                                            
  907. X/                    
  908. Xend
  909. END_OF_FILE
  910. # end of 'font-16/Ucour6x12ru'
  911. fi
  912. if test -f 'font-16/Uupside8x12' -a "${1}" != "-c" ; then 
  913.   echo shar: Will not clobber existing file \"'font-16/Uupside8x12'\"
  914. else
  915. echo shar: Extracting \"'font-16/Uupside8x12'\" \(1627 characters\)
  916. sed "s/^X//" >'font-16/Uupside8x12' <<'END_OF_FILE'
  917. Xbegin 644 upside8x12.fnt
  918. XM%@@, & @                                                    
  919. XM                                                            
  920. XM                      0         "                   !       
  921. XM                     $                  ?P        0>   ,    
  922. XM   !( $        #          @ * XR;@ ("   $  ( AX^/QX0'AX('AX 
  923. XM"!  ! 0\01\<#S\!+"$^'B$_02$> 2XA'@ >""(A"#\>(!X    N'1XN'@0A
  924. XM(1 2(0A!(1X!( $>&"X,-B($/A@(#     @ *!52$0 $$   $  ( B$( 2$0
  925. XM(2$((2$(" @ " !"02$B$0$!,B$((2$!03$A 1$A(00A""HA" $"(!     1
  926. XM(R$Q(00!(1 0$0A!(2$=+@$A)#$,22((( 0($       %!54$0 $$  (&   
  927. XM!"$( B$_(2$((0$(# 0 $ 0!02$A(0$!(2$((1$!23$A 2D1(00A%#X2" ("
  928. XM$!     1(0$A 00=(1 0"0A)(2$C,0$@!"$22104$ 0($     @ /A1D*0 "
  929. XM( @(    !",(!" 1("$$(1\   (_( 0M/B$!(0$!(2$( 1$!22DA 241( 0A
  930. XM%"H2" 0"$!     >(0$A/P0C(1 0!0A)(2$A(0$>!"$220@2" 0($     @ 
  931. XM%!0(2@ "("H^ #X ""4("" 2("$$(2$   $ 0 A5(B$!(0$!.2$( 0D!22DA
  932. XM'R$)$ 0A%"H,% 0""!!!   0(0$A(00A(Q 0"PA)(2$A(0$!!"$2210B! 0(
  933. XM$     @ "@X(!  "(!P(    ""D($!P2(2$"'B$(" (_(!!5(A\!(1\? 3\(
  934. XM 0<!524A(2$?# 0A(BH,% @""! B   1(R$Q(00A'1P<$0A)(R$C,1,A!"$A
  935. XM02(A @(((     @ 'P43#  "("H(    $#$((" 4'Q\"(2$(" 0 $"!9%!$!
  936. XM(0$! 2$( 04!524A(2$A @0A(DD2(@@"!! 4 ! .'1XN'A\C 0  (0AW'1X=
  937. XM+@T>'R$A02(A/@0($!D9  @4"A45$@@$$ @     $"$*(2$4 @$!(2$   @ 
  938. XM""%!%!$A(0$!(2$( 0D!52,A(2$A(00A(DD2(A "!! (  @  0 @  0= 1 0
  939. XM 0@         !         0($"TM  @4!14E$@@$$       ("$,(2$8 B$!
  940. XM(2$  !  !"$B"!$B$0$!(B$( 1$!8R,A(2$A(00A04$A02 " A    0  0 @
  941. XM "0  1 0 0@         !         0($"8F  @4!0X^# @("       (!X(
  942. XM'AX8/AX_'AX      !X<" \<#S\_'"$^#R$!8R$>'QX?'C\A04$A03\> AX 
  943. XA  (  0 @ !@  0   0X         !        !@(#   
  944. Xend
  945. END_OF_FILE
  946. # end of 'font-16/Uupside8x12'
  947. fi
  948. if test -f 'font-32/Ucour6x12r' -a "${1}" != "-c" ; then 
  949.   echo shar: Will not clobber existing file \"'font-32/Ucour6x12r'\"
  950. else
  951. echo shar: Extracting \"'font-32/Ucour6x12r'\" \(1758 characters\)
  952. sed "s/^X//" >'font-32/Ucour6x12r' <<'END_OF_FILE'
  953. Xbegin 644 cour6x12r.fnt
  954. XM& 8,!(8          __..                           "0     !    
  955. XM                                       .0<                  
  956. XM           &$8              XXXXX  !_\XX           XXXXXX!\ 
  957. XM0HH0@8(0@     $P0PP)X9XPP     P8QX]Y]\_M\]MS',YXYX]_OOMOM\A 
  958. XM0  @#  8 8# 01AP       @      @00#@           #CCCC@  /_SC@ 
  959. XM         #CCCCC@/P!"BCU" A"!     DC$DAD"$DD@  @$$B1"422244A 
  960. XMBB$66262454D42D42"!! " $  @" $  "!       "      "!!"9       
  961. XM     .....   ?_..           ...... ? $*?15($($5$   "2$2"*00"
  962. XM22,,$ ("3,)0)((02$",(;91)1)0$211**"(($* $,<,.,(-<<<)$JL,L-;.
  963. XM>V;[;[>($$5X            XXXXX  #_\XX           XXXXXX#\ 0 I 
  964. XMH0 @0X0   1(0(PIQP0Q(PPAX014HY DXY!X0(PAM5$E$DP1(I40H0@01$  
  965. XM)))))Y)(00H15)))(U(A(I$I)(@01*@           #CCCC@  '_SC@     
  966. XM     #CCCCC@'P! "CA"P"!%7P'P!$A! D@DA$C@ $  B%2B4"2"$TA BB%5
  967. XM43D3@A$BE1!""!!   #DD$GB$DA!#!%4DDDB""$BE1"A$  @)           
  968. XM .....   __..           ...... _   ?!*2 ($$$   (2$(2?"2(2"  
  969. XM(>$(2>)0)((12$2*(531(1*!$2***$0("$   22020(22$$*$52222($(2*5
  970. XM$,(($$ &            XXXXX  !_\XX           XXXXXX!\   I%5( @
  971. XM0 0P PA(1)())(A(0PP0 @ A(E$DDA%(1(DE%-,A$E$1(0HH1$@(0  !))))
  972. XM(A)(00H15)))(A(A(0HH1(@00 D           #CCCC@  /_SC@         
  973. XM #CCCCC@/P! "GA30!"  # #$##GC!S#"#&## @$"!\WCGGW#NWS&W\<3G#F
  974. XM7CC!"FSGR 1   #;##3'CNWQ&7U>S'#G'!C1"FR'B!! "0           ...
  975. XM..   ?_..           ...... ?    $"  $(  $  0           $    
  976. XM                 $         (!$         "  $     0"       ( (
  977. XM$$ )            XXXXX  #_\XX           XXXXXX#\        )   @
  978. XM              @                     L         X!P!\      !P 
  979. XM!@    #@<      !P 81@ 8           #CCCC@  '_SC@          #CC
  980. XMCCC@'P                                                      
  981. XG                                                    
  982. Xend
  983. END_OF_FILE
  984. # end of 'font-32/Ucour6x12r'
  985. fi
  986. if test -f 'font-32/Ucour6x12rI' -a "${1}" != "-c" ; then 
  987.   echo shar: Will not clobber existing file \"'font-32/Ucour6x12rI'\"
  988. else
  989. echo shar: Extracting \"'font-32/Ucour6x12rI'\" \(1759 characters\)
  990. sed "s/^X//" >'font-32/Ucour6x12rI' <<'END_OF_FILE'
  991. Xbegin 644 cour6x12rI.fnt
  992. XM& 8,!(8 _________  QQ__________________  _______]O_____^____
  993. XM_______________________________________QOC__________________
  994. XM___________Y[G________    #_'''''__^ #''___________'''''']\#
  995. XMO77O?GWO?_____[/O//V'F'//_____/G.'"&"# 2#"2,XS&'&'" 00202#>_
  996. XMO__?\__G_G\_ON>/_______?______?OO\?_____\    /\<<<<?__P ,<?_
  997. XM_________\<<<<<?_P.]=<*]_>]^_____;<[;>;][;;?__?[[=N]KMMMKK>_
  998. XM==[IIMIMKJK;KM;KM]^^_]_[__?]_[__]^_______]______]^^]F______P
  999. XM    _QQQQQ___@ QQ___________QQQQQQ_? [U@NJW[W[J[___]M[M]UOO]
  1000. XMMMSS[_W]LSVOVWWOM[]SWDFNVNVO[MNNUU]WW[U_[SCSQSWRCCCV[53S3RDQ
  1001. XMA)D$D$AW[[J'______    #_'''''__\ #''___________''''''_\#O_6_
  1002. XM7O_?O'O___NWOW/6./O.W//>'ONK7&_;'&^'OW/>2J[:[;/NW6KO7O?ON[__
  1003. XMVVVVV&VWOO7NJVVVW*W>W6[6VW?ONU?_____\    /\<<<<?__X ,<?_____
  1004. XM_____\<<<<<?WP._]<>]/]^ZH/X/^[>^_;?;>[<?_[__=ZM=K]M][+>_==ZJ
  1005. XMKL;L?>[=:N^]]^^___\;;[8=[;>^\^ZK;;;=]][=:N]>[__?V______P    
  1006. XM_QQQQQ___  QQ___________QQQQQQ__ __@^UM_W[[[___WM[WM@]MWM]__
  1007. XMWA[WMAVOVWWNM[MUWJLNWNU^[MUUU[OW][___MMOMOWMM[[U[JMMMMW[WMUJ
  1008. XM[SWW[[_Y______    #_'''''__^ #''___________'''''']\#__6ZJW_?
  1009. XMO_O/_/>WNVWVVW>WO//O_?_>W:[;;>ZWNW;:ZRS>[:[NWO77N[?WO__^VVVV
  1010. XMW>VWOO7NJVVVW>W>WO77NW?OO_;_____\    /\<<<<?__P ,<?_________
  1011. XM_\<<<<<?_P._]8>LO^]__\_\[\\8<^,\]\Y\\_?[]^#(<88(\1(,Y(#CL8\9
  1012. XMH<<^]9,8-_N___\D\\LX<1(.YH*A,X\8X^<N]9-X=^^_]O_____P    _QQQ
  1013. XMQQ___@ QQ___________QQQQQQ_? ___[]__[W__[__O___________[____
  1014. XM_________________[_________W^[_________]__[_____O]_______W_W
  1015. XM[[_V______    #_'''''__\ #''___________''''''_\#_______V___?
  1016. XM______________?_____________________3_________'^/^#______^/_
  1017. XM^?____\?C______^/_GN?_G_____\    /\<<<<?__X ,<?__________\<<
  1018. XM<<<?WP/_____________________________________________________
  1019. XG_______________________________________________P    
  1020. Xend
  1021. END_OF_FILE
  1022. # end of 'font-32/Ucour6x12rI'
  1023. fi
  1024. if test -f 'font-32/Ucour6x12ru' -a "${1}" != "-c" ; then 
  1025.   echo shar: Will not clobber existing file \"'font-32/Ucour6x12ru'\"
  1026. else
  1027. echo shar: Extracting \"'font-32/Ucour6x12ru'\" \(1759 characters\)
  1028. sed "s/^X//" >'font-32/Ucour6x12ru' <<'END_OF_FILE'
  1029. Xbegin 644 cour6x12ru.fnt
  1030. XM& 8,!(8          __..                           "0     !    
  1031. XM                                       .0<                  
  1032. XM           &$8              XXXXX  !_\XX           XXXXXX!\ 
  1033. XM0HH0@8(0@     $P0PP)X9XPP     P8QX]Y]\_M\]MS',YXYX]_OOMOM\A 
  1034. XM0  @#  8 8# 01AP       @      @00#@           #CCCC@  /_SC@ 
  1035. XM         #CCCCC@/P!"BCU" A"!     DC$DAD"$DD@  @$$B1"422244A 
  1036. XMBB$66262454D42D42"!! " $  @" $  "!       "      "!!"9       
  1037. XM     .....   ?_..           ...... ? $*?15($($5$   "2$2"*00"
  1038. XM22,,$ ("3,)0)((02$",(;91)1)0$211**"(($* $,<,.,(-<<<)$JL,L-;.
  1039. XM>V;[;[>($$5X            XXXXX  #_\XX           XXXXXX#\ 0 I 
  1040. XMH0 @0X0   1(0(PIQP0Q(PPAX014HY DXY!X0(PAM5$E$DP1(I40H0@01$  
  1041. XM)))))Y)(00H15)))(U(A(I$I)(@01*@           #CCCC@  '_SC@     
  1042. XM     #CCCCC@'P! "CA"P"!%7P'P!$A! D@DA$C@ $  B%2B4"2"$TA BB%5
  1043. XM43D3@A$BE1!""!!   #DD$GB$DA!#!%4DDDB""$BE1"A$  @)           
  1044. XM .....   __..           ...... _   ?!*2 ($$$   (2$(2?"2(2"  
  1045. XM(>$(2>)0)((12$2*(531(1*!$2***$0("$   22020(22$$*$52222($(2*5
  1046. XM$,(($$ &            XXXXX  !_\XX           XXXXXX!\   I%5( @
  1047. XM0 0P PA(1)())(A(0PP0 @ A(E$DDA%(1(DE%-,A$E$1(0HH1$@(0  !))))
  1048. XM(A)(00H15)))(A(A(0HH1(@00 D           #CCCC@  /_SC@         
  1049. XM #CCCCC@/P! "GA30!"  # #$##GC!S#"#&## @$"!\WCGGW#NWS&W\<3G#F
  1050. XM7CC!"FSGR 1   #;##3'CNWQ&7U>S'#G'!C1"FR'B!! "0           ...
  1051. XM..   ?_..           ...... ?    $"  $(  $  0           $    
  1052. XM                 $         (!$         "  $     0"       ( (
  1053. XM$$ )          !]]]]]]]]__]]]]]]]]]]]]]]]]]]]]_\!]]]]]]]]]]]]
  1054. XM]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
  1055. XM]]]]]]_]]]]]]]]]]]]]]]]]]]]]\     #CCCC@  '_SC@          #CC
  1056. XMCCC@'P                                                      
  1057. XG                                                    
  1058. Xend
  1059. END_OF_FILE
  1060. # end of 'font-32/Ucour6x12ru'
  1061. fi
  1062. if test -f 'font-32/Uupside8x12' -a "${1}" != "-c" ; then 
  1063.   echo shar: Will not clobber existing file \"'font-32/Uupside8x12'\"
  1064. else
  1065. echo shar: Extracting \"'font-32/Uupside8x12'\" \(1627 characters\)
  1066. sed "s/^X//" >'font-32/Uupside8x12' <<'END_OF_FILE'
  1067. Xbegin 644 upside8x12.fnt
  1068. XM& @, & @                                                    
  1069. XM                                                            
  1070. XM                      0         "                   !       
  1071. XM                     $                  ?P        0>   ,    
  1072. XM   !( $        #          @ * XR;@ ("   $  ( AX^/QX0'AX('AX 
  1073. XM"!  ! 0\01\<#S\!+"$^'B$_02$> 2XA'@ >""(A"#\>(!X    N'1XN'@0A
  1074. XM(1 2(0A!(1X!( $>&"X,-B($/A@(#     @ *!52$0 $$   $  ( B$( 2$0
  1075. XM(2$((2$(" @ " !"02$B$0$!,B$((2$!03$A 1$A(00A""HA" $"(!     1
  1076. XM(R$Q(00!(1 0$0A!(2$=+@$A)#$,22((( 0($       %!54$0 $$  (&   
  1077. XM!"$( B$_(2$((0$(# 0 $ 0!02$A(0$!(2$((1$!23$A 2D1(00A%#X2" ("
  1078. XM$!     1(0$A 00=(1 0"0A)(2$C,0$@!"$22104$ 0($     @ /A1D*0 "
  1079. XM( @(    !",(!" 1("$$(1\   (_( 0M/B$!(0$!(2$( 1$!22DA 241( 0A
  1080. XM%"H2" 0"$!     >(0$A/P0C(1 0!0A)(2$A(0$>!"$220@2" 0($     @ 
  1081. XM%!0(2@ "("H^ #X ""4("" 2("$$(2$   $ 0 A5(B$!(0$!.2$( 0D!22DA
  1082. XM'R$)$ 0A%"H,% 0""!!!   0(0$A(00A(Q 0"PA)(2$A(0$!!"$2210B! 0(
  1083. XM$     @ "@X(!  "(!P(    ""D($!P2(2$"'B$(" (_(!!5(A\!(1\? 3\(
  1084. XM 0<!524A(2$?# 0A(BH,% @""! B   1(R$Q(00A'1P<$0A)(R$C,1,A!"$A
  1085. XM02(A @(((     @ 'P43#  "("H(    $#$((" 4'Q\"(2$(" 0 $"!9%!$!
  1086. XM(0$! 2$( 04!524A(2$A @0A(DD2(@@"!! 4 ! .'1XN'A\C 0  (0AW'1X=
  1087. XM+@T>'R$A02(A/@0($!D9  @4"A45$@@$$ @     $"$*(2$4 @$!(2$   @ 
  1088. XM""%!%!$A(0$!(2$( 0D!52,A(2$A(00A(DD2(A "!! (  @  0 @  0= 1 0
  1089. XM 0@         !         0($"TM  @4!14E$@@$$       ("$,(2$8 B$!
  1090. XM(2$  !  !"$B"!$B$0$!(B$( 1$!8R,A(2$A(00A04$A02 " A    0  0 @
  1091. XM "0  1 0 0@         !         0($"8F  @4!0X^# @("       (!X(
  1092. XM'AX8/AX_'AX      !X<" \<#S\_'"$^#R$!8R$>'QX?'C\A04$A03\> AX 
  1093. XA  (  0 @ !@  0   0X         !        !@(#   
  1094. Xend
  1095. END_OF_FILE
  1096. # end of 'font-32/Uupside8x12'
  1097. fi
  1098. if test -f 'misc/Makefile' -a "${1}" != "-c" ; then 
  1099.   echo shar: Will not clobber existing file \"'misc/Makefile'\"
  1100. else
  1101. echo shar: Extracting \"'misc/Makefile'\" \(1598 characters\)
  1102. sed "s/^X//" >'misc/Makefile' <<'END_OF_FILE'
  1103. X#                        Copyright (c) 1988 Bellcore
  1104. X#                            All Rights Reserved
  1105. X#       Permission is granted to copy or use this program, EXCEPT that it
  1106. X#       may not be sold for profit, the copyright notice must be reproduced
  1107. X#       on copies, and credit should be given to Bellcore where it is due.
  1108. X#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1109. X
  1110. X#    $Header: Makefile,v 4.1 88/08/24 15:53:38 bianchi Exp $
  1111. X#    $Source: /tmp/mgrsrc/misc/RCS/Makefile,v $
  1112. X
  1113. X# utilities stuff for mgr
  1114. X
  1115. XINCL = ../lib
  1116. XOTHER = Makefile README cshrc login map mgr.ti mgrc plot termcap tree.out mgrc
  1117. XSTART=.
  1118. XCPIO=util.cpio
  1119. XCFLAGS = -O -I$(INCL)
  1120. XUTIL_BIN = /usr/local/bin
  1121. XMANDIR = $(UTIL_BIN)/../man
  1122. XMGR=../src
  1123. X
  1124. XCFILES = lasergrafix.c tjfilter.c getscreen.c rotate.c hp_raster.c
  1125. XALL = lasergrafix tjfilter getscreen rotate hp_raster
  1126. XOTHER = README Makefile mgr.ti termcap map plot tree.out
  1127. X
  1128. Xall:    $(ALL)
  1129. X
  1130. X
  1131. Xgetscreen:    getscreen.o 
  1132. X        cc $(CFLAGS) -o getscreen getscreen.o
  1133. X
  1134. Xlasergrafix:    lasergrafix.o $(MGR)/bitmaphead.o
  1135. X        cc $(CFLAGS) -o lasergrafix lasergrafix.o $(MGR)/bitmaphead.o
  1136. X
  1137. Xrotate:        rotate.o $(MGR)/bitmaphead.o
  1138. X        cc $(CFLAGS) -o rotate rotate.o $(MGR)/bitmaphead.o
  1139. X
  1140. Xtjfilter:    tjfilter.o $(MGR)/bitmaphead.o
  1141. X        cc $(CFLAGS) -o tjfilter tjfilter.o $(MGR)/bitmaphead.o
  1142. X
  1143. Xhp_raster:    hp_raster.o 
  1144. X        cc $(CFLAGS) -o hp_raster hp_raster.o
  1145. X
  1146. Xinstall:
  1147. X
  1148. Xclean:    
  1149. X        -rm -f *.o core
  1150. Xclobber:
  1151. X        -rm -f $(ALL)
  1152. X
  1153. Xlist:
  1154. X    @for i in ${HFILES} ${CFILES} ${OTHER}; do \
  1155. X     echo "${START}/$$i"; \
  1156. X    done    
  1157. X
  1158. Xcpio:
  1159. X    make -s list | cpio -ov > ${CPIO}
  1160. X
  1161. X.PHONY:    install clean clobber list cpio
  1162. END_OF_FILE
  1163. # end of 'misc/Makefile'
  1164. fi
  1165. if test -f 'src/blit/README' -a "${1}" != "-c" ; then 
  1166.   echo shar: Will not clobber existing file \"'src/blit/README'\"
  1167. else
  1168. echo shar: Extracting \"'src/blit/README'\" \(1678 characters\)
  1169. sed "s/^X//" >'src/blit/README' <<'END_OF_FILE'
  1170. X#                        Copyright (c) 1988 Bellcore
  1171. X#                            All Rights Reserved
  1172. X#       Permission is granted to copy or use this program, EXCEPT that it
  1173. X#       may not be sold for profit, the copyright notice must be reproduced
  1174. X#       on copies, and credit should be given to Bellcore where it is due.
  1175. X#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1176. X
  1177. X#    $Header: README,v 4.1 88/06/21 13:14:24 bianchi Exp $
  1178. X#    $Source: /tmp/mgrsrc/src/blit/RCS/README,v $
  1179. X
  1180. XThis is the 68020 bit-blit code using bit field instructions.  The 3
  1181. Xsource files are:
  1182. X
  1183. X* blit.C        for bit-blts
  1184. X* line.C        for lines
  1185. X* pixel.C    for bliting 'points'
  1186. X
  1187. XStrategy:
  1188. XThis is an attempt to build *fast* 68020 specific bit-blit code in an
  1189. Xoperating environment independent fashion. Although the bit-blit code is
  1190. Xwritten in a combination of C and assembler, the compiler and assembler
  1191. Xspecific parts are parameterized.
  1192. X
  1193. X* The files m4.h and asm.h contain the assembler specific syntax for the 
  1194. X  required asms.  It would be nice to do this all with cpp, but cpp won't
  1195. X  do the substitutions inside quoted strings.
  1196. X
  1197. X* sym - The SYMbolic asm processor permits the reference to C register
  1198. X  variables from within asm statements.  Thus the C compiler is free to
  1199. X  assign registers as it wishes.  Sym filters the "cc -S -g" output
  1200. X  replacing the symbolic names from the asm's with the proper register
  1201. X  names by interpreting the symbol table entries grenerated by -g.
  1202. X  Sym is symbol table entry specific.
  1203. X
  1204. X* The result asm file is run through the optimizer, which doesn't
  1205. X  do much, especially as it things all memory references have side-effects.
  1206. X
  1207. X
  1208. XStephen A. Uhler
  1209. X
  1210. END_OF_FILE
  1211. # end of 'src/blit/README'
  1212. fi
  1213. if test -f 'src/border.c' -a "${1}" != "-c" ; then 
  1214.   echo shar: Will not clobber existing file \"'src/border.c'\"
  1215. else
  1216. echo shar: Extracting \"'src/border.c'\" \(1598 characters\)
  1217. sed "s/^X//" >'src/border.c' <<'END_OF_FILE'
  1218. X/*                        Copyright (c) 1987 Bellcore
  1219. X *                            All Rights Reserved
  1220. X *       Permission is granted to copy or use this program, EXCEPT that it
  1221. X *       may not be sold for profit, the copyright notice must be reproduced
  1222. X *       on copies, and credit should be given to Bellcore where it is due.
  1223. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1224. X */
  1225. X/*    $Header: border.c,v 4.1 88/06/21 13:21:16 bianchi Exp $
  1226. X    $Source: /tmp/mgrsrc/src/RCS/border.c,v $
  1227. X*/
  1228. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/src/RCS/border.c,v $$Revision: 4.1 $";
  1229. X/* draw a border around a window  */
  1230. X
  1231. X#include "bitmap.h"
  1232. X#include "defs.h"
  1233. X
  1234. Xborder(win,b,w)
  1235. XWINDOW  *win;            /* window */
  1236. Xint b, w;            /* black width, white width */
  1237. X   {
  1238. X    register int clr,set;
  1239. X    register BITMAP *bdr;
  1240. X
  1241. X#ifdef COLOR
  1242. X    clr = BIT_SRC | (W(background)&~NOCOLOR);
  1243. X    set = BIT_SRC ^ BIT_DST | (W(background)^W(style))&~NOCOLOR;
  1244. X#else
  1245. X   clr = BIT_CLR;
  1246. X   set = BIT_SET;
  1247. X#endif
  1248. X
  1249. X    if (W(flags)&W_ACTIVE)
  1250. X        bdr = W(border);
  1251. X    else
  1252. X        bdr = W(save);
  1253. X
  1254. X   bit_blit(bdr,0,0,BIT_WIDE(bdr),(b+w),clr,NULL_DATA,0,0);
  1255. X   bit_blit(bdr,BIT_WIDE(bdr)-(b+w),0,(b+w),BIT_HIGH(bdr),clr,NULL_DATA,0,0);
  1256. X   bit_blit(bdr,0,BIT_HIGH(bdr)-(b+w),BIT_WIDE(bdr),(b+w),clr,NULL_DATA,0,0);
  1257. X   bit_blit(bdr,0,0,(b+w),BIT_HIGH(bdr),clr,NULL_DATA,0,0);
  1258. X
  1259. X   bit_blit(bdr,b,0,BIT_WIDE(bdr)-2*b,b,set,NULL_DATA,0,0);
  1260. X   bit_blit(bdr,BIT_WIDE(bdr)-b,0,b,BIT_HIGH(bdr),set,NULL_DATA,0,0);
  1261. X   bit_blit(bdr,b,BIT_HIGH(bdr)-b,BIT_WIDE(bdr)-2*b,b,set,NULL_DATA,0,0);
  1262. X   bit_blit(bdr,0,0,b,BIT_HIGH(bdr),set,NULL_DATA,0,0);
  1263. X   }
  1264. END_OF_FILE
  1265. # end of 'src/border.c'
  1266. fi
  1267. if test -f 'src/compile_font.c' -a "${1}" != "-c" ; then 
  1268.   echo shar: Will not clobber existing file \"'src/compile_font.c'\"
  1269. else
  1270. echo shar: Extracting \"'src/compile_font.c'\" \(1783 characters\)
  1271. sed "s/^X//" >'src/compile_font.c' <<'END_OF_FILE'
  1272. X/*                        Copyright (c) 1987 Bellcore
  1273. X *                            All Rights Reserved
  1274. X *       Permission is granted to copy or use this program, EXCEPT that it
  1275. X *       may not be sold for profit, the copyright notice must be reproduced
  1276. X *       on copies, and credit should be given to Bellcore where it is due.
  1277. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1278. X */
  1279. X/*    $Header: compile_font.c,v 4.1 88/06/21 13:21:20 bianchi Exp $
  1280. X    $Source: /tmp/mgrsrc/src/RCS/compile_font.c,v $
  1281. X*/
  1282. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/src/RCS/compile_font.c,v $$Revision: 4.1 $";
  1283. X
  1284. X
  1285. X/* font routines */
  1286. X
  1287. X#include <stdio.h>
  1288. X#include "bitmap.h"
  1289. X#include "font.h"
  1290. X
  1291. X/**************************************************************************
  1292. X *
  1293. X *    compile a font file 
  1294. X */
  1295. X
  1296. Xmain(argc,argv)
  1297. Xint argc;
  1298. Xchar **argv;
  1299. X   {
  1300. X   struct font_header head;
  1301. X   int sum=0;
  1302. X   int size;
  1303. X   unsigned short buff;
  1304. X
  1305. X   if (read(0,&head,HEADER_SIZE) != HEADER_SIZE) {
  1306. X      exit(1);
  1307. X      }
  1308. X
  1309. X   if (head.type != FONT_A) {
  1310. X      exit(2);
  1311. X      }
  1312. X                               
  1313. X   printf("/* static font file */\n\n");
  1314. X
  1315. X   printf("struct font_header %s_head = {\n",argv[1]);
  1316. X   printf("\t(char) %d, (char) %d, (char) %d,\n",
  1317. X          head.type, head.wide, head.high);
  1318. X   printf("\t(char) %d, (char) %d, (char) %d\n",
  1319. X          head.baseline, head.count, head.start);
  1320. X   printf("\t};\n\n");
  1321. X
  1322. X   printf("short %s_image[] = {\n\t",argv[1]);
  1323. X
  1324. X   size = (((head.count*head.wide)+15l)&~0xf)*head.high/8;
  1325. X   while(sum<size) {
  1326. X      sum += read(0,&buff,2);
  1327. X      printf("0x%04x,%s",buff,sum%16?" ":"\n\t");
  1328. X      }
  1329. X   printf("\n\t};\n\n");
  1330. X   printf("bit_static(%s,%d,%d,%s_image,1);\n",
  1331. X           argv[1],head.wide*head.count,head.high,argv[1]);
  1332. X
  1333. X      
  1334. X   exit(0);
  1335. X   }
  1336. END_OF_FILE
  1337. # end of 'src/compile_font.c'
  1338. fi
  1339. if test -f 'src/debug_flags.c' -a "${1}" != "-c" ; then 
  1340.   echo shar: Will not clobber existing file \"'src/debug_flags.c'\"
  1341. else
  1342. echo shar: Extracting \"'src/debug_flags.c'\" \(1553 characters\)
  1343. sed "s/^X//" >'src/debug_flags.c' <<'END_OF_FILE'
  1344. X/*                        Copyright (c) 1987 Bellcore
  1345. X *                            All Rights Reserved
  1346. X *       Permission is granted to copy or use this program, EXCEPT that it
  1347. X *       may not be sold for profit, the copyright notice must be reproduced
  1348. X *       on copies, and credit should be given to Bellcore where it is due.
  1349. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1350. X */
  1351. X/*    $Header: debug_flags.c,v 4.1 88/06/21 13:21:30 bianchi Exp $
  1352. X    $Source: /tmp/mgrsrc/src/RCS/debug_flags.c,v $
  1353. X*/
  1354. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/src/RCS/debug_flags.c,v $$Revision: 4.1 $";
  1355. X
  1356. X/* Debug flags    (the duplicates are unfortunate) */
  1357. X
  1358. Xchar *debug_flags[] = {
  1359. X    "*    fetching and saving bitmaps",
  1360. X    "A    Window alignment",
  1361. X    "B    creating and destroying bitmaps",
  1362. X    "B    setting bit-blit functions",
  1363. X    "B    button transitions",
  1364. X    "C    Cut/paste info",
  1365. X    "E    setting and clearing window modes",
  1366. X    "F    Calls to fastscroll",
  1367. X    "M    menu downloads",
  1368. X    "N    creating/destroying client windows",
  1369. X    "P    Pushing/popping environments",
  1370. X    "l    Select polling",
  1371. X    "S    Startup file operation",
  1372. X    "U    obscured window updates",
  1373. X    "b    keyboard meta-key operation",
  1374. X    "c    message events",
  1375. X    "d    window destruction",
  1376. X    "e    event handling",
  1377. X    "f    font management",
  1378. X    "i    requests for info",
  1379. X    "m    menu calling",
  1380. X    "n    new window creation",
  1381. X    "o    spacial window ordering/covering",
  1382. X    "p    data read from program destined for a window",
  1383. X    "s    shell creation",
  1384. X    "u    window space de-allocation",
  1385. X    "w    calls to put_window",
  1386. X    "y    yank/put buffer operation",
  1387. X    "y    saving bitmaps to files",
  1388. X    (char *) 0
  1389. X    };
  1390. END_OF_FILE
  1391. # end of 'src/debug_flags.c'
  1392. fi
  1393. if test -f 'src/erase_win.c' -a "${1}" != "-c" ; then 
  1394.   echo shar: Will not clobber existing file \"'src/erase_win.c'\"
  1395. else
  1396. echo shar: Extracting \"'src/erase_win.c'\" \(1755 characters\)
  1397. sed "s/^X//" >'src/erase_win.c' <<'END_OF_FILE'
  1398. X/*                        Copyright (c) 1987 Bellcore
  1399. X *                            All Rights Reserved
  1400. X *       Permission is granted to copy or use this program, EXCEPT that it
  1401. X *       may not be sold for profit, the copyright notice must be reproduced
  1402. X *       on copies, and credit should be given to Bellcore where it is due.
  1403. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1404. X */
  1405. X/*    $Header: erase_win.c,v 4.1 88/06/21 13:21:56 bianchi Exp $
  1406. X    $Source: /tmp/mgrsrc/src/RCS/erase_win.c,v $
  1407. X*/
  1408. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/src/RCS/erase_win.c,v $$Revision: 4.1 $";
  1409. X/* erase a pixrect to background pattern */
  1410. X
  1411. X#include "bitmap.h"
  1412. X#include "defs.h"
  1413. X#include <stdio.h>        /* temp */
  1414. X
  1415. Xerase_win(map)
  1416. XBITMAP *map;            /* bit map to erase */
  1417. X   {
  1418. X   Bit_pattern(map,0,0,BIT_WIDE(map),BIT_HIGH(map),
  1419. X              BIT_SRC|GETCOLOR(12),&pattern);
  1420. X   }
  1421. X
  1422. X/* fill DST bitmap with SRC, preserving alignment */
  1423. X
  1424. XBit_pattern(dst,dx,dy,wide,high,func,src,d1,d2)
  1425. Xregister BITMAP *dst,*src;
  1426. Xregister int dx,dy;
  1427. Xint wide,high;
  1428. Xint func;
  1429. Xint d1,d2;        /* unused */
  1430. X   {
  1431. X   register int incr;
  1432. X   register int sw = BIT_WIDE(src);
  1433. X   register int sh = BIT_HIGH(src);
  1434. X   int x = BIT_X(dst) + dx;
  1435. X   int y = BIT_Y(dst) + dy;
  1436. X   int xdel = x % sw;
  1437. X   int ydel = y % sh;
  1438. X   int de;
  1439. X
  1440. X   dx -= xdel, wide += xdel;
  1441. X   de=dx+wide;
  1442. X
  1443. X   /* get partial strip */
  1444. X
  1445. X   if (ydel) {
  1446. X      for(incr=dx;incr<de;incr+=sw)
  1447. X         bit_blit(dst,incr,dy-ydel,sw,sh,func,src,0,0);
  1448. X      dy += sh-ydel;
  1449. X      }
  1450. X
  1451. X   /* get 1st strip */
  1452. X
  1453. X   for(incr=dx;incr<de;incr+=sw)
  1454. X      bit_blit(dst,incr,dy,sw,sh,func,src,0,0);
  1455. X
  1456. X   /* get the rest */
  1457. X
  1458. X   de = dy+high;
  1459. X   for(incr=dy+sh;incr<de;incr+=sh,sh<<1)
  1460. X      bit_blit(dst,dx,incr,wide,sh,func,dst,dx,dy);
  1461. X   }
  1462. END_OF_FILE
  1463. # end of 'src/erase_win.c'
  1464. fi
  1465. if test -f 'src/font.h' -a "${1}" != "-c" ; then 
  1466.   echo shar: Will not clobber existing file \"'src/font.h'\"
  1467. else
  1468. echo shar: Extracting \"'src/font.h'\" \(1743 characters\)
  1469. sed "s/^X//" >'src/font.h' <<'END_OF_FILE'
  1470. X/*                        Copyright (c) 1987 Bellcore
  1471. X *                            All Rights Reserved
  1472. X *       Permission is granted to copy or use this program, EXCEPT that it
  1473. X *       may not be sold for profit, the copyright notice must be reproduced
  1474. X *       on copies, and credit should be given to Bellcore where it is due.
  1475. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1476. X */
  1477. X/*    $Header: font.h,v 4.1 88/06/21 13:22:03 bianchi Exp $
  1478. X    $Source: /tmp/mgrsrc/src/RCS/font.h,v $
  1479. X*/
  1480. Xstatic char    h_font_[] = "$Source: /tmp/mgrsrc/src/RCS/font.h,v $$Revision: 4.1 $";
  1481. X
  1482. X/* Constant spaced font format */
  1483. X
  1484. X#ifdef ALIGN32
  1485. X#define FONT_A            '\030'    /* fixed width fonts 32 bit alignment*/
  1486. X#else
  1487. X#define FONT_A            '\026'    /* fixed width fonts 16 bit alignment*/
  1488. X#endif
  1489. X#define FONT_S            '\027'    /* proportional fonts (not used yet) */
  1490. X
  1491. Xstruct font_header {
  1492. X   unsigned char type;        /* font type */
  1493. X   unsigned char wide;        /* character width */
  1494. X   unsigned char high;        /* char height */
  1495. X   unsigned char baseline;    /* pixels from bottom */
  1496. X   unsigned char count;        /* number of chars in font */
  1497. X   char          start;        /* starting char in font */
  1498. X   };
  1499. X
  1500. X#define H_SIZE    499        /* size of hash table for cut/paste */
  1501. X
  1502. Xstruct entry {
  1503. X   unsigned char value;        /* character at this location */
  1504. X   struct entry *next;        /* pntr to next char */
  1505. X   };
  1506. X
  1507. X#define    MAXGLYPHS    256
  1508. X
  1509. Xstruct font {
  1510. X   struct font_header head;    /* font header */
  1511. X   BITMAP *data;        /* all the glyphs strung together */
  1512. X   BITMAP *glyph[MAXGLYPHS];    /* pointers to individual glyphs */
  1513. X   short ident;            /* font id */
  1514. X   struct entry **table;    /* pointer to hash table for cut/paste */
  1515. X   };
  1516. X
  1517. X#define HEADER_SIZE    sizeof(struct font_header)
  1518. X
  1519. Xstruct font *open_font();
  1520. END_OF_FILE
  1521. # end of 'src/font.h'
  1522. fi
  1523. echo shar: End of archive 7 \(of 61\).
  1524. cp /dev/null ark7isdone
  1525. MISSING=""
  1526. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \
  1527.     21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 \
  1528.     38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 \
  1529.     55 56 57 58 59 60 61 ; do
  1530.     if test ! -f ark${I}isdone ; then
  1531.     MISSING="${MISSING} ${I}"
  1532.     fi
  1533. done
  1534. if test "${MISSING}" = "" ; then
  1535.     echo You have unpacked all 61 archives.
  1536.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1537. else
  1538.     echo You still need to unpack the following archives:
  1539.     echo "        " ${MISSING}
  1540. fi
  1541. ##  End of shell archive.
  1542. exit 0
  1543.