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

  1. Subject:  v17i007:  MGR, Bellcore window manager, Part06/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 7
  7. Archive-name: mgr/part06
  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 6 (of 61)."
  19. # Contents:  demo/Makefile demo/misc/grid.c demo/msg/Makefile
  20. #   demo/plot/mgrplot.1g demo/sh/c_menu demo/sh/loadfont
  21. #   demo/tests/test_text.c doc/cut.1 doc/font.5 doc/rotate.1
  22. #   doc/set_colormap.1 doc/set_termcap.1 doc/show.1 doc/tjfilter.1
  23. #   doc/usrman/README doc/usrman/croff/hash.h font-16/Ugal7x11r
  24. #   font-16/Ugal7x11rI font-16/Ugal7x11ru font-32/Ugal7x11r
  25. #   font-32/Ugal7x11rI font-32/Ugal7x11ru lib/ckmgrterm.c
  26. #   lib/restart.h src/Write.c src/blit/hash.h src/blit/pixel.C
  27. #   src/move.c src/move_box.c src/oblit/Makefile src/oblit/pixel.c
  28. # Wrapped by rsalz@papaya.bbn.com on Thu Nov 17 21:04:59 1988
  29. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  30. if test -f 'demo/Makefile' -a "${1}" != "-c" ; then 
  31.   echo shar: Will not clobber existing file \"'demo/Makefile'\"
  32. else
  33. echo shar: Extracting \"'demo/Makefile'\" \(1359 characters\)
  34. sed "s/^X//" >'demo/Makefile' <<'END_OF_FILE'
  35. X#                        Copyright (c) 1987 Bellcore
  36. X#                            All Rights Reserved
  37. X#       Permission is granted to copy or use this program, EXCEPT that it
  38. X#       may not be sold for profit, the copyright notice must be reproduced
  39. X#       on copies, and credit should be given to Bellcore where it is due.
  40. X#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  41. X
  42. X#    $Header: Makefile,v 4.6 88/08/22 10:20:28 sau Exp $
  43. X#    $Source: /tmp/mgrsrc/demo/RCS/Makefile,v $
  44. X
  45. XSUBDIR= icon mac misc msg plot sh tests 
  46. XINSROOT=/usr/mgr
  47. XINSDIR = $(INSROOT)/bin
  48. XSTART=.
  49. XMAKE=make
  50. XCPIO=demo.cpio
  51. X
  52. Xall small fast:
  53. X    for i in ${SUBDIR}; do \
  54. X    (cd $$i; echo "    making demo/$$i";\
  55. X      $(MAKE)  OTHERLIB=$(OTHERLIB) INSROOT=${INSROOT} INSDIR=${INSDIR} $@;\
  56. X     cd ..);\
  57. X    done    
  58. X
  59. Xinstall smallinstall:
  60. X    for i in ${SUBDIR}; do \
  61. X    (cd $$i; echo "    $@ing demo/$$i";\
  62. X      $(MAKE)  OTHERLIB=$(OTHERLIB) INSROOT=${INSROOT} INSDIR=${INSDIR} $@;\
  63. X     cd ..);\
  64. X    done    
  65. X
  66. Xclean clobber:
  67. X    -for i in ${SUBDIR}; do \
  68. X    (cd $$i; echo "    $@ing demo/$$i";\
  69. X      $(MAKE)  INSROOT=${INSROOT} INSDIR=${INSDIR} $@;\
  70. X     cd ..);\
  71. X    done    
  72. X
  73. Xlist:
  74. X    @echo ${START}/Makefile
  75. X    @echo ${START}/README
  76. X    @for i in ${SUBDIR}; do \
  77. X        echo "${START}/$$i";\
  78. X        if [ -d $$i ]; then \
  79. X             (cd $$i; $(MAKE) START=${START}/$$i list; cd ..);\
  80. X        fi \
  81. X    done    
  82. X
  83. Xcpio:
  84. X    make -s list | cpio -ocv > ${CPIO}
  85. END_OF_FILE
  86. # end of 'demo/Makefile'
  87. fi
  88. if test -f 'demo/misc/grid.c' -a "${1}" != "-c" ; then 
  89.   echo shar: Will not clobber existing file \"'demo/misc/grid.c'\"
  90. else
  91. echo shar: Extracting \"'demo/misc/grid.c'\" \(1270 characters\)
  92. sed "s/^X//" >'demo/misc/grid.c' <<'END_OF_FILE'
  93. X/*                        Copyright (c) 1988 Bellcore
  94. X *                            All Rights Reserved
  95. X *       Permission is granted to copy or use this program, EXCEPT that it
  96. X *       may not be sold for profit, the copyright notice must be reproduced
  97. X *       on copies, and credit should be given to Bellcore where it is due.
  98. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  99. X */
  100. X/*    $Header: grid.c,v 4.2 88/05/31 13:22:40 bianchi Exp $
  101. X    $Source: /tmp/mgrsrc/demo/misc/RCS/grid.c,v $
  102. X*/
  103. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/demo/misc/RCS/grid.c,v $$Revision: 4.2 $";
  104. X
  105. X/*    grid.c  - draw a grid of lines */
  106. X
  107. X#include "term.h"
  108. X#include <signal.h>
  109. X
  110. Xstatic
  111. Xclean( i )
  112. Xint    i;
  113. X{
  114. X    m_pop(0);
  115. X    exit(i);
  116. X}
  117. X
  118. X
  119. Xmain(argc,argv)
  120. X    int argc;
  121. X    char *argv[];
  122. X{
  123. X    int x,y,i,j;
  124. X    int xmax,ymax,dummy;
  125. X
  126. X    ckmgrterm( *argv );
  127. X
  128. X    if (argc >= 2) {
  129. X        x = atoi(argv[1]);
  130. X        y = atoi(argv[2]);
  131. X        }
  132. X    else {
  133. X        x = 10;
  134. X        y = 10;
  135. X        }
  136. X
  137. X    if (x<2)
  138. X        x = 10;
  139. X
  140. X    if (y<2)
  141. X        y = 10;
  142. X
  143. X    m_setup(0);
  144. X    get_size(&dummy,&dummy,&xmax,&ymax);
  145. X    signal(SIGTERM,clean);
  146. X    signal(SIGINT,clean);
  147. X    signal(SIGHUP,clean);
  148. X    m_clear();
  149. X    m_push(P_FLAGS);
  150. X    m_setmode(M_ABS);
  151. X
  152. X    m_func(B_SET);
  153. X    for(i=0;i<xmax;i+=x)
  154. X        m_line(i,0,i,ymax);
  155. X    for(i=0;i<ymax;i+=y)
  156. X        m_line(0,i,xmax,i);
  157. X    clean(0);
  158. X}
  159. END_OF_FILE
  160. chmod +x 'demo/misc/grid.c'
  161. # end of 'demo/misc/grid.c'
  162. fi
  163. if test -f 'demo/msg/Makefile' -a "${1}" != "-c" ; then 
  164.   echo shar: Will not clobber existing file \"'demo/msg/Makefile'\"
  165. else
  166. echo shar: Extracting \"'demo/msg/Makefile'\" \(1488 characters\)
  167. sed "s/^X//" >'demo/msg/Makefile' <<'END_OF_FILE'
  168. X#    $Header: Makefile,v 4.2 88/08/29 07:47:35 sau Exp $
  169. X#    $Source: /tmp/mgrsrc/demo/msg/RCS/Makefile,v $
  170. X
  171. X#                        Copyright (c) 1987 Bellcore
  172. X#                            All Rights Reserved
  173. X#       Permission is granted to copy or use this program, EXCEPT that it
  174. X#       may not be sold for profit, the copyright notice must be reproduced
  175. X#       on copies, and credit should be given to Bellcore where it is due.
  176. X#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  177. X
  178. X# makefile for message passing demo test routines
  179. X
  180. XSTART= .
  181. XLIB= ../../lib/libmgr.a
  182. XINCL= ../../lib
  183. XCFLAGS=-g -I$(INCL)
  184. X
  185. XCFILES= do.c client.c send.c menus.c
  186. XHFILES=    do.h
  187. XOTHER=  Makefile README start do_file do_ls do_more do_vi 
  188. X
  189. XALL =    do client menus send alias
  190. X
  191. Xall small:    $(ALL)
  192. X
  193. Xfast:        $(CFILES)
  194. X        cc -c $(CFLAGS) $(CFILES)
  195. X        make all
  196. X
  197. Xclient.o do.o:    do.h $(INCL)/term.h
  198. X
  199. Xclient:        client.o $(LIB)
  200. X        cc $(CFLAGS) -o client client.o $(LIB)
  201. X
  202. Xdo:        do.o $(LIB)
  203. X        cc $(CFLAGS) -o do do.o $(LIB)
  204. X
  205. Xmenus:        menus.o $(LIB)
  206. X        cc $(CFLAGS) -o menus menus.o $(LIB)
  207. X
  208. Xsend:        send.o $(LIB)
  209. X        cc $(CFLAGS) -o send send.o $(LIB)
  210. X
  211. Xalias:
  212. X        echo "alias cd 'chdir \!*;menus \`pwd\`'" >  alias
  213. X        echo "echo '^[1,9esend %w\r'"             >> alias
  214. X        echo "set path=(`pwd` \$$path)"             >> alias
  215. X
  216. Xclean:        
  217. X        rm -f *.o
  218. X
  219. Xclobber:        
  220. X        rm -f $(ALL)
  221. X
  222. Xinstall smallinstall:
  223. X
  224. Xlist:
  225. X        @for i in ${CFILES} ${HFILES} ${OTHER}; do \
  226. X             echo "${START}/$$i"; \
  227. X        done    
  228. X
  229. Xcpio:
  230. X        make -s list | cpio -ocv > ${CPIO}
  231. END_OF_FILE
  232. # end of 'demo/msg/Makefile'
  233. fi
  234. if test -f 'demo/plot/mgrplot.1g' -a "${1}" != "-c" ; then 
  235.   echo shar: Will not clobber existing file \"'demo/plot/mgrplot.1g'\"
  236. else
  237. echo shar: Extracting \"'demo/plot/mgrplot.1g'\" \(1408 characters\)
  238. sed "s/^X//" >'demo/plot/mgrplot.1g' <<'END_OF_FILE'
  239. X#                        Copyright (c) 1987 Bellcore
  240. X#                            All Rights Reserved
  241. X#       Permission is granted to copy or use this program, EXCEPT that it
  242. X#       may not be sold for profit, the copyright notice must be reproduced
  243. X#       on copies, and credit should be given to Bellcore where it is due.
  244. X#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  245. X
  246. X#    $Header: mgrplot.1g,v 4.1 88/06/21 14:03:10 bianchi Exp $
  247. X#    $Source: /tmp/mgrsrc/demo/plot/RCS/mgrplot.1g,v $
  248. X
  249. X.TH MGRPLOT 1G "August 21, 1987"
  250. X.AT 3
  251. X.SH NAME
  252. Xmgrplot \- \fBplot\fP graphics filter for an 
  253. X.I MGR
  254. Xterminal.
  255. X.SH SYNOPSIS
  256. X.B mgrplot < 
  257. X.I plot_file
  258. X.SH DESCRIPTION
  259. XThis command reads plotting instructions (see
  260. X.IR  plot (5))
  261. Xfrom the standard input and
  262. Xproduces plotting instructions suitable for an 
  263. X.I MGR
  264. Xwindow
  265. Xon its standard output.
  266. XSeveral options may be passed to 
  267. X.B mgrplot
  268. Xthrough the environment variables:
  269. X.TP
  270. XMAX_X"
  271. XThe maximum 
  272. X.I X
  273. Xvalue will not exeed
  274. X.I MAX_X,
  275. Xwhich defaults to 999.
  276. X.TP
  277. XMAX_Y"
  278. XThe maximum 
  279. X.I Y
  280. Xvalue will not exeed
  281. X.I MAX_Y,
  282. Xwhich defaults to 999.
  283. X.TP
  284. XWINDOW_ID"
  285. XSwitch to alternate window
  286. X.I
  287. Xwindow_id
  288. Xbefore starting plot, then switch back to the primary window upon
  289. Xcompletion.
  290. X.TP
  291. XPAUSE"
  292. XWait for the user to key
  293. X.I RETURN
  294. Xafter each plot.
  295. X.TP
  296. XDEBUG"
  297. XPrint debugging information on
  298. X.I stderr.
  299. X.SH "SEE ALSO"
  300. Xplot(3X), plot(3F), plot(5), mgr(1L)
  301. END_OF_FILE
  302. # end of 'demo/plot/mgrplot.1g'
  303. fi
  304. if test -f 'demo/sh/c_menu' -a "${1}" != "-c" ; then 
  305.   echo shar: Will not clobber existing file \"'demo/sh/c_menu'\"
  306. else
  307. echo shar: Extracting \"'demo/sh/c_menu'\" \(1463 characters\)
  308. sed "s/^X//" >'demo/sh/c_menu' <<'END_OF_FILE'
  309. X#!/bin/sh
  310. X#                        Copyright (c) 1988 Bellcore
  311. X#                            All Rights Reserved
  312. X#       Permission is granted to copy or use this program, EXCEPT that it
  313. X#       may not be sold for profit, the copyright notice must be reproduced
  314. X#       on copies, and credit should be given to Bellcore where it is due.
  315. X#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  316. X
  317. X#    $Header: c_menu,v 1.1 88/07/07 14:34:11 sau Exp $
  318. X#    $Source: /tmp/mgrsrc/demo/sh/RCS/c_menu,v $
  319. X
  320. X
  321. X#    filter cc error messages into mgr menus
  322. X
  323. X#    look for error messages of the form:
  324. X#    "foo.c", line 19: word undefined
  325. X
  326. Xsed -n -e 's/^"\([^"]*\)", line \([0-9]*\): \(.*\)/\1@\2@\3/p' | \
  327. X
  328. X#    turn the error message into menus
  329. X
  330. Xawk -F@ '
  331. XBEGIN    {    SEP="^E"    # menu field seperator
  332. X        ESC="^["    # mgr escape char
  333. X        MAX=15        # max errors per file
  334. X        }
  335. X
  336. X    { if (file == $1 && i++ <= MAX) {    # at error to current file name
  337. X        item[menu] = item[menu] SEP $3 
  338. X        action[menu] = action[menu] SEP $2 "G"
  339. X        }
  340. X    else if (file != $1) {            # get new file name
  341. X        menu++;  i=0;  file=$1
  342. X        main_item=main_item $1 SEP
  343. X        main_action=main_action ":n " $1 "\\r" SEP
  344. X        }
  345. X    }
  346. X
  347. XEND    {    text = SEP main_item main_action
  348. X        printf "%s%d,%dm%s",ESC,1,length(text),text    # main menu
  349. X        for(i=1;i<=menu;i++) {
  350. X            text=item[i] action[i] SEP
  351. X            printf "%s%d,%dm%s",ESC,i+1,length(text),text # errors
  352. X            printf "%s%d,%d,%d,15m",ESC,1,i-1,i+1    # menu links
  353. X            }
  354. X        printf "%s1m",ESC        # select menu
  355. X    }
  356. X'
  357. END_OF_FILE
  358. chmod +x 'demo/sh/c_menu'
  359. # end of 'demo/sh/c_menu'
  360. fi
  361. if test -f 'demo/sh/loadfont' -a "${1}" != "-c" ; then 
  362.   echo shar: Will not clobber existing file \"'demo/sh/loadfont'\"
  363. else
  364. echo shar: Extracting \"'demo/sh/loadfont'\" \(1457 characters\)
  365. sed "s/^X//" >'demo/sh/loadfont' <<'END_OF_FILE'
  366. X#!/bin/sh
  367. X#                        Copyright (c) 1988 Bellcore
  368. X#                            All Rights Reserved
  369. X#       Permission is granted to copy or use this program, EXCEPT that it
  370. X#       may not be sold for profit, the copyright notice must be reproduced
  371. X#       on copies, and credit should be given to Bellcore where it is due.
  372. X#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  373. X
  374. X#    $Header: loadfont,v 4.1 88/06/21 14:01:31 bianchi Exp $
  375. X#    $Source: /tmp/mgrsrc/demo/sh/RCS/loadfont,v $
  376. X
  377. X#    load a font by name into a give position
  378. X
  379. Xusage="Usage:  `basename $0` [ -c ] font-name font-number
  380. XLoad the given font-name into the given font number
  381. X-c    Make the given font the current font.
  382. X"
  383. X
  384. XESC=^[
  385. X
  386. Xif /bin/test $TERM != mgr
  387. Xthen
  388. X    echo "$0 only works on mgr terminals"
  389. X    exit 1
  390. Xfi
  391. X
  392. Xtrap 'exit' 1 2 15
  393. Xtrap 'stty echo' 0
  394. X
  395. Xstty -echo
  396. X
  397. Xcurrent=
  398. Xwhile [ -n "$1" ]
  399. Xdo
  400. X    case $1 in
  401. X    -c )
  402. X        current=yes
  403. X        ;;
  404. X    -* )
  405. X        echo >&2 "$0:  Illegal option argument.  '$1'"
  406. X        echo >&2 "${usage}"
  407. X        exit 255
  408. X        ;;
  409. X    * )
  410. X        break
  411. X    esac
  412. X    shift
  413. Xdone
  414. X
  415. Xif [ $# -lt 2 ]
  416. Xthen
  417. X    echo >&2 "${usage}"
  418. X    exit 255
  419. Xfi
  420. X
  421. Xfontname=$1
  422. Xshift
  423. X
  424. Xfontnumber=$1
  425. X
  426. Xcase "${fontnumber}" in
  427. X[1-9] | [1-9][0-9] )
  428. X    ;;
  429. X* )
  430. X    echo >&2 "$0:  font number '${fontnumber}' invalid.  Must be between
  431. X    1 through 99."
  432. X    echo >&2 "${usage}"
  433. X    exit 1
  434. Xesac
  435. X
  436. Xlen=`expr length ${fontname}`
  437. Xecho "${ESC}${fontnumber},${len}F${fontname}"
  438. Xif [ "${current}" = yes ]
  439. Xthen
  440. X    echo "${ESC}${fontnumber}F"
  441. Xfi
  442. END_OF_FILE
  443. chmod +x 'demo/sh/loadfont'
  444. # end of 'demo/sh/loadfont'
  445. fi
  446. if test -f 'demo/tests/test_text.c' -a "${1}" != "-c" ; then 
  447.   echo shar: Will not clobber existing file \"'demo/tests/test_text.c'\"
  448. else
  449. echo shar: Extracting \"'demo/tests/test_text.c'\" \(1305 characters\)
  450. sed "s/^X//" >'demo/tests/test_text.c' <<'END_OF_FILE'
  451. X/*                        Copyright (c) 1987 Bellcore
  452. X *                            All Rights Reserved
  453. X *       Permission is granted to copy or use this program, EXCEPT that it
  454. X *       may not be sold for profit, the copyright notice must be reproduced
  455. X *       on copies, and credit should be given to Bellcore where it is due.
  456. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  457. X */
  458. X/*    $Header: test_text.c,v 4.1 88/06/21 14:02:11 bianchi Exp $
  459. X    $Source: /tmp/mgrsrc/demo/tests/RCS/test_text.c,v $
  460. X*/
  461. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/demo/tests/RCS/test_text.c,v $$Revision: 4.1 $";
  462. X
  463. X/* test vector drawn text routines */
  464. X
  465. X#include "term.h"
  466. X
  467. X#define SIZE    500
  468. X#define FONTS    5
  469. X
  470. Xmain(argc,argv)
  471. Xchar **argv;
  472. X   {
  473. X   register int font;
  474. X   register int angle;
  475. X
  476. X   char buff[256];
  477. X
  478. X   if (argc<2) {
  479. X      fprintf(stderr,"usage: %s <text>\n",*argv);
  480. X      exit(1);   
  481. X      }
  482. X
  483. X   if (*argv[1] != ' ') {
  484. X      strcpy(buff,"  ");
  485. X      strcat(buff,argv[1]);
  486. X      }
  487. X   else
  488. X      strcpy(buff,argv[1]);
  489. X
  490. X   m_setup(M_DEBUG);
  491. X   m_func(B_SET);
  492. X   for(font=0;font<FONTS;font++) {
  493. X      m_clear();
  494. X      for(angle = 0;angle<360;angle +=30)
  495. X         text(buff,500,500,font,angle,SIZE/strlen(buff),SIZE/strlen(buff));
  496. X      m_flush();
  497. X      sleep(3);
  498. X      }
  499. X   exit(0);
  500. X   }
  501. END_OF_FILE
  502. # end of 'demo/tests/test_text.c'
  503. fi
  504. if test -f 'doc/cut.1' -a "${1}" != "-c" ; then 
  505.   echo shar: Will not clobber existing file \"'doc/cut.1'\"
  506. else
  507. echo shar: Extracting \"'doc/cut.1'\" \(1512 characters\)
  508. sed "s/^X//" >'doc/cut.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: cut.1,v 1.1 88/07/08 13:37:10 sau Exp $
  517. X'\"    $Source: /tmp/mgrsrc/doc/RCS/cut.1,v $
  518. X.TH cut 1L "January 30, 1988"
  519. X.SH NAME
  520. Xcut \- cut text from a
  521. X.I MGR
  522. Xwindow and send it to a program.
  523. X.SH SYNOPSIS
  524. X.B cut 
  525. X[ \fB-s\fP ]
  526. X[ \fBcommand\fP ]
  527. X.SH DESCRIPTION
  528. XCut watches the global 
  529. X.I MGR
  530. Xcut buffer and when activated, reads the buffer and starts
  531. X.B <command>
  532. Xwith the contents of the buffer as
  533. X.B <command>'s
  534. Xstandard input.
  535. X.LP
  536. XInitially,
  537. X.I cut
  538. Xprompts the user for a spot on the display, moves there and becomes
  539. Xa closed file cabinet icon.
  540. XAny time text is cut to to
  541. X.I MGR 's
  542. Xglobal buffer, 
  543. X.I cut
  544. Xhighlights the file cabinet to indicate it has seen the cut text.
  545. X.I Cut
  546. Xprepends the current date, time and message size to the text sent to 
  547. X.B <command>.
  548. X.LP
  549. XIf 
  550. X.B \-s
  551. Xis specified, 
  552. X.B cut
  553. Xdoes not prompt the user for a spot, but uses the window as is.
  554. XThis is useful for starting cut from the 
  555. X.I MGR
  556. Xstartup file.
  557. XIf no
  558. X.B command
  559. Xis given, 
  560. X.B cut 
  561. Xlooks for the command in the environment variable
  562. X.B CUT .
  563. X.SH BUGS
  564. X.SH SEE ALSO
  565. Xmgr(1L)
  566. Xsnap(1L)
  567. X.SH AUTHOR
  568. XS. A. Uhler
  569. END_OF_FILE
  570. # end of 'doc/cut.1'
  571. fi
  572. if test -f 'doc/font.5' -a "${1}" != "-c" ; then 
  573.   echo shar: Will not clobber existing file \"'doc/font.5'\"
  574. else
  575. echo shar: Extracting \"'doc/font.5'\" \(1343 characters\)
  576. sed "s/^X//" >'doc/font.5' <<'END_OF_FILE'
  577. X'\"                        Copyright (c) 1988 Bellcore
  578. X'\"                            All Rights Reserved
  579. X'\"       Permission is granted to copy or use this program, EXCEPT that it
  580. X'\"       may not be sold for profit, the copyright notice must be reproduced
  581. X'\"       on copies, and credit should be given to Bellcore where it is due.
  582. X'\"       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  583. X'\"
  584. X'\"    $Header: font.5,v 4.1 88/06/21 13:51:34 bianchi Exp $
  585. X'\"    $Source: /tmp/mgrsrc/doc/RCS/font.5,v $
  586. X.TH bitmap 5L "April 30, 1986"
  587. X.SH NAME
  588. XFont \- font file format for 
  589. X.I mgr
  590. Xbitmaps.
  591. X.SH SYNOPSIS
  592. X#include "font.h"
  593. X.SH DESCRIPTION
  594. X.B MGR
  595. Xfont files consist of a font header followed by the bitmap data for each character.
  596. XThe header format is:
  597. X.RS
  598. X.nf
  599. X
  600. Xstruct font_header {
  601. X    unsigned char type;        /* font type (magic number) '^v' */
  602. X    unsigned char wide;        /* character width (pixels) */
  603. X    unsigned char high;        /* char height (pixels) */
  604. X    unsigned char baseline;    /* pixels from bottom of glyph */
  605. X    unsigned char count;    /* number of chars in font */
  606. X    char start;            /* starting char in font */
  607. X   };
  608. X
  609. X.fi
  610. X.RE
  611. XAll of the characters in the font are are stored in a single bitmap,
  612. X.I wide
  613. Xx
  614. X.I count
  615. Xpixels wide,
  616. Xand
  617. X.I high
  618. Xpixels high.
  619. X.SH BUGS
  620. XOnly fixes width fonts are currently supported.
  621. X.SH SEE ALSO
  622. Xmgr(1L)
  623. Xbitmap(5L)
  624. END_OF_FILE
  625. # end of 'doc/font.5'
  626. fi
  627. if test -f 'doc/rotate.1' -a "${1}" != "-c" ; then 
  628.   echo shar: Will not clobber existing file \"'doc/rotate.1'\"
  629. else
  630. echo shar: Extracting \"'doc/rotate.1'\" \(1327 characters\)
  631. sed "s/^X//" >'doc/rotate.1' <<'END_OF_FILE'
  632. X'\"                        Copyright (c) 1988 Bellcore
  633. X'\"                            All Rights Reserved
  634. X'\"       Permission is granted to copy or use this program, EXCEPT that it
  635. X'\"       may not be sold for profit, the copyright notice must be reproduced
  636. X'\"       on copies, and credit should be given to Bellcore where it is due.
  637. X'\"       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  638. X'\"
  639. X'\"    $Header: rotate.1,v 4.1 88/06/21 13:52:01 bianchi Exp $
  640. X'\"    $Source: /tmp/mgrsrc/doc/RCS/rotate.1,v $
  641. X.TH rotate 1L "June 30, 1986"
  642. X.SH NAME
  643. Xrotate \- Rotate a bitmap 90 degrees.
  644. X.SH SYNOPSIS
  645. X.B Rotate
  646. X[ \fB\-w wide \-h high\fP ]
  647. X[ \fB\-x\fP ]
  648. X[ \fB\-v\fP ]
  649. X.SH DESCRIPTION
  650. X.B Rotate
  651. Xis a filter that rotates a 1 bit deep bitmap clockwise by 90 degrees.
  652. XNormally
  653. X.B rotate
  654. Xexpects a bitmap in 
  655. X.I mgr
  656. Xformat which uses a bitmap header to specify the width and height.
  657. XAlternately, the
  658. X.B -w
  659. Xand
  660. X.B -h
  661. Xflags may be used to indicate the bitmap 
  662. X.I width
  663. Xand
  664. X.I height
  665. Xif no bitmap header is present.
  666. XIf 
  667. X.B -x
  668. Xis specified, no bitmap header will be produced for the resultant
  669. Xbitmap.
  670. XThe 
  671. X.B -v
  672. Xflags prints 
  673. X.B <'s
  674. Xand
  675. X.B >'s
  676. Xto help stave off boredom while
  677. X.B rotate
  678. Xis running.
  679. X.SH BUGS
  680. X.B Rotate
  681. Xcan't currently rotate bitmaps with more than 1200 rows.
  682. X.SH SEE ALSO
  683. Xbitmap(5L)
  684. X.SH AUTHOR
  685. XS. A. Uhler
  686. END_OF_FILE
  687. # end of 'doc/rotate.1'
  688. fi
  689. if test -f 'doc/set_colormap.1' -a "${1}" != "-c" ; then 
  690.   echo shar: Will not clobber existing file \"'doc/set_colormap.1'\"
  691. else
  692. echo shar: Extracting \"'doc/set_colormap.1'\" \(1247 characters\)
  693. sed "s/^X//" >'doc/set_colormap.1' <<'END_OF_FILE'
  694. X'\"                        Copyright (c) 1988 Bellcore
  695. X'\"                            All Rights Reserved
  696. X'\"       Permission is granted to copy or use this program, EXCEPT that it
  697. X'\"       may not be sold for profit, the copyright notice must be reproduced
  698. X'\"       on copies, and credit should be given to Bellcore where it is due.
  699. X'\"       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  700. X'\"
  701. X'\"    $Header: set_colormap.1,v 4.1 88/06/29 14:06:19 bianchi Exp $
  702. X'\"    $Source: /tmp/mgrsrc/doc/RCS/set_colormap.1,v $
  703. X.TH set_colormap 1L "November 15, 1987"
  704. X.SH NAME
  705. Xset_colormap \- initialize colormap entries suitable for 
  706. X.B MGR .
  707. X.SH SYNOPSIS
  708. Xset_colormap
  709. X.SH DESCRIPTION
  710. X.B Set_colormap
  711. Xinitializes the first and last 24 colormap entries suitably for color 
  712. X.B MGR .
  713. XThe first 8 colors are set to
  714. Xwhite, black, red, green, blue, yellow, cyan, and magenta.
  715. XThe second 8 colors are 
  716. X.I dark
  717. Xversions of the first 8 colors, whereas the third 8 colors are
  718. X.I bright
  719. Xversions of the first 8 colors.
  720. XThe last 24 colors are set to the inverse of the first 24 colors.
  721. X.SH SEE ALSO
  722. Xmgr(1L)
  723. Xoverlay(1L)
  724. X.SH BUGS
  725. X.B Set_colormap
  726. Xis Sun specific, and no provision is made to set the remainder of the
  727. Xcolormap.
  728. X.SH AUTHOR
  729. XS. A. Uhler
  730. END_OF_FILE
  731. # end of 'doc/set_colormap.1'
  732. fi
  733. if test -f 'doc/set_termcap.1' -a "${1}" != "-c" ; then 
  734.   echo shar: Will not clobber existing file \"'doc/set_termcap.1'\"
  735. else
  736. echo shar: Extracting \"'doc/set_termcap.1'\" \(1458 characters\)
  737. sed "s/^X//" >'doc/set_termcap.1' <<'END_OF_FILE'
  738. X'\"                        Copyright (c) 1988 Bellcore
  739. X'\"                            All Rights Reserved
  740. X'\"       Permission is granted to copy or use this program, EXCEPT that it
  741. X'\"       may not be sold for profit, the copyright notice must be reproduced
  742. X'\"       on copies, and credit should be given to Bellcore where it is due.
  743. X'\"       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  744. X'\"
  745. X'\"    $Header: set_termcap.1,v 4.1 88/06/21 13:52:03 bianchi Exp $
  746. X'\"    $Source: /tmp/mgrsrc/doc/RCS/set_termcap.1,v $
  747. X.TH Set_termcap 1L "April 30, 1985"
  748. X.SH NAME
  749. Xset_termcap, set_emacs \- set an appropriate
  750. X.B TERMCAP
  751. Xentry for
  752. X.B MGR.
  753. X.SH SYNOPSIS
  754. Xeval `\fBset_termcap \fP[\fB -b \fP]`
  755. X.SH DESCRIPTION
  756. X.B Set_termcap
  757. XPrints on 
  758. X.I stdout
  759. Xthe
  760. X.I shell
  761. Xcommands required to set the
  762. X.B TERMCAP
  763. Xenvironment variable appropriately for the current window size on a
  764. X.I mgr
  765. Xterminal.
  766. X.I Set_termcap
  767. Xlooks at the
  768. X.B SHELL
  769. Xenvironment variable to decide what shell commands are appropriate.
  770. Xthe command
  771. X.B eval `set_termcap`
  772. Xsets the TERM and TERMCAP environment variables appropriately.
  773. X.LP
  774. X.I Set_emacs
  775. Xoptimizes the termcap entry for
  776. X.B GNU-emacs,
  777. Xwhich knows how to 
  778. Xdeal with scrolling regions and multiple line inserts and deletes,
  779. Xwhereas
  780. X.I set_termcap
  781. Xkeeps 
  782. X.B vi
  783. Xhappy.
  784. X.SH BUGS
  785. X.B csh
  786. Xusrs need to use:
  787. X.B set noglob; eval `set_termcap`
  788. Xto keep the shell from getting confused.
  789. X.SH SEE ALSO
  790. Xcsh(1)
  791. Xmgr(1L)
  792. Xsh(1)
  793. X.SH AUTHOR
  794. XS. A. Uhler
  795. END_OF_FILE
  796. # end of 'doc/set_termcap.1'
  797. fi
  798. if test -f 'doc/show.1' -a "${1}" != "-c" ; then 
  799.   echo shar: Will not clobber existing file \"'doc/show.1'\"
  800. else
  801. echo shar: Extracting \"'doc/show.1'\" \(1411 characters\)
  802. sed "s/^X//" >'doc/show.1' <<'END_OF_FILE'
  803. X'\"                        Copyright (c) 1988 Bellcore
  804. X'\"                            All Rights Reserved
  805. X'\"       Permission is granted to copy or use this program, EXCEPT that it
  806. X'\"       may not be sold for profit, the copyright notice must be reproduced
  807. X'\"       on copies, and credit should be given to Bellcore where it is due.
  808. X'\"       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  809. X'\"
  810. X'\"    $Header: show.1,v 4.1 88/06/21 13:52:07 bianchi Exp $
  811. X'\"    $Source: /tmp/mgrsrc/doc/RCS/show.1,v $
  812. X.TH show 1L "April 30, 1985"
  813. X.SH NAME
  814. Xshow \- displays a bit-mapped image on a
  815. X.I mgr
  816. Xwindow.
  817. X.SH SYNOPSIS
  818. X.B show
  819. X[\fB\-r\fP]
  820. X[ \fB<x coord>\fP ]
  821. X[ \fB<y coord>\fP ]
  822. X[\fB<bits wide>\fP]
  823. X.SH DESCRIPTION
  824. X.B Show
  825. Xcopies its standard input, which is assumed to be in
  826. X.I MGR bitmap format
  827. Xto the
  828. Xwindow as a bit mapped image.
  829. XThe starting position of the bit map relative to the top left
  830. Xcorner of the window may be given as
  831. X.I x coord
  832. Xand
  833. X.I y coord
  834. Xrespectively.
  835. XIf
  836. X.I bits wide
  837. Xis specified on the command line,
  838. X.B show
  839. Xassumes no bitmap header is present.
  840. XSpecifying
  841. X.B \-r
  842. Xchanges the sense of black and white.
  843. X.LP
  844. XBit maps too big to fit on the window are clipped.
  845. XThe incoming data for each row should be rounded up to an
  846. Xeven number of bytes.  The bits are displayed left to right,
  847. Xthen top to bottom.
  848. X.SH BUGS
  849. XLarge bit maps take too long to display.
  850. X.SH SEE ALSO
  851. Xmgr(1L)
  852. Xbitmap(5L)
  853. END_OF_FILE
  854. # end of 'doc/show.1'
  855. fi
  856. if test -f 'doc/tjfilter.1' -a "${1}" != "-c" ; then 
  857.   echo shar: Will not clobber existing file \"'doc/tjfilter.1'\"
  858. else
  859. echo shar: Extracting \"'doc/tjfilter.1'\" \(1378 characters\)
  860. sed "s/^X//" >'doc/tjfilter.1' <<'END_OF_FILE'
  861. X'\"                        Copyright (c) 1988 Bellcore
  862. X'\"                            All Rights Reserved
  863. X'\"       Permission is granted to copy or use this program, EXCEPT that it
  864. X'\"       may not be sold for profit, the copyright notice must be reproduced
  865. X'\"       on copies, and credit should be given to Bellcore where it is due.
  866. X'\"       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  867. X'\"
  868. X'\"    $Header: tjfilter.1,v 4.1 88/06/21 13:52:17 bianchi Exp $
  869. X'\"    $Source: /tmp/mgrsrc/doc/RCS/tjfilter.1,v $
  870. X.TH tjfilter 1L "June 30, 1986"
  871. X.SH NAME
  872. XTjfilter \- Bitmap 
  873. X.I lpr
  874. Xfilter for the
  875. X.B HP ThinkJet
  876. Xprinter.
  877. X.SH SYNOPSIS
  878. X.B tjfilter
  879. X[ \fB-r\fP ]
  880. X.SH DESCRIPTION
  881. X.B Tjfilter
  882. Xreads its
  883. X.I standard input
  884. Xwhich is expected to be a one bit deep
  885. X.I bitmap
  886. Ximage in
  887. X.B mgr
  888. Xformat and transforms it for printing on an
  889. X.B HP ThinkJet
  890. Xprinter.
  891. XIf 
  892. X.B -r
  893. Xis specified, the bitmap is reversed (ala a photographic negative).
  894. XFor bitmaps which are wider than 640 dots, but less than 640 dots
  895. Xhigh,
  896. X.B tjfilter
  897. Xcalls
  898. X.B rotate(1L)
  899. Xin order to fit the bitmap on the printer.
  900. X.LP
  901. X.B Tjfilter
  902. Xis normally used as the
  903. X.B vf
  904. Xfilter in the
  905. X.B HP ThinkJet
  906. Xprintcap entry: ...:vf=/usr/local/bin/tjfilter:...
  907. X.SH BUGS
  908. XThe 
  909. X.B HP Thinkjet
  910. Xprinter can print a maximum of 640 dots per line.  
  911. XBitmaps that don't fit get truncated.
  912. X.SH SEE ALSO
  913. Xbitmap(5L)
  914. Xrotate(1L)
  915. Xlpr(1L)
  916. END_OF_FILE
  917. # end of 'doc/tjfilter.1'
  918. fi
  919. if test -f 'doc/usrman/README' -a "${1}" != "-c" ; then 
  920.   echo shar: Will not clobber existing file \"'doc/usrman/README'\"
  921. else
  922. echo shar: Extracting \"'doc/usrman/README'\" \(1237 characters\)
  923. sed "s/^X//" >'doc/usrman/README' <<'END_OF_FILE'
  924. X#                        Copyright (c) 1988 Bellcore
  925. X#                            All Rights Reserved
  926. X#       Permission is granted to copy or use this program, EXCEPT that it
  927. X#       may not be sold for profit, the copyright notice must be reproduced
  928. X#       on copies, and credit should be given to Bellcore where it is due.
  929. X#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  930. X
  931. X#    $Header: README,v 4.2 88/06/30 12:44:50 bianchi Exp $
  932. X#    $Source: /tmp/mgrsrc/doc/usrman/RCS/README,v $
  933. X
  934. XThis directory contains the MGR programmers manual.
  935. X
  936. XThe manual is made in two passes.  The first pass calculates the
  937. Xfunction index and category sections, then the second pass prints the
  938. Xdocument.
  939. X
  940. X"make ver"    increments a version number to keep the copies straight
  941. X"make print"    prints the manual on a photocomposer
  942. X"make nroff"    prints the manual via nroff onto the stdout
  943. X"make"        runs ver, index, and print
  944. X
  945. XINDEX                extracts the index from temp.index
  946. X
  947. X
  948. Xcontents:
  949. Xdoc.0                troff macros
  950. Xdoc.1                introduction
  951. Xdoc.2                macros
  952. Xdoc.3                macros
  953. Xdoc.4                macros
  954. Xdoc.5                functions
  955. Xdoc.6                programming example
  956. Xdoc.7                function/macro listing by category
  957. Xdoc.8                function/macro index
  958. Xdoc.9                code to print the table of contents
  959. X
  960. END_OF_FILE
  961. # end of 'doc/usrman/README'
  962. fi
  963. if test -f 'doc/usrman/croff/hash.h' -a "${1}" != "-c" ; then 
  964.   echo shar: Will not clobber existing file \"'doc/usrman/croff/hash.h'\"
  965. else
  966. echo shar: Extracting \"'doc/usrman/croff/hash.h'\" \(1272 characters\)
  967. sed "s/^X//" >'doc/usrman/croff/hash.h' <<'END_OF_FILE'
  968. X/*                        Copyright (c) 1988 Bellcore
  969. X *                            All Rights Reserved
  970. X *       Permission is granted to copy or use this program, EXCEPT that it
  971. X *       may not be sold for profit, the copyright notice must be reproduced
  972. X *       on copies, and credit should be given to Bellcore where it is due.
  973. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  974. X */
  975. X/*    $Header: hash.h,v 1.1 88/07/07 10:12:10 sau Exp $
  976. X    $Source: /tmp/mgrsrc/doc/usrman/croff/RCS/hash.h,v $
  977. X*/
  978. Xstatic char    h_hash_[] = "$Source: /tmp/mgrsrc/doc/usrman/croff/RCS/hash.h,v $$Revision: 1.1 $";
  979. X
  980. X/* hash table item */
  981. X
  982. Xstruct table_entry {
  983. X    char *name;        /* item name */
  984. X    char *value;        /* current value */
  985. X    int  count;        /* # of references to this entry */
  986. X    int  flags;        /* entry flags */
  987. X    struct table_entry
  988. X         *next;        /* address of next table entry */
  989. X    };
  990. X
  991. Xstruct table_data {
  992. X    char *name;        /* item name */
  993. X    char *value;        /* current value */
  994. X    int  count;        /* # of references to this entry */
  995. X    };
  996. X
  997. Xtypedef struct table_entry  TABLE;
  998. X
  999. X#define HASH_STATIC        0x001    /* static entry */
  1000. X
  1001. X#ifndef Same
  1002. X#   define Same(x,y)        (strcmp(x,y) ? 0 : 1)
  1003. X#else
  1004. X    extern int Same();
  1005. X#endif
  1006. X#ifndef HASH
  1007. X#   define HASH    hash            /* name of hash routine */
  1008. X#endif
  1009. END_OF_FILE
  1010. # end of 'doc/usrman/croff/hash.h'
  1011. fi
  1012. if test -f 'font-16/Ugal7x11r' -a "${1}" != "-c" ; then 
  1013.   echo shar: Will not clobber existing file \"'font-16/Ugal7x11r'\"
  1014. else
  1015. echo shar: Extracting \"'font-16/Ugal7x11r'\" \(1311 characters\)
  1016. sed "s/^X//" >'font-16/Ugal7x11r' <<'END_OF_FILE'
  1017. Xbegin 644 gal7x11r.fnt
  1018. XM%@<+ V @ $"@H0P," A       )X(.'$#XX^.'   $ 0' !QP<>/GQQ$^/1$
  1019. XM"+$<>.'AQ\B1(D2)X^0/A !  0  0 < 0" B X                #A' !G
  1020. XM $"@HY12"! @      *$81(DB!$"1(@  ( ((AB)(B1($")$("2$#;$B11$2
  1021. XM(0B1(D2((@0 B@ @ 0  0 @ 0  B (        (       $! @!4 $"A1524
  1022. XM"! @0(    2,H! DB! $1(D! 0 $(B2)(@1($"!$("4$"JDB11$2 0B1*BA0
  1023. XM0@( B@ 086'#1QX:6. "0(V6'%AI8<>(D2)$B>$! AE6 $"CY1D(B" 14(  
  1024. XM  24("'$CQX$.(D! @^"!$R)X@1/'BY\("<$"JDB11'AP0B**A!00@( D0 (
  1025. XMD9(DR(@F9"#B@(J9(F29DB((D2(HB"$! BUD $ !0X(5"" 0X^ /@ BD($ G
  1026. XMP)$(1'@ !  !"%3Y$@1($")$("4$"*4B>1% (0B**A @@@$ D0  <1($3P@B
  1027. XM1" C (J1(D2) 8((BBH0B$$! B8'   "@43B " 14(    C$(( @@)$(1 @ 
  1028. XM @^""%2)$@1($")$("2$"*4B01$@(0B*/B@@@@$ @   D1($2 @B1" B@(J1
  1029. XM(D2) $((BBHHB(8! 8 @ $ 'Q4EC " 00(8 "!"$(0(@D)$01 D# 0 $ $R)
  1030. XM$B1($"9$(22$"*,B0=$2(0B$%$0A @" @   D9(DR(@F1" B0(J1(F29 B))
  1031. XMA"I$F0$! @ @ $ "@Y%<@! @  ( "!!X^?' CPX0.'$! ( (""")X<>/D!I$
  1032. XM^,1'R*,<0.$1P0<$%$0AX@" @   :6'#1P@:1" B((J1'%AI <&&A!1$:>$!
  1033. XM @ @   % 0&  ! @  (  "             ! $ 0"!P                 
  1034. XM "           ^!/@          "   @     $ (        " $! @ @   %
  1035. XM 0    A   0  "             "                         !      
  1036. XM      !  '\        B  $@     $ (        B $! @ @            
  1037. XM                                                            
  1038. X>           <  #      $ (        < #A'  \
  1039. Xend
  1040. END_OF_FILE
  1041. # end of 'font-16/Ugal7x11r'
  1042. fi
  1043. if test -f 'font-16/Ugal7x11rI' -a "${1}" != "-c" ; then 
  1044.   echo shar: Will not clobber existing file \"'font-16/Ugal7x11rI'\"
  1045. else
  1046. echo shar: Extracting \"'font-16/Ugal7x11rI'\" \(1312 characters\)
  1047. sed "s/^X//" >'font-16/Ugal7x11rI' <<'END_OF_FILE'
  1048. Xbegin 644 gal7x11rI.fnt
  1049. XM%@<+ V @ ;]?7O/S]_>_______V'WQX[\''!QX___[_OG/^./CAP8..[!PN[
  1050. XM]T[CAQX>.#=NW;MV'!OP>_^__O__O_C_O]_=_'________________\>X_^8
  1051. XM ;]?7&NM]^_?______U[GNW;=^[]NW?__W_WHN=VW=NW[]V[W]M[\D[=NN[M
  1052. XMWO=NW;MWW?O_=?_?_O__O_?_O__=_W________W_______[^_?^K ;]>NJMK
  1053. XM]^_?OW____MS7^_;=^_[NW;^_O_[HMMVW?NW[]^[W]K[]5;=NN[M_O=NU=>O
  1054. XMO?W_=?_OGIX\N.'EIQ_]OW)IXZ>6GCAW;MV[=A[^_>:I ;]<&N;W=]_NKW__
  1055. XM__MKW]X[<.'[QW;^_?!]A+-V'?NPX=&#W]C[]5;=NNX>/O=UU>^OO?W_;O_W
  1056. XM;FW;-W?9F]\=?W5FW9MF;=WW;MW7=][^_=*; ;_^O'WJ]]_O'!_P?_=;W[_8
  1057. XM/V[WNX?_^__^B*L&[?NW[]V[W]K[]UK=ANZ_WO=UU>_???[_;O__CNW[L/?=
  1058. XMN]_<_W5NW;MV_GWW==7O=[[^_=GX ?_]?KL=_]_NKW____<[WW_??V[WN_?_
  1059. XM_?!]B*MV[?NW[]V[W]M[]UK=ON[?WO=UP=????[_?___;NW[M_?=N]_=?W5N
  1060. XMW;MV_[WW==77=WG^_G_? ;_X.K:<_]_OOWG_]^][WOW?;V[ON_;\_O_[@+-V
  1061. XM[=NW[]F[WMM[]US=OB[MWO=[Z[O>_?]_?___;FW;-W?9N]_=OW5NW9MF_=VV
  1062. XM>]6[9O[^_?_? ;_]?&ZC?^_?__W_]^^'!@X_</'OQX[^_W_WB-]V'CAP;^6[
  1063. XM!SNX-USCOQ[N/OC[Z[O>'?]_?___EIX\N/?EN]_=WW5NXZ>6_CYY>^N[EA[^
  1064. XM_?_? ?_Z_OY__^_?__W__]_____________^_[_OB./_________________
  1065. XM_]___________!^P?__________]___?_____[_W________]_[^_?_? ?_Z
  1066. XM_O____>___O__]_____________]____@/___________________^______
  1067. XM______^__X#________=__[?_____[_W________=_[^_?_? ?__________
  1068. XM________________________@/__________________________________
  1069. X>___________C__\______[_W________C_\>X__#
  1070. Xend
  1071. END_OF_FILE
  1072. # end of 'font-16/Ugal7x11rI'
  1073. fi
  1074. if test -f 'font-16/Ugal7x11ru' -a "${1}" != "-c" ; then 
  1075.   echo shar: Will not clobber existing file \"'font-16/Ugal7x11ru'\"
  1076. else
  1077. echo shar: Extracting \"'font-16/Ugal7x11ru'\" \(1312 characters\)
  1078. sed "s/^X//" >'font-16/Ugal7x11ru' <<'END_OF_FILE'
  1079. Xbegin 644 gal7x11ru.fnt
  1080. XM%@<+ V @ $"@H0P," A       )X(.'$#XX^.'   $ 0' !QP<>/GQQ$^/1$
  1081. XM"+$<>.'AQ\B1(D2)X^0/A !  0  0 < 0" B X                #A' !G
  1082. XM $"@HY12"! @      *$81(DB!$"1(@  ( ((AB)(B1($")$("2$#;$B11$2
  1083. XM(0B1(D2((@0 B@ @ 0  0 @ 0  B (        (       $! @!4 $"A1524
  1084. XM"! @0(    2,H! DB! $1(D! 0 $(B2)(@1($"!$("4$"JDB11$2 0B1*BA0
  1085. XM0@( B@ 086'#1QX:6. "0(V6'%AI8<>(D2)$B>$! AE6 $"CY1D(B" 14(  
  1086. XM  24("'$CQX$.(D! @^"!$R)X@1/'BY\("<$"JDB11'AP0B**A!00@( D0 (
  1087. XMD9(DR(@F9"#B@(J9(F29DB((D2(HB"$! BUD $ !0X(5"" 0X^ /@ BD($ G
  1088. XMP)$(1'@ !  !"%3Y$@1($")$("4$"*4B>1% (0B**A @@@$ D0  <1($3P@B
  1089. XM1" C (J1(D2) 8((BBH0B$$! B8'   "@43B " 14(    C$(( @@)$(1 @ 
  1090. XM @^""%2)$@1($")$("2$"*4B01$@(0B*/B@@@@$ @   D1($2 @B1" B@(J1
  1091. XM(D2) $((BBHHB(8! 8 @ $ 'Q4EC " 00(8 "!"$(0(@D)$01 D# 0 $ $R)
  1092. XM$B1($"9$(22$"*,B0=$2(0B$%$0A @" @   D9(DR(@F1" B0(J1(F29 B))
  1093. XMA"I$F0$! @ @ $ "@Y%<@! @  ( "!!X^?' CPX0.'$! ( (""")X<>/D!I$
  1094. XM^,1'R*,<0.$1P0<$%$0AX@" @   :6'#1P@:1" B((J1'%AI <&&A!1$:>$!
  1095. XM @ @   % 0&  ! @  (  "             ! $ 0"!P                 
  1096. XM "           ^!/@          "   @     $ (        " $! @ @ ?__
  1097. XM____________________________________________________________
  1098. XM________________________________________________            
  1099. XM                                                            
  1100. X>           <  #      $ (        < #A'  \
  1101. Xend
  1102. END_OF_FILE
  1103. # end of 'font-16/Ugal7x11ru'
  1104. fi
  1105. if test -f 'font-32/Ugal7x11r' -a "${1}" != "-c" ; then 
  1106.   echo shar: Will not clobber existing file \"'font-32/Ugal7x11r'\"
  1107. else
  1108. echo shar: Extracting \"'font-32/Ugal7x11r'\" \(1311 characters\)
  1109. sed "s/^X//" >'font-32/Ugal7x11r' <<'END_OF_FILE'
  1110. Xbegin 644 gal7x11r.fnt
  1111. XM& <+ V @ $"@H0P," A       )X(.'$#XX^.'   $ 0' !QP<>/GQQ$^/1$
  1112. XM"+$<>.'AQ\B1(D2)X^0/A !  0  0 < 0" B X                #A' !G
  1113. XM $"@HY12"! @      *$81(DB!$"1(@  ( ((AB)(B1($")$("2$#;$B11$2
  1114. XM(0B1(D2((@0 B@ @ 0  0 @ 0  B (        (       $! @!4 $"A1524
  1115. XM"! @0(    2,H! DB! $1(D! 0 $(B2)(@1($"!$("4$"JDB11$2 0B1*BA0
  1116. XM0@( B@ 086'#1QX:6. "0(V6'%AI8<>(D2)$B>$! AE6 $"CY1D(B" 14(  
  1117. XM  24("'$CQX$.(D! @^"!$R)X@1/'BY\("<$"JDB11'AP0B**A!00@( D0 (
  1118. XMD9(DR(@F9"#B@(J9(F29DB((D2(HB"$! BUD $ !0X(5"" 0X^ /@ BD($ G
  1119. XMP)$(1'@ !  !"%3Y$@1($")$("4$"*4B>1% (0B**A @@@$ D0  <1($3P@B
  1120. XM1" C (J1(D2) 8((BBH0B$$! B8'   "@43B " 14(    C$(( @@)$(1 @ 
  1121. XM @^""%2)$@1($")$("2$"*4B01$@(0B*/B@@@@$ @   D1($2 @B1" B@(J1
  1122. XM(D2) $((BBHHB(8! 8 @ $ 'Q4EC " 00(8 "!"$(0(@D)$01 D# 0 $ $R)
  1123. XM$B1($"9$(22$"*,B0=$2(0B$%$0A @" @   D9(DR(@F1" B0(J1(F29 B))
  1124. XMA"I$F0$! @ @ $ "@Y%<@! @  ( "!!X^?' CPX0.'$! ( (""")X<>/D!I$
  1125. XM^,1'R*,<0.$1P0<$%$0AX@" @   :6'#1P@:1" B((J1'%AI <&&A!1$:>$!
  1126. XM @ @   % 0&  ! @  (  "             ! $ 0"!P                 
  1127. XM "           ^!/@          "   @     $ (        " $! @ @   %
  1128. XM 0    A   0  "             "                         !      
  1129. XM      !  '\        B  $@     $ (        B $! @ @            
  1130. XM                                                            
  1131. X>           <  #      $ (        < #A'  \
  1132. Xend
  1133. END_OF_FILE
  1134. # end of 'font-32/Ugal7x11r'
  1135. fi
  1136. if test -f 'font-32/Ugal7x11rI' -a "${1}" != "-c" ; then 
  1137.   echo shar: Will not clobber existing file \"'font-32/Ugal7x11rI'\"
  1138. else
  1139. echo shar: Extracting \"'font-32/Ugal7x11rI'\" \(1312 characters\)
  1140. sed "s/^X//" >'font-32/Ugal7x11rI' <<'END_OF_FILE'
  1141. Xbegin 644 gal7x11rI.fnt
  1142. XM& <+ V @ ;]?7O/S]_>_______V'WQX[\''!QX___[_OG/^./CAP8..[!PN[
  1143. XM]T[CAQX>.#=NW;MV'!OP>_^__O__O_C_O]_=_'________________\>X_^8
  1144. XM ;]?7&NM]^_?______U[GNW;=^[]NW?__W_WHN=VW=NW[]V[W]M[\D[=NN[M
  1145. XMWO=NW;MWW?O_=?_?_O__O_?_O__=_W________W_______[^_?^K ;]>NJMK
  1146. XM]^_?OW____MS7^_;=^_[NW;^_O_[HMMVW?NW[]^[W]K[]5;=NN[M_O=NU=>O
  1147. XMO?W_=?_OGIX\N.'EIQ_]OW)IXZ>6GCAW;MV[=A[^_>:I ;]<&N;W=]_NKW__
  1148. XM__MKW]X[<.'[QW;^_?!]A+-V'?NPX=&#W]C[]5;=NNX>/O=UU>^OO?W_;O_W
  1149. XM;FW;-W?9F]\=?W5FW9MF;=WW;MW7=][^_=*; ;_^O'WJ]]_O'!_P?_=;W[_8
  1150. XM/V[WNX?_^__^B*L&[?NW[]V[W]K[]UK=ANZ_WO=UU>_???[_;O__CNW[L/?=
  1151. XMN]_<_W5NW;MV_GWW==7O=[[^_=GX ?_]?KL=_]_NKW____<[WW_??V[WN_?_
  1152. XM_?!]B*MV[?NW[]V[W]M[]UK=ON[?WO=UP=????[_?___;NW[M_?=N]_=?W5N
  1153. XMW;MV_[WW==77=WG^_G_? ;_X.K:<_]_OOWG_]^][WOW?;V[ON_;\_O_[@+-V
  1154. XM[=NW[]F[WMM[]US=OB[MWO=[Z[O>_?]_?___;FW;-W?9N]_=OW5NW9MF_=VV
  1155. XM>]6[9O[^_?_? ;_]?&ZC?^_?__W_]^^'!@X_</'OQX[^_W_WB-]V'CAP;^6[
  1156. XM!SNX-USCOQ[N/OC[Z[O>'?]_?___EIX\N/?EN]_=WW5NXZ>6_CYY>^N[EA[^
  1157. XM_?_? ?_Z_OY__^_?__W__]_____________^_[_OB./_________________
  1158. XM_]___________!^P?__________]___?_____[_W________]_[^_?_? ?_Z
  1159. XM_O____>___O__]_____________]____@/___________________^______
  1160. XM______^__X#________=__[?_____[_W________=_[^_?_? ?__________
  1161. XM________________________@/__________________________________
  1162. X>___________C__\______[_W________C_\>X__#
  1163. Xend
  1164. END_OF_FILE
  1165. # end of 'font-32/Ugal7x11rI'
  1166. fi
  1167. if test -f 'font-32/Ugal7x11ru' -a "${1}" != "-c" ; then 
  1168.   echo shar: Will not clobber existing file \"'font-32/Ugal7x11ru'\"
  1169. else
  1170. echo shar: Extracting \"'font-32/Ugal7x11ru'\" \(1312 characters\)
  1171. sed "s/^X//" >'font-32/Ugal7x11ru' <<'END_OF_FILE'
  1172. Xbegin 644 gal7x11ru.fnt
  1173. XM& <+ V @ $"@H0P," A       )X(.'$#XX^.'   $ 0' !QP<>/GQQ$^/1$
  1174. XM"+$<>.'AQ\B1(D2)X^0/A !  0  0 < 0" B X                #A' !G
  1175. XM $"@HY12"! @      *$81(DB!$"1(@  ( ((AB)(B1($")$("2$#;$B11$2
  1176. XM(0B1(D2((@0 B@ @ 0  0 @ 0  B (        (       $! @!4 $"A1524
  1177. XM"! @0(    2,H! DB! $1(D! 0 $(B2)(@1($"!$("4$"JDB11$2 0B1*BA0
  1178. XM0@( B@ 086'#1QX:6. "0(V6'%AI8<>(D2)$B>$! AE6 $"CY1D(B" 14(  
  1179. XM  24("'$CQX$.(D! @^"!$R)X@1/'BY\("<$"JDB11'AP0B**A!00@( D0 (
  1180. XMD9(DR(@F9"#B@(J9(F29DB((D2(HB"$! BUD $ !0X(5"" 0X^ /@ BD($ G
  1181. XMP)$(1'@ !  !"%3Y$@1($")$("4$"*4B>1% (0B**A @@@$ D0  <1($3P@B
  1182. XM1" C (J1(D2) 8((BBH0B$$! B8'   "@43B " 14(    C$(( @@)$(1 @ 
  1183. XM @^""%2)$@1($")$("2$"*4B01$@(0B*/B@@@@$ @   D1($2 @B1" B@(J1
  1184. XM(D2) $((BBHHB(8! 8 @ $ 'Q4EC " 00(8 "!"$(0(@D)$01 D# 0 $ $R)
  1185. XM$B1($"9$(22$"*,B0=$2(0B$%$0A @" @   D9(DR(@F1" B0(J1(F29 B))
  1186. XMA"I$F0$! @ @ $ "@Y%<@! @  ( "!!X^?' CPX0.'$! ( (""")X<>/D!I$
  1187. XM^,1'R*,<0.$1P0<$%$0AX@" @   :6'#1P@:1" B((J1'%AI <&&A!1$:>$!
  1188. XM @ @   % 0&  ! @  (  "             ! $ 0"!P                 
  1189. XM "           ^!/@          "   @     $ (        " $! @ @ ?__
  1190. XM____________________________________________________________
  1191. XM________________________________________________            
  1192. XM                                                            
  1193. X>           <  #      $ (        < #A'  \
  1194. Xend
  1195. END_OF_FILE
  1196. # end of 'font-32/Ugal7x11ru'
  1197. fi
  1198. if test -f 'lib/ckmgrterm.c' -a "${1}" != "-c" ; then 
  1199.   echo shar: Will not clobber existing file \"'lib/ckmgrterm.c'\"
  1200. else
  1201. echo shar: Extracting \"'lib/ckmgrterm.c'\" \(1341 characters\)
  1202. sed "s/^X//" >'lib/ckmgrterm.c' <<'END_OF_FILE'
  1203. X/*                        Copyright (c) 1988 Bellcore
  1204. X *                            All Rights Reserved
  1205. X *       Permission is granted to copy or use this program, EXCEPT that it
  1206. X *       may not be sold for profit, the copyright notice must be reproduced
  1207. X *       on copies, and credit should be given to Bellcore where it is due.
  1208. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1209. X */
  1210. X/*    $Header: ckmgrterm.c,v 4.1 88/06/21 13:40:34 bianchi Exp $
  1211. X    $Source: /tmp/mgrsrc/lib/RCS/ckmgrterm.c,v $
  1212. X*/
  1213. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/lib/RCS/ckmgrterm.c,v $$Revision: 4.1 $";
  1214. X
  1215. X#include    <stdio.h>
  1216. X
  1217. X
  1218. X/*    Check to see if the TERM environment variable says this is an "mgr"
  1219. X    terminal.
  1220. X    If it is not, print a message, optionally preceed by the given text,
  1221. X    and exit with exit code 1.
  1222. X    Otherwise, return.
  1223. X    Absence of a TERM environment variable is considered OK, so that
  1224. X    these commands can be run within a remote shell.
  1225. X*/
  1226. X
  1227. Xvoid
  1228. Xckmgrterm( text )
  1229. Xchar    *text;
  1230. X{
  1231. X    char    *getenv();
  1232. X    char    *term;
  1233. X
  1234. X    term = getenv( "TERM" );
  1235. X    /*    If TERM is defined, has a non-null value,
  1236. X        and TERM != mgr, complain and exit.
  1237. X    */
  1238. X    if( term  &&  *term  &&  strcmp( term, "mgr" ) ) {
  1239. X        if( text  &&  *text ) {
  1240. X            fputs( text, stderr );
  1241. X            fputs( ":  ", stderr );
  1242. X        }
  1243. X        fputs( "only runs on mgr terminals\n", stderr );
  1244. X        exit( 1 );
  1245. X    }
  1246. X}
  1247. END_OF_FILE
  1248. # end of 'lib/ckmgrterm.c'
  1249. fi
  1250. if test -f 'lib/restart.h' -a "${1}" != "-c" ; then 
  1251.   echo shar: Will not clobber existing file \"'lib/restart.h'\"
  1252. else
  1253. echo shar: Extracting \"'lib/restart.h'\" \(1235 characters\)
  1254. sed "s/^X//" >'lib/restart.h' <<'END_OF_FILE'
  1255. X/*                        Copyright (c) 1987 Bellcore
  1256. X *                            All Rights Reserved
  1257. X *       Permission is granted to copy or use this program, EXCEPT that it
  1258. X *       may not be sold for profit, the copyright notice must be reproduced
  1259. X *       on copies, and credit should be given to Bellcore where it is due.
  1260. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1261. X */
  1262. X/*    $Header: restart.h,v 4.1 88/06/21 13:40:38 bianchi Exp $
  1263. X    $Source: /tmp/mgrsrc/lib/RCS/restart.h,v $
  1264. X*/
  1265. Xstatic char    h_restart_[] = "$Source: /tmp/mgrsrc/lib/RCS/restart.h,v $$Revision: 4.1 $";
  1266. X
  1267. X/* stuff for restarting upon reshape/ redraw */
  1268. X
  1269. X#ifndef ECHO
  1270. X#include <sgtty.h>
  1271. X#endif
  1272. X
  1273. X#include <setjmp.h>
  1274. X
  1275. X#ifndef SIGQUIT
  1276. X#include <signal.h>
  1277. X#endif
  1278. X
  1279. Xextern int _Catch(), _Clean();
  1280. Xextern jmp_buf _env;
  1281. X
  1282. X#ifdef QUIT_CHAR
  1283. Xstatic char *_quit = QUIT_CHAR;
  1284. X#else
  1285. Xstatic char *_quit = "\034";
  1286. X#endif
  1287. X
  1288. X#define Ignore()    signal(SIGQUIT,SIG_IGN)
  1289. X
  1290. X#define Restart()    signal(SIGINT,_Clean), \
  1291. X             signal(SIGTERM,_Clean), \
  1292. X             signal(SIGQUIT,_Catch), \
  1293. X             m_saveenvcount = m_envcount, \
  1294. X             m_pushsave(P_EVENT), \
  1295. X             m_setevent(RESHAPE,_quit), \
  1296. X             m_setevent(REDRAW,_quit), \
  1297. X             m_setevent(UNCOVERED,_quit), \
  1298. X             setjmp(_env)
  1299. END_OF_FILE
  1300. # end of 'lib/restart.h'
  1301. fi
  1302. if test -f 'src/Write.c' -a "${1}" != "-c" ; then 
  1303.   echo shar: Will not clobber existing file \"'src/Write.c'\"
  1304. else
  1305. echo shar: Extracting \"'src/Write.c'\" \(1300 characters\)
  1306. sed "s/^X//" >'src/Write.c' <<'END_OF_FILE'
  1307. X/*                        Copyright (c) 1987 Bellcore
  1308. X *                            All Rights Reserved
  1309. X *       Permission is granted to copy or use this program, EXCEPT that it
  1310. X *       may not be sold for profit, the copyright notice must be reproduced
  1311. X *       on copies, and credit should be given to Bellcore where it is due.
  1312. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1313. X */
  1314. X/*    $Header: Write.c,v 4.1 88/06/21 13:21:10 bianchi Exp $
  1315. X    $Source: /tmp/mgrsrc/src/RCS/Write.c,v $
  1316. X*/
  1317. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/src/RCS/Write.c,v $$Revision: 4.1 $";
  1318. X
  1319. X/* Long writes to ptty's don't always work */
  1320. X
  1321. X#include <errno.h>
  1322. X
  1323. X#define MAX_RETRY    3        /* max retries after EWOULDBLOCK */
  1324. X#define TTYMAX        100        /* max chunk size in write */
  1325. X#define Min(x,y)    ((x)<(y)?(x):(y))
  1326. X
  1327. Xextern errno;
  1328. X
  1329. Xint
  1330. XWrite(fd,buff,len)
  1331. Xregister int fd, len;
  1332. Xregister char *buff;
  1333. X   {
  1334. X   register int count = 0;
  1335. X   register int code;
  1336. X   register int retry=0;
  1337. X
  1338. X   while (count < len) {
  1339. X      code = write(fd,buff+count,Min(TTYMAX,len-count));
  1340. X      if (code > 0)
  1341. X         count += code;
  1342. X      else if (errno == EWOULDBLOCK) {
  1343. X         if (retry++ > MAX_RETRY)
  1344. X            break;
  1345. X         sleep(1);
  1346. X         continue;
  1347. X         }
  1348. X      else 
  1349. X         break;
  1350. X      }
  1351. X   return(count);
  1352. X   }
  1353. END_OF_FILE
  1354. # end of 'src/Write.c'
  1355. fi
  1356. if test -f 'src/blit/hash.h' -a "${1}" != "-c" ; then 
  1357.   echo shar: Will not clobber existing file \"'src/blit/hash.h'\"
  1358. else
  1359. echo shar: Extracting \"'src/blit/hash.h'\" \(1260 characters\)
  1360. sed "s/^X//" >'src/blit/hash.h' <<'END_OF_FILE'
  1361. X/*                        Copyright (c) 1988 Bellcore
  1362. X *                            All Rights Reserved
  1363. X *       Permission is granted to copy or use this program, EXCEPT that it
  1364. X *       may not be sold for profit, the copyright notice must be reproduced
  1365. X *       on copies, and credit should be given to Bellcore where it is due.
  1366. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1367. X */
  1368. X/*    $Header: hash.h,v 4.1 88/06/21 13:19:08 bianchi Exp $
  1369. X    $Source: /tmp/mgrsrc/src/blit/RCS/hash.h,v $
  1370. X*/
  1371. Xstatic char    h_hash_[] = "$Source: /tmp/mgrsrc/src/blit/RCS/hash.h,v $$Revision: 4.1 $";
  1372. X
  1373. X/* hash table item */
  1374. X
  1375. Xstruct table_entry {
  1376. X    char *name;        /* item name */
  1377. X    char *value;        /* current value */
  1378. X    int  count;        /* # of references to this entry */
  1379. X    int  flags;        /* entry flags */
  1380. X    struct table_entry
  1381. X         *next;        /* address of next table entry */
  1382. X    };
  1383. X
  1384. Xstruct table_data {
  1385. X    char *name;        /* item name */
  1386. X    char *value;        /* current value */
  1387. X    int  count;        /* # of references to this entry */
  1388. X    };
  1389. X
  1390. Xtypedef struct table_entry  TABLE;
  1391. X
  1392. X#define HASH_STATIC        0x001    /* static entry */
  1393. X
  1394. X#ifndef Same
  1395. X#   define Same(x,y)        (strcmp(x,y) ? 0 : 1)
  1396. X#else
  1397. X    extern int Same();
  1398. X#endif
  1399. X#ifndef HASH
  1400. X#   define HASH    hash            /* name of hash routine */
  1401. X#endif
  1402. END_OF_FILE
  1403. # end of 'src/blit/hash.h'
  1404. fi
  1405. if test -f 'src/blit/pixel.C' -a "${1}" != "-c" ; then 
  1406.   echo shar: Will not clobber existing file \"'src/blit/pixel.C'\"
  1407. else
  1408. echo shar: Extracting \"'src/blit/pixel.C'\" \(1436 characters\)
  1409. sed "s/^X//" >'src/blit/pixel.C' <<'END_OF_FILE'
  1410. X/*                        Copyright (c) 1988 Bellcore
  1411. X *                            All Rights Reserved
  1412. X *       Permission is granted to copy or use this program, EXCEPT that it
  1413. X *       may not be sold for profit, the copyright notice must be reproduced
  1414. X *       on copies, and credit should be given to Bellcore where it is due.
  1415. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1416. X */
  1417. X/*    $Header: pixel.C,v 4.2 88/06/30 11:39:58 sau Exp $
  1418. X    $Source: /tmp/mgrsrc/src/blit/RCS/pixel.C,v $
  1419. X*/
  1420. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/src/blit/RCS/pixel.C,v $$Revision: 4.2 $";
  1421. X
  1422. X/* set/clear/ or invert a pixel */
  1423. X
  1424. X#include "bitmap.h"
  1425. X#include "asm.h"
  1426. X
  1427. Xbit_point(map,x,y,op)
  1428. XBITMAP *map;
  1429. Xregister int x,y,op;
  1430. X   {
  1431. X   register int offset;
  1432. X    register int *base = BIT_DATA(map);
  1433. X
  1434. X   /* clipping */
  1435. X
  1436. X   if (x<0 || x>BIT_WIDE(map) || y<0 || y>BIT_HIGH(map))
  1437. X      return(-1);
  1438. X
  1439. X   offset = (y+map->y0)*BIT_LINE(map)+map->x0+x;
  1440. X  
  1441. X   switch(OPCODE(op)) {
  1442. X        case OPCODE(SRC):
  1443. X        case OPCODE(SRC | DST):
  1444. X        case OPCODE(SRC | ~DST):
  1445. X        case OPCODE(~0):
  1446. X            BF_SET($base,$offset,IMM(1));
  1447. X         break;
  1448. X        case OPCODE(~SRC):
  1449. X        case OPCODE(~(SRC|DST)):
  1450. X        case OPCODE(DST & ~SRC):
  1451. X        case OPCODE(0):
  1452. X            BF_CLR($base,$offset,IMM(1));
  1453. X         break;
  1454. X        case OPCODE(SRC ^ DST):
  1455. X        case OPCODE(~DST):
  1456. X        case OPCODE(SRC & ~DST):
  1457. X        case OPCODE(~(SRC&DST)):
  1458. X            BF_INV($base,$offset,IMM(1));
  1459. X         break;
  1460. X      }
  1461. X   return(0);
  1462. X   }
  1463. END_OF_FILE
  1464. # end of 'src/blit/pixel.C'
  1465. fi
  1466. if test -f 'src/move.c' -a "${1}" != "-c" ; then 
  1467.   echo shar: Will not clobber existing file \"'src/move.c'\"
  1468. else
  1469. echo shar: Extracting \"'src/move.c'\" \(1364 characters\)
  1470. sed "s/^X//" >'src/move.c' <<'END_OF_FILE'
  1471. X/*                        Copyright (c) 1987 Bellcore
  1472. X *                            All Rights Reserved
  1473. X *       Permission is granted to copy or use this program, EXCEPT that it
  1474. X *       may not be sold for profit, the copyright notice must be reproduced
  1475. X *       on copies, and credit should be given to Bellcore where it is due.
  1476. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1477. X */
  1478. X/*    $Header: move.c,v 4.1 88/06/21 13:34:18 bianchi Exp $
  1479. X    $Source: /tmp/mgrsrc/src/RCS/move.c,v $
  1480. X*/
  1481. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/src/RCS/move.c,v $$Revision: 4.1 $";
  1482. X
  1483. X/* move a window */
  1484. X
  1485. X#include "bitmap.h"
  1486. X#include <stdio.h>     /* temporary */
  1487. X#include "defs.h"
  1488. X#include "event.h"
  1489. X
  1490. Xint move_window()
  1491. X   {
  1492. X   int button;
  1493. X   int dx = BIT_WIDE(ACTIVE(border));
  1494. X   int dy = BIT_HIGH(ACTIVE(border));
  1495. X   int sx = ACTIVE(x0);
  1496. X   int sy = ACTIVE(y0);
  1497. X   register WINDOW *win;
  1498. X
  1499. X   move_box(screen,mouse,&sx,&sy,dx,dy,0);
  1500. X
  1501. X   /* adjust window state */
  1502. X
  1503. X   mousex += sx-ACTIVE(x0);
  1504. X   mousey += sy-ACTIVE(y0);
  1505. X
  1506. X   shape(sx,sy,dx,dy);
  1507. X#ifdef ALIGN
  1508. X   if (dx != BIT_WIDE(ACTIVE(border)) || dy != BIT_HIGH(ACTIVE(border)))
  1509. X      do_event(EVENT_SHAPE,active,E_MAIN);
  1510. X   else
  1511. X#endif
  1512. X      do_event(EVENT_MOVE,active,E_MAIN);
  1513. X
  1514. X   /* wait till button is released */
  1515. X
  1516. X   do {
  1517. X      button=mouse_get(mouse,&sx,&sy);
  1518. X      }
  1519. X   while (button!=0);
  1520. X   }
  1521. END_OF_FILE
  1522. # end of 'src/move.c'
  1523. fi
  1524. if test -f 'src/move_box.c' -a "${1}" != "-c" ; then 
  1525.   echo shar: Will not clobber existing file \"'src/move_box.c'\"
  1526. else
  1527. echo shar: Extracting \"'src/move_box.c'\" \(1452 characters\)
  1528. sed "s/^X//" >'src/move_box.c' <<'END_OF_FILE'
  1529. X/*                        Copyright (c) 1987 Bellcore
  1530. X *                            All Rights Reserved
  1531. X *       Permission is granted to copy or use this program, EXCEPT that it
  1532. X *       may not be sold for profit, the copyright notice must be reproduced
  1533. X *       on copies, and credit should be given to Bellcore where it is due.
  1534. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1535. X */
  1536. X/*    $Header: move_box.c,v 4.1 88/06/21 13:34:20 bianchi Exp $
  1537. X    $Source: /tmp/mgrsrc/src/RCS/move_box.c,v $
  1538. X*/
  1539. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/src/RCS/move_box.c,v $$Revision: 4.1 $";
  1540. X
  1541. X/* drag a box around the screen */
  1542. X
  1543. X#include "bitmap.h"
  1544. X#include "defs.h"
  1545. X
  1546. Xmove_box(screen,mouse,x,y,dx,dy,how)
  1547. XBITMAP *screen;            /* where to sweep out the box */
  1548. Xint mouse;            /* file to get mouse coords from */
  1549. Xregister int *x,*y;        /* starting position */
  1550. Xregister int dx,dy;             /* box size */
  1551. Xint how;                    /* termination condition */
  1552. X   {
  1553. X   int x_mouse, y_mouse;
  1554. X   register int button, skip=1;
  1555. X
  1556. X   box(screen,*x,*y,dx,dy);
  1557. X   do {
  1558. X      button=mouse_get(mouse,&x_mouse,&y_mouse);
  1559. X      if (skip)
  1560. X         box(screen,*x,*y,dx,dy);
  1561. X      *x += x_mouse;
  1562. X      *y -= y_mouse;
  1563. X      *x = BETWEEN(0,*x,BIT_WIDE(screen)-dx);
  1564. X      *y = BETWEEN(0,*y,BIT_HIGH(screen)-dy);
  1565. X      if (skip = !mouse_count())
  1566. X         box(screen,*x,*y,dx,dy);
  1567. X      }
  1568. X    while (how ? button!=0 : button==0); 
  1569. X
  1570. X   if (skip)
  1571. X      box(screen,*x,*y,dx,dy);
  1572. X   }
  1573. END_OF_FILE
  1574. # end of 'src/move_box.c'
  1575. fi
  1576. if test -f 'src/oblit/Makefile' -a "${1}" != "-c" ; then 
  1577.   echo shar: Will not clobber existing file \"'src/oblit/Makefile'\"
  1578. else
  1579. echo shar: Extracting \"'src/oblit/Makefile'\" \(1324 characters\)
  1580. sed "s/^X//" >'src/oblit/Makefile' <<'END_OF_FILE'
  1581. X#                        Copyright (c) 1988 Bellcore
  1582. X#                            All Rights Reserved
  1583. X#       Permission is granted to copy or use this program, EXCEPT that it
  1584. X#       may not be sold for profit, the copyright notice must be reproduced
  1585. X#       on copies, and credit should be given to Bellcore where it is due.
  1586. X#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1587. X
  1588. X#    $Header: Makefile,v 4.4 88/07/19 14:34:19 sau Exp $
  1589. X#    $Source: /tmp/mgrsrc/src/oblit/RCS/Makefile,v $
  1590. X
  1591. X#    makefile for old (16 bit) bitblit code
  1592. X
  1593. XCFLAGS=-O  -I..
  1594. X
  1595. XCFILES= blit.c line.c pixel.c bitmap.c bit_on.c
  1596. XOBJS= blit.o line.o pixel.o bit_on.o
  1597. XHFILES= bitmap.h
  1598. XOTHER=Makefile README
  1599. XLIB=blitlib.a
  1600. XSTART=.
  1601. X
  1602. Xall:        $(LIB)
  1603. X
  1604. X# bitmap library
  1605. X
  1606. X$(LIB): $(LIB)(blit.o) \
  1607. X           $(LIB)(pixel.o) \
  1608. X           $(LIB)(line.o) \
  1609. X           $(LIB)(bit_on.o) \
  1610. X           $(LIB)(bitmap.o)
  1611. X            ranlib $(LIB)
  1612. X
  1613. X$(LIB)(blit.o): blit.o
  1614. X            ar rv $(LIB) blit.o
  1615. X
  1616. X$(LIB)(pixel.o): pixel.o
  1617. X            ar rv $(LIB) pixel.o
  1618. X
  1619. X$(LIB)(bit_on.o): bit_on.o
  1620. X            ar rv $(LIB) bit_on.o
  1621. X
  1622. X$(LIB)(line.o): line.o
  1623. X            ar rv $(LIB) line.o
  1624. X
  1625. X$(LIB)(bitmap.o): bitmap.o
  1626. X            ar rv $(LIB) bitmap.o
  1627. X
  1628. X##########################
  1629. X
  1630. X$(OBJS):    bitmap.h
  1631. X
  1632. Xlist:
  1633. X    @for i in $(CFILES) $(HFILES) $(OTHER); do \
  1634. X        echo "$(START)/$$i"; \
  1635. X    done    
  1636. X
  1637. Xclean:
  1638. X    rm -f *.o $(LIB)
  1639. X
  1640. Xclobber:
  1641. END_OF_FILE
  1642. # end of 'src/oblit/Makefile'
  1643. fi
  1644. if test -f 'src/oblit/pixel.c' -a "${1}" != "-c" ; then 
  1645.   echo shar: Will not clobber existing file \"'src/oblit/pixel.c'\"
  1646. else
  1647. echo shar: Extracting \"'src/oblit/pixel.c'\" \(1372 characters\)
  1648. sed "s/^X//" >'src/oblit/pixel.c' <<'END_OF_FILE'
  1649. X/*                        Copyright (c) 1988 Bellcore
  1650. X *                            All Rights Reserved
  1651. X *       Permission is granted to copy or use this program, EXCEPT that it
  1652. X *       may not be sold for profit, the copyright notice must be reproduced
  1653. X *       on copies, and credit should be given to Bellcore where it is due.
  1654. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1655. X */
  1656. X/*    $Header: pixel.c,v 4.1 88/06/21 13:08:06 bianchi Exp $
  1657. X    $Source: /tmp/mgrsrc/src/oblit/RCS/pixel.c,v $
  1658. X*/
  1659. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/src/oblit/RCS/pixel.c,v $$Revision: 4.1 $";
  1660. X
  1661. X/* draw a point  16 bit version */
  1662. X
  1663. X#include "bitmap.h"
  1664. X
  1665. Xint
  1666. Xbit_point(map, dx, dy, func)
  1667. XBITMAP *map;
  1668. Xregister int dx, dy;
  1669. Xint func;
  1670. X{
  1671. X   register int x = BIT_X(map) + dx;
  1672. X   register int y = BIT_Y(map) + dy;
  1673. X   register unsigned short *word =
  1674. X   BIT_DATA(map) + (y * BIT_LINE(map) + (x >> 4));
  1675. X   register unsigned short bit = 0x8000 >> (x & 0xf);
  1676. X
  1677. X   if (dx < 0 || dy < 0 || dx >= BIT_WIDE(map) || dy >= BIT_HIGH(map))
  1678. X      return (0);
  1679. X
  1680. X   switch (OPCODE(func)) {
  1681. X      case OPCODE(0):
  1682. X      case OPCODE(SRC):
  1683. X     *word &= ~bit;
  1684. X     break;
  1685. X      case OPCODE(~SRC):
  1686. X      case OPCODE(~SRC | DST):
  1687. X      case OPCODE(~0):
  1688. X     *word |= bit;
  1689. X     break;
  1690. X      case OPCODE(~SRC ^ DST):
  1691. X      case OPCODE(~DST):
  1692. X     *word ^= bit;
  1693. X     break;
  1694. X   }
  1695. X
  1696. X   return (*word & bit);
  1697. X}
  1698. END_OF_FILE
  1699. # end of 'src/oblit/pixel.c'
  1700. fi
  1701. echo shar: End of archive 6 \(of 61\).
  1702. cp /dev/null ark6isdone
  1703. MISSING=""
  1704. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \
  1705.     21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 \
  1706.     38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 \
  1707.     55 56 57 58 59 60 61 ; do
  1708.     if test ! -f ark${I}isdone ; then
  1709.     MISSING="${MISSING} ${I}"
  1710.     fi
  1711. done
  1712. if test "${MISSING}" = "" ; then
  1713.     echo You have unpacked all 61 archives.
  1714.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1715. else
  1716.     echo You still need to unpack the following archives:
  1717.     echo "        " ${MISSING}
  1718. fi
  1719. ##  End of shell archive.
  1720. exit 0
  1721.