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

  1. Subject:  v17i063:  MGR, Bellcore window manager, Patch1
  2. Newsgroups: comp.sources.unix
  3. Approved: rsalz@uunet.UU.NET
  4.  
  5. Submitted-by: sau@faline.bellcore.com (Stephen A. Uhler)
  6. Posting-number: Volume 17, Issue 63
  7. Archive-name: mgr/patch1
  8.  
  9. Thank you for sending out MGR, which is winding its way to bellcore as
  10. I write this.  Several bugs in the distribution were brought to my 
  11. attention, so I am sending you the bug fixes.  One bug is serious, as
  12. it prevents MGR from running at all on release 4.0 suns (it has a 1 line
  13. fix though).
  14.  
  15.     -Stephen A Uhler (sau@bellcore.com)
  16.  
  17. NOTES:
  18. "mgr.rel" contains the unpacked distribution.
  19. "mgr.new" contains the distribution with fixes.
  20. The following was created with the two commands:
  21.    touch mgr.rel/PATCH_1 mgr.rel/misc/{login,cshrc}
  22.     diff -r -c mgr.rel mgr.new
  23. ---------------------------- cut here ------------------------------------
  24. diff -r -c mgr.rel/PATCH_1 mgr.new/PATCH_1
  25. *** mgr.rel/PATCH_1    Fri Jan 27 10:46:00 1989
  26. --- mgr.new/PATCH_1    Fri Jan 27 09:56:00 1989
  27. ***************
  28. *** 0 ****
  29. --- 1,12 ----
  30. + Bugs found in the distribution
  31. + 1) MGR crashes on startup on SUNOS-4.0
  32. +     - fixed src/blit/bitmap.c
  33. + 2) src/kbd.c uses wrong include file for SUNOS-4.0
  34. +     - fixed include
  35. +     - fixed missing #else for no -DKBD option
  36. + 3) user manual doesn't make 
  37. +     - fixed doc/usrman/Makefile
  38. + 4) Wrong heading on font(5) man page
  39. +     - fixed doc/font.5
  40. + 5) The files misc/mgrc and misc/login are missing
  41. +     - they've been added.
  42. diff -r -c mgr.rel/doc/font.5 mgr.new/doc/font.5
  43. *** mgr.rel/doc/font.5    Tue Jan 24 15:56:39 1989
  44. --- mgr.new/doc/font.5    Fri Jan 27 08:55:01 1989
  45. ***************
  46. *** 7,13 ****
  47.   '\"
  48.   '\"    $Header: font.5,v 4.1 88/06/21 13:51:34 bianchi Exp $
  49.   '\"    $Source: /tmp/mgrsrc/doc/RCS/font.5,v $
  50. ! .TH bitmap 5L "April 30, 1986"
  51.   .SH NAME
  52.   Font \- font file format for 
  53.   .I mgr
  54. --- 7,13 ----
  55.   '\"
  56.   '\"    $Header: font.5,v 4.1 88/06/21 13:51:34 bianchi Exp $
  57.   '\"    $Source: /tmp/mgrsrc/doc/RCS/font.5,v $
  58. ! .TH font 5L "April 30, 1986"
  59.   .SH NAME
  60.   Font \- font file format for 
  61.   .I mgr
  62. diff -r -c mgr.rel/doc/usrman/Makefile mgr.new/doc/usrman/Makefile
  63. *** mgr.rel/doc/usrman/Makefile    Tue Jan 24 15:57:31 1989
  64. --- mgr.new/doc/usrman/Makefile    Thu Jan 26 09:43:27 1989
  65. ***************
  66. *** 11,17 ****
  67.   #        manual makefile
  68.   
  69.   
  70. ! PARTS= doc.0 doc.1 doc.2 doc.3 doc.4 doc.5 doc.6 doc.7 doc.8 doc.9
  71.   EXTRACT= doc.0 doc.1 doc.2 doc.3 doc.4 doc.5 doc.6
  72.   
  73.   #    croff (c-source => troff input converter) flags
  74. --- 11,17 ----
  75.   #        manual makefile
  76.   
  77.   
  78. ! PARTS= doc.0 doc.1 doc.2 doc.3 doc.4 doc.5 doc.6 doc.7 doc.8
  79.   EXTRACT= doc.0 doc.1 doc.2 doc.3 doc.4 doc.5 doc.6
  80.   
  81.   #    croff (c-source => troff input converter) flags
  82. ***************
  83. *** 80,91 ****
  84.   nroff:
  85.           $(MAKE) TROFF=nroff PRINT=nroff PRINTER=$(PRINTER) all
  86.   
  87. ! install: $(INSDIR)
  88.           -rm -f $(INSDIR)/$(NAME)
  89. !         cp $(NAME) $(INSDIR)/$(NAME)
  90.           
  91.   $(INSDIR):
  92. !     mkdir $@
  93.   
  94.   clean:
  95.           rm -f temp
  96. --- 80,97 ----
  97.   nroff:
  98.           $(MAKE) TROFF=nroff PRINT=nroff PRINTER=$(PRINTER) all
  99.   
  100. ! install: $(INSDIR) $(NAME)
  101.           -rm -f $(INSDIR)/$(NAME)
  102. !         -cp $(NAME) $(INSDIR)/$(NAME)
  103.           
  104.   $(INSDIR):
  105. !     -mkdir $@
  106. ! $(NAME):    $(CROFF)
  107. !     $(MAKE) -s PRINTER=crt nroff > $(NAME)
  108. ! $(CROFF):
  109. !     cd croff;$(MAKE) croff clean
  110.   
  111.   clean:
  112.           rm -f temp
  113. diff -r -c mgr.rel/misc/README mgr.new/misc/README
  114. *** mgr.rel/misc/README    Tue Jan 24 15:56:32 1989
  115. --- mgr.new/misc/README    Fri Jan 27 09:48:36 1989
  116. ***************
  117. *** 20,26 ****
  118.   
  119.   mgr.ti        A sample MGR terminfo entry
  120.   
  121. ! mgrc        some sample MGR startup files ans notes
  122.   
  123.   plot        PLot(5) format data
  124.           try mgrplot < plot
  125. --- 20,26 ----
  126.   
  127.   mgr.ti        A sample MGR terminfo entry
  128.   
  129. ! mgrc        some sample MGR startup files and notes
  130.   
  131.   plot        PLot(5) format data
  132.           try mgrplot < plot
  133. diff -r -c mgr.rel/misc/login mgr.new/misc/login
  134. *** mgr.rel/misc/login    Fri Jan 27 10:58:09 1989
  135. --- mgr.new/misc/login    Fri Jan 27 09:51:45 1989
  136. ***************
  137. *** 0 ****
  138. --- 1,39 ----
  139. + -------------------------------------------------------------------
  140. + This is a typical MGR compatable .login file, demonstrating the method for
  141. + starting commands remotely in your .mgrc.  To start the command "FOO"
  142. + on host "bar" use a line in .mgrc such as: 
  143. + "start setenv TERM FOO.mgr;rlogin bar\r"
  144. + and this .login on host "bar".
  145. +     set noglob
  146. +     stty new dec erase  crt ctlecho
  147. +     setenv HOST `hostname`
  148. +     setenv EDITOR vi
  149. +     setenv PRINTER lj
  150. +     setenv MANPATH "/usr/mgr/man:/usr/sau/man:/usr/local/man:/usr/man"
  151. +     set prompt="$HOST% "
  152. +     switch($term)
  153. +     case su:
  154. +     case net:
  155. +     case switch:
  156. +     case unknown:
  157. +         eval `tset -s -n -Q -m :?wy`
  158. +         breaksw
  159. +     case sun:
  160. +         echo "p"
  161. +         setenv MORE "-cs"
  162. +         caps n
  163. +         swap_kbd
  164. +         breaksw
  165. +     case mgr:
  166. +         eval `set_termcap`
  167. +         setenv MORE "-cs"
  168. +         breaksw
  169. +     case *.mgr:
  170. +         setenv TERM mgr
  171. +         eval `set_termcap`
  172. +         setenv MORE "-cs"
  173. +         exec `basename $term .mgr`
  174. +         breaksw
  175. +     endsw
  176. +     unset noglob
  177. diff -r -c mgr.rel/misc/mgrc mgr.new/misc/mgrc
  178. *** mgr.rel/misc/mgrc    Fri Jan 27 10:58:09 1989
  179. --- mgr.new/misc/mgrc    Fri Jan 27 09:52:30 1989
  180. ***************
  181. *** 0 ****
  182. --- 1,108 ----
  183. + Here are 3 sample .mgrc files, borrowed from random local MGR usrs (the
  184. + files are indented for clarity only). Lines staring at the left margin
  185. + are comments and not part of the files.
  186. + -------------------------------------------------------------------
  187. +     font 8 gal8x16r.fnt
  188. +     font 9 gal8x16b.fnt
  189. +     font 10 gal8x16ru.fnt
  190. +     font 11 gal12x20r.fnt
  191. +     font 12 gal12x20b.fnt
  192. +     font 13 gal12x20ru.fnt
  193. +     font 14 gal12x20bu.fnt
  194. + These two entries control the default behavior of paging and sliding menus
  195. +     slide    50    8
  196. +     page    8    25
  197. +     window 29    93    971    708    12
  198. +         start sleep 6;echo -n "\e8S";set_console\r
  199. + This next window is used to track mail delivery.  .mailrc contains
  200. + sendmail=Sendmail and Sendmail is the shell script: "sendmail -v $* >>
  201. + $HOME/.sm"
  202. +     window 29       806     491     90  1
  203. +         start echo \f-Mail Delivery Status- > ~/.sm;tail -f ~/.sm\r
  204. +     window 2    2    72    72
  205. +         shell nice clock2 -c
  206. +     window 76    2    72    72
  207. +         shell iconmail -s
  208. +     window 150    2    72    72
  209. +         shell iconmsgs -s
  210. +     window 228    2    72    72
  211. +         shell nice walk
  212. +     window 304    2    464    72    1
  213. +         shell nice stat -10 d1 us -5 r
  214. +     window 775    2    380    72    1
  215. +         shell nice ether
  216. +     window 406    326    730    556    6
  217. +         shell -ksh
  218. +     window 1008     81      46      46  1
  219. +         start cut -s\r
  220. +     window 1068   81    76    74  1
  221. +         start echo h;setenv PRINTER lj;snap ~/snap\r
  222. +     done
  223. + -------------------------------------------------------------------
  224. + Sample .mgrc # 2.
  225. +     font 1 sail6x8r.fnt
  226. +     font 2 80x2.fnt
  227. +     font 3 81.fnt
  228. +     font 4 shad_16.fnt
  229. +     window 0 80 570 810 2
  230. +               start rlogin gobo -8\r
  231. +     window 576 80 570 810 2
  232. +               start rlogin gobo -8\r
  233. +     window 0 480 570 394 2
  234. +               start rlogin gobo -8\r
  235. +     window 576 480 570 394 2
  236. +               start rlogin gobo -8\r
  237. +     window 8 92 1130 760 3
  238. +               start ta\r
  239. +     window 440 4 72 72
  240. +               shell iconmail -s
  241. +     window 516 4 72 72
  242. +               shell iconmsgs -s
  243. +     window 0 4 216 72 4
  244. +               shell clock -s
  245. +     done
  246. + -------------------------------------------------------------------
  247. + This .mgrc was setup for a Sun 3-110/c (color)
  248. +     initcmd        set_colormap
  249. +     resumecmd    overlay
  250. +     font 16 80x2.fnt
  251. +     font 17 upside8x12.fnt
  252. +     window    -1    -1    -1    -1    11
  253. +         newwindow
  254. +     window    0     0       74      74
  255. +         start flashloop iconmail\r
  256. +     window    74    0       74      74
  257. +         start flashloop iconmsgs\r
  258. +     window    148   0       74      74
  259. +         shell clock -b
  260. +         windowsetid    11
  261. +     window    -1    -1    80c    80c    11
  262. +         start flashloop\r
  263. +         active
  264. +     window    -1    -1    80c    80c    11
  265. +         start sleep 2;iconifycmd -n heavy $SHELL\r
  266. +     window    -1    -1    80c    80c    0
  267. +         start sleep 4;iconifycmd flash\r
  268. +         windowsetid    7
  269. +     window    502      80      650     394    0
  270. +         start sleep 6;iconifycmd -n dq... dq\r
  271. +         windowsetid    8
  272. +     window    422    145    730    442    7
  273. +         start sleep 8;iconifycmd -n micom eval SHELL=micom hpmgr\r
  274. +         windowsetid    9
  275. +     window    0      250     490     650    1
  276. +         start set_console\r
  277. +         windowsetid    10
  278. +     done
  279. + -------------------------------------------------------------------
  280. Only in mgr.new/src: icons.h
  281. diff -r -c mgr.rel/src/kbd.c mgr.new/src/kbd.c
  282. *** mgr.rel/src/kbd.c    Tue Jan 24 15:58:35 1989
  283. --- mgr.new/src/kbd.c    Fri Jan 27 10:43:21 1989
  284. ***************
  285. *** 20,26 ****
  286.   # include <sys/types.h>
  287.   # include <sundev/kbio.h>
  288.   # ifndef TIOCCONS                    /* definiton moved in rel. 4.0 */
  289. ! #   include "<sys/termios.h>"
  290.   # endif
  291.   #endif KBD
  292.   #endif
  293. --- 20,26 ----
  294.   # include <sys/types.h>
  295.   # include <sundev/kbio.h>
  296.   # ifndef TIOCCONS                    /* definiton moved in rel. 4.0 */
  297. ! #   include <sys/ttycom.h>        /* was sys/termios.h */
  298.   # endif
  299.   #endif KBD
  300.   #endif
  301. ***************
  302. *** 108,115 ****
  303.      setitimer(ITIMER_REAL,&new,&old);
  304.      }
  305.   
  306.   #endif
  307.   
  308.   static int kbd_fd = -1;
  309.   
  310. --- 108,117 ----
  311.      setitimer(ITIMER_REAL,&new,&old);
  312.      }
  313.   
  314. + #else
  315. + int
  316. + kbd_reset() {}
  317.   #endif
  318.   
  319.   static int kbd_fd = -1;
  320.   
  321. diff -r -c mgr.rel/src/blit/bitmap.c mgr.new/src/blit/bitmap.c
  322. *** mgr.rel/src/blit/bitmap.c    Tue Jan 24 15:58:48 1989
  323. --- mgr.new/src/blit/bitmap.c    Fri Jan 27 10:32:40 1989
  324. ***************
  325. *** 66,72 ****
  326.   
  327.   #ifdef _MAP_NEW        /* New semantics for mmap in Sun release 4.0 */
  328.      addr = (DATA) mmap(addr, _s_len=buff.fb_size,
  329. !                          PROT_WRITE, _MAP_NEW|MAP_SHARED, fd, 0);
  330.      if ((int)addr == -1)
  331.         return (BIT_NULL);
  332.   #else
  333. --- 66,72 ----
  334.   
  335.   #ifdef _MAP_NEW        /* New semantics for mmap in Sun release 4.0 */
  336.      addr = (DATA) mmap(addr, _s_len=buff.fb_size,
  337. !                          PROT_READ|PROT_WRITE, _MAP_NEW|MAP_SHARED, fd, 0);
  338.      if ((int)addr == -1)
  339.         return (BIT_NULL);
  340.   #else
  341. diff -r -c mgr.rel/src/oblit/bitmap.c mgr.new/src/oblit/bitmap.c
  342. *** mgr.rel/src/oblit/bitmap.c    Tue Jan 24 15:58:51 1989
  343. --- mgr.new/src/oblit/bitmap.c    Fri Jan 27 10:33:01 1989
  344. ***************
  345. *** 66,72 ****
  346.   
  347.   #ifdef _MAP_NEW      /* New semantics for mmap in Sun release 4.0 */
  348.      addr = (DATA) mmap(addr, _s_len=buff.fb_size,
  349. !                    PROT_WRITE, _MAP_NEW|MAP_SHARED, fd, 0);
  350.      if ((int)addr == -1)
  351.         return (BIT_NULL);
  352.   #else
  353. --- 66,72 ----
  354.   
  355.   #ifdef _MAP_NEW      /* New semantics for mmap in Sun release 4.0 */
  356.      addr = (DATA) mmap(addr, _s_len=buff.fb_size,
  357. !                    PROT_READ|PROT_WRITE, _MAP_NEW|MAP_SHARED, fd, 0);
  358.      if ((int)addr == -1)
  359.         return (BIT_NULL);
  360.   #else
  361.  
  362.