home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume32 / ecu / patch01 < prev    next >
Text File  |  1992-09-16  |  17KB  |  477 lines

  1. Newsgroups: comp.sources.misc
  2. From: wht@n4hgf.Mt-Park.GA.US (Warren Tucker)
  3. Subject:  v32i076:  ecu - ECU Asynchronous Communications v3.20, Patch01
  4. Message-ID: <1992Sep15.163054.2322@sparky.imd.sterling.com>
  5. X-Md4-Signature: 638308a85f884f42e687a84c47ede6f7
  6. Date: Tue, 15 Sep 1992 16:30:54 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: wht@n4hgf.Mt-Park.GA.US (Warren Tucker)
  10. Posting-number: Volume 32, Issue 76
  11. Archive-name: ecu/patch01
  12. Environment: SCO,XENIX,ISC,SUNOS,SYSVR4,HDB,Curses
  13. Patch-To: ecu: Volume 32, Issue 36-75
  14.  
  15. The file CHANGES contain a list of changes for this patch.
  16. There is one critical fix:
  17.  
  18. The receiver process was not being killed during dialing when
  19. ECU was invoked with "ecu directoryentry".  Dialing was not
  20. possible until you interrupted the program and tried again.  This
  21. has been fixed.  This boo-boo crept as part of some cleanup work
  22. (smile) just before posting.
  23.  
  24. #!/bin/sh
  25. # This is ecu/patch01, a shell archive (shar 3.461)
  26. # made 09/14/1992 10:37 UTC by wht@n4hgf.Mt-Park.GA.US
  27. # Source directory /u1/src/ecu
  28. #
  29. # existing files WILL be overwritten
  30. #
  31. # This shar contains:
  32. # length  mode       name
  33. # ------ ---------- ------------------------------------------
  34. #  13064 -rw-r--r-- PATCH01
  35. #   1516 -rw-r--r-- CHANGES
  36. #
  37. # ============= PATCH01 ==============
  38. echo 'x - extracting PATCH01 (Text)'
  39. sed 's/^X//' << 'SHAR_EOF' > 'PATCH01' &&
  40. X:
  41. X#-------------------------------------------------------
  42. X# ECU 3.20 PATCH01 -- see CHANGES for description
  43. X# created by gendiff x1.30 on 14 Sep 1992 10:16 UTC
  44. X#-------------------------------------------------------
  45. XPrereq: 20
  46. X*** ../ecu-3.20/patchlevel.h    Fri Sep 11 15:11:35 1992
  47. X--- patchlevel.h    Sun Sep 13 02:11:41 1992
  48. X***************
  49. X*** 1 ****
  50. X! #define PATCHLEVEL 20
  51. X--- 1 ----
  52. X! #define PATCHLEVEL 21
  53. X*** ../ecu-3.20/README    Fri Sep 11 15:03:40 1992
  54. X--- README    Sat Sep 12 18:28:13 1992
  55. X***************
  56. X*** 1,5 ****
  57. X  .--------------------------------------------------------.
  58. X! | ECU README - last revised Sun Sep 06 14:29:11 EDT 1992 |
  59. X  `--------------------------------------------------------'
  60. X  
  61. X  This is ecu revision 3.20.  ECU is a asynchronous communications
  62. X--- 1,5 ----
  63. X  .--------------------------------------------------------.
  64. X! | ECU README - last revised Sat Sep 12 18:28:06 EDT 1992|
  65. X  `--------------------------------------------------------'
  66. X  
  67. X  This is ecu revision 3.20.  ECU is a asynchronous communications
  68. X***************
  69. X*** 146,152 ****
  70. X  (although you can get there from here).  It doesn't have a gnarly
  71. X  shared memory interface for "friend" programs (I do not know
  72. X  of any one but me who has used it).  C-Kermit has
  73. X! hundreds of implimentors/testers, thousands of users and two
  74. X  most righteous Captains (Frank daCruz and Christine Gianone)
  75. X  behind it.  ECU has less than 10 developers and about 15 users :-).
  76. X  
  77. X--- 146,152 ----
  78. X  (although you can get there from here).  It doesn't have a gnarly
  79. X  shared memory interface for "friend" programs (I do not know
  80. X  of any one but me who has used it).  C-Kermit has
  81. X! hundreds of implimenters/testers, thousands of users and two
  82. X  most righteous Captains (Frank daCruz and Christine Gianone)
  83. X  behind it.  ECU has less than 10 developers and about 15 users :-).
  84. X  
  85. X***************
  86. X*** 196,202 ****
  87. X       port it, make your best guess, hack the Makefiles and sources
  88. X       and send them to me with your patches.)
  89. X  
  90. X!      You will be asked the system type.  Respond accroding to
  91. X       the following table:
  92. X  
  93. X          System                         |   Type
  94. X--- 196,202 ----
  95. X       port it, make your best guess, hack the Makefiles and sources
  96. X       and send them to me with your patches.)
  97. X  
  98. X!      You will be asked the system type.  Respond according to
  99. X       the following table:
  100. X  
  101. X          System                         |   Type
  102. X***************
  103. X*** 203,209 ****
  104. X       ----------------------------------+------------
  105. X         SCO UNIX (any version)          |     s
  106. X         SCO ODT (any version)           |
  107. X!        SCO XENIX (2.0.6 or later       |
  108. X       ----------------------------------+------------
  109. X         ISC 386/ix (2.2 or later)       |     i
  110. X       ----------------------------------+------------
  111. X--- 203,209 ----
  112. X       ----------------------------------+------------
  113. X         SCO UNIX (any version)          |     s
  114. X         SCO ODT (any version)           |
  115. X!        SCO XENIX (2.0.6 or later)      |
  116. X       ----------------------------------+------------
  117. X         ISC 386/ix (2.2 or later)       |     i
  118. X       ----------------------------------+------------
  119. X***************
  120. X*** 256,262 ****
  121. X  6.   Type 'make'.  Wait and watch a while.  This is a good time to
  122. X       be reading over doc/ecu.man and various READMEs.
  123. X       There are a great number of new features.  There are
  124. X!      few incompatibilites ("I hate 'em").  The file HISTORY
  125. X       has some note on every change made since 3.16.  Unfortunately,
  126. X       HISTORY also contains technical/historical information of no 
  127. X       interest.
  128. X--- 256,262 ----
  129. X  6.   Type 'make'.  Wait and watch a while.  This is a good time to
  130. X       be reading over doc/ecu.man and various READMEs.
  131. X       There are a great number of new features.  There are
  132. X!      few incompatibilities ("I hate 'em").  The file HISTORY
  133. X       has some note on every change made since 3.16.  Unfortunately,
  134. X       HISTORY also contains technical/historical information of no 
  135. X       interest.
  136. X***************
  137. X*** 342,348 ****
  138. X  There has been a bug in the multiscreen driver for some time
  139. X  wherein a MEDIA COPY (screen dump) sequence ("ESC [ 2 i") leaves
  140. X  the "ESC [ 2" part "active".  When a screen dump (Cursor 5)
  141. X! command is given, I do the sacreen dump, then send a "l" to the
  142. X  screen to work around the bug ("ESC 2 [ l" unlocks the keyboard,
  143. X  essentially a no-op).  If and when it gets fixed, you'll see an
  144. X  "l" show up on your screen after a screen dump sequence.  To fix
  145. X--- 342,348 ----
  146. X  There has been a bug in the multiscreen driver for some time
  147. X  wherein a MEDIA COPY (screen dump) sequence ("ESC [ 2 i") leaves
  148. X  the "ESC [ 2" part "active".  When a screen dump (Cursor 5)
  149. X! command is given, I do the screen dump, then send a "l" to the
  150. X  screen to work around the bug ("ESC 2 [ l" unlocks the keyboard,
  151. X  essentially a no-op).  If and when it gets fixed, you'll see an
  152. X  "l" show up on your screen after a screen dump sequence.  To fix
  153. X***************
  154. X*** 378,384 ****
  155. X  definitions in a config.local file and experiment away.
  156. X  
  157. X  I tried -pedantic and -ansi under SCO, but there are just too many
  158. X! complaints about the development system heaader files:
  159. X  
  160. X    1. #ident not allowed in ANSI C (boo hiss on ANSI <again>)
  161. X    2. unterminated character constant in curses.h (an apostrophe
  162. X--- 378,384 ----
  163. X  definitions in a config.local file and experiment away.
  164. X  
  165. X  I tried -pedantic and -ansi under SCO, but there are just too many
  166. X! complaints about the development system header files:
  167. X  
  168. X    1. #ident not allowed in ANSI C (boo hiss on ANSI <again>)
  169. X    2. unterminated character constant in curses.h (an apostrophe
  170. X*** ../ecu-3.20/README.3.20    Fri Sep 11 15:03:46 1992
  171. X--- README.3.20    Sat Sep 12 18:22:47 1992
  172. X***************
  173. X*** 2,15 ****
  174. X  NOTE TO PRE-REVISION-3.20 USERS:
  175. X  
  176. X  1. The functionality of the "nonansikeys" file is now provided by
  177. X! the "funckeymap" file.  Convesrion may be as simple as renaming
  178. X  the file.  However, there are differences.
  179. X  
  180. X    o You must have a ~/.ecu/funckeymap file (and/or one in the library
  181. X      directory)
  182. X  
  183. X  2. Termination of file transfers by SIGINT did not cause termination
  184. X! of procedfure execution in pre-3.10 versions.  In this version, it does.
  185. X  
  186. X  3. Several files that previously had to reside in ~/.ecu now may have
  187. X  system wide defaults in the ECU library directory (/usr/local/lib/ecu).
  188. X--- 2,18 ----
  189. X  NOTE TO PRE-REVISION-3.20 USERS:
  190. X  
  191. X  1. The functionality of the "nonansikeys" file is now provided by
  192. X! the "funckeymap" file.  Conversion may be as simple as renaming
  193. X  the file.  However, there are differences.
  194. X  
  195. X    o You must have a ~/.ecu/funckeymap file (and/or one in the library
  196. X      directory)
  197. X  
  198. X+   o There must be an entry for "ansi" if you are on SCO.
  199. X+     Previous versions handled SCO multiscreens internally.
  200. X+ 
  201. X  2. Termination of file transfers by SIGINT did not cause termination
  202. X! of procedure execution in pre-3.10 versions.  In this version, it does.
  203. X  
  204. X  3. Several files that previously had to reside in ~/.ecu now may have
  205. X  system wide defaults in the ECU library directory (/usr/local/lib/ecu).
  206. X*** ../ecu-3.20/ecu.h    Fri Sep 11 15:05:57 1992
  207. X--- ecu.h    Sun Sep 13 12:52:38 1992
  208. X***************
  209. X*** 3,8 ****
  210. X--- 3,9 ----
  211. X      wht@n4hgf.Mt-Park.GA.US
  212. X  ------------------------------------------------------------------------*/
  213. X  /*+:EDITS:*/
  214. X+ /*:09-13-1992-12:52-wht@n4hgf-add tty_is_scoterm */
  215. X  /*:09-10-1992-13:58-wht@n4hgf-ECU release 3.20 */
  216. X  /*:08-22-1992-15:38-wht@n4hgf-ECU release 3.20 BETA */
  217. X  /*:08-21-1992-13:39-wht@n4hgf-rewire direct/modem device use */
  218. X***************
  219. X*** 206,211 ****
  220. X--- 207,213 ----
  221. X   * console tty information
  222. X   */
  223. X  extern int tty_is_multiscreen;        /* SCO multiscreen */
  224. X+ extern int tty_is_scoterm;            /* SCO scoterm */
  225. X  extern int tty_is_pty;                /* bursty network connection? */
  226. X  extern int tty_not_char_special;    /* /dev/null not considered char special */
  227. X  
  228. X*** ../ecu-3.20/ecuicmd.c    Fri Sep 11 15:07:20 1992
  229. X--- ecuicmd.c    Sun Sep 13 12:53:15 1992
  230. X***************
  231. X*** 9,14 ****
  232. X--- 9,15 ----
  233. X  
  234. X  ------------------------------------------------------------------------*/
  235. X  /*+:EDITS:*/
  236. X+ /*:09-13-1992-12:52-wht@n4hgf-show tty_is_scoterm during stat */
  237. X  /*:09-10-1992-13:58-wht@n4hgf-ECU release 3.20 */
  238. X  /*:08-30-1992-23:15-wht@n4hgf-add fkmap */
  239. X  /*:08-22-1992-15:38-wht@n4hgf-ECU release 3.20 BETA */
  240. X***************
  241. X*** 656,661 ****
  242. X--- 657,664 ----
  243. X          ff(se,"Console: %s %dx%d ",get_ttyname(),tcap_COLS,tcap_LINES);
  244. X          if(tty_is_multiscreen)
  245. X              ff(se,"<multiscreen> ");
  246. X+         if(tty_is_scoterm)
  247. X+             ff(se,"<scoterm> ");
  248. X          if(tty_is_pty)
  249. X              ff(se,"<pty> ");
  250. X  #if defined(METROLINK_X11R4_PTS)
  251. X*** ../ecu-3.20/ecuicmhist.c    Fri Sep 11 15:07:27 1992
  252. X--- ecuicmhist.c    Sun Sep 13 02:05:17 1992
  253. X***************
  254. X*** 8,13 ****
  255. X--- 8,14 ----
  256. X  
  257. X  --------------------------------------------------------------------------*/
  258. X  /*+:EDITS:*/
  259. X+ /*:09-13-1992-02:05-wht@n4hgf-redisplay escape prompt on error exit */
  260. X  /*:09-10-1992-13:58-wht@n4hgf-ECU release 3.20 */
  261. X  /*:08-22-1992-15:38-wht@n4hgf-ECU release 3.20 BETA */
  262. X  /*:08-28-1991-14:07-wht@n4hgf2-SVR4 cleanup by aega84!lh */
  263. X***************
  264. X*** 109,114 ****
  265. X--- 110,116 ----
  266. X      if(!icmdh)
  267. X      {
  268. X          ff(se,"  no interactive commands saved\r\n");
  269. X+         show_escape_prompt();
  270. X          return(1);
  271. X      }
  272. X      while(1)
  273. X*** ../ecu-3.20/ecutty.c    Fri Sep 11 15:09:06 1992
  274. X--- ecutty.c    Sun Sep 13 14:09:27 1992
  275. X***************
  276. X*** 83,88 ****
  277. X--- 83,89 ----
  278. X  
  279. X  --------------------------------------------------------------------------*/
  280. X  /*+:EDITS:*/
  281. X+ /*:09-13-1992-12:52-wht@n4hgf-add tty_is_scoterm */
  282. X  /*:09-10-1992-13:59-wht@n4hgf-ECU release 3.20 */
  283. X  /*:08-30-1992-07:42-wht@n4hgf-implement USE_COLOR+turn off ESIX color for now */
  284. X  /*:08-22-1992-15:38-wht@n4hgf-ECU release 3.20 BETA */
  285. X***************
  286. X*** 161,166 ****
  287. X--- 162,168 ----
  288. X  #endif
  289. X  int tty_is_pty;
  290. X  int tty_is_multiscreen;
  291. X+ int tty_is_scoterm;
  292. X  int tty_not_char_special;
  293. X  int use_colors = 0;        /* set by ttyinit, but default no */
  294. X  char *ttype;            /* getenv("TERM") */
  295. X***************
  296. X*** 402,407 ****
  297. X--- 404,416 ----
  298. X  #endif    /* ESIXSVR4 */
  299. X  #else    /* not any SVR4 */
  300. X  #ifdef M_SYSV /* SCO */
  301. X+ { char s[128];
  302. X+     sprintf(s,"\033[=%ldF\033[=%ldG",(clrs >> 8) & 0xFF,clrs & 0xFF);
  303. X+     hex_dump(s,strlen(s),"_setcolor normal color",0);
  304. X+     sprintf(s,"\033[=%ldH\033[=%ldI",(clrs >> 24) & 0xFF,(clrs >> 16) & 0xFF);
  305. X+     hex_dump(s,strlen(s),"_setcolor reverse color",0);
  306. X+ }
  307. X+ 
  308. X      /* normal */
  309. X      ff(se,"\033[=%ldF\033[=%ldG",(clrs >> 8) & 0xFF,clrs & 0xFF);
  310. X  
  311. X***************
  312. X*** 460,466 ****
  313. X      if(tty_not_char_special || !use_colors)
  314. X          return(0);
  315. X  
  316. X!     if(ntokens == 2)
  317. X          tokens[2] = "black";
  318. X  
  319. X      if((fgnd = (ulong)color_name_to_num(tokens[1])) > 15)
  320. X--- 469,477 ----
  321. X      if(tty_not_char_special || !use_colors)
  322. X          return(0);
  323. X  
  324. X!     if(ntokens < 2)
  325. X!         return(1);
  326. X!     else if(ntokens == 2)
  327. X          tokens[2] = "black";
  328. X  
  329. X      if((fgnd = (ulong)color_name_to_num(tokens[1])) > 15)
  330. X***************
  331. X*** 757,767 ****
  332. X  
  333. X  #endif /* CONS_GET && MONO && USE_COLOR */
  334. X  
  335. X- #if defined(M_SYSV) /* for multiscreen and scoterm */
  336. X- 
  337. X      /*
  338. X       * remember whether or not we are on a multiscreen
  339. X       */
  340. X      tty_is_multiscreen = !(cons_get_err < 0);
  341. X  
  342. X      /*
  343. X--- 768,777 ----
  344. X  
  345. X  #endif /* CONS_GET && MONO && USE_COLOR */
  346. X  
  347. X      /*
  348. X       * remember whether or not we are on a multiscreen
  349. X       */
  350. X+ #if defined(M_SYSV) /* for multiscreen and scoterm */
  351. X      tty_is_multiscreen = !(cons_get_err < 0);
  352. X  
  353. X      /*
  354. X***************
  355. X*** 772,777 ****
  356. X--- 782,788 ----
  357. X      if(getenv("WINDOWID") && ttype && !strncmp(ttype,"ansi",4))
  358. X      {
  359. X          use_colors = 1;
  360. X+         tty_is_scoterm = 1;
  361. X          read_colors_file();
  362. X          setcolor(colors_normal);
  363. X      }
  364. X*** ../ecu-3.20/hdbintf.c    Fri Sep 11 15:11:02 1992
  365. X--- hdbintf.c    Mon Sep 14 04:06:19 1992
  366. X***************
  367. X*** 47,52 ****
  368. X--- 47,53 ----
  369. X  
  370. X  --------------------------------------------------------------------------*/
  371. X  /*+:EDITS:*/
  372. X+ /*:09-14-1992-04:05-wht@n4hgf-rcvr process was not going away reliably */
  373. X  /*:09-10-1992-13:59-wht@n4hgf-ECU release 3.20 */
  374. X  /*:09-10-1992-03:35-wht@n4hgf-change the way we flunk a line=="-" */
  375. X  /*:09-04-1992-19:08-wht@n4hgf-harden Devices parsing */
  376. X***************
  377. X*** 1382,1388 ****
  378. X--- 1383,1393 ----
  379. X      char credit_file[128];
  380. X      char *error_name = "";
  381. X      int error_baud = 0;
  382. X+     int rcvr_restart = need_rcvr_restart();
  383. X  
  384. X+     /*
  385. X+      * we may do nothing
  386. X+      */
  387. X      if(sigint)    /* don't even start if console interrupt posted */
  388. X      {
  389. X          sigint = 0;
  390. X***************
  391. X*** 1392,1397 ****
  392. X--- 1397,1408 ----
  393. X      if(!there_is_hdb_on_this_machine)
  394. X          return(4);
  395. X  
  396. X+     /*
  397. X+      * kill receiver if it is active
  398. X+      */
  399. X+     if(rcvr_restart)
  400. X+         kill_rcvr_process(SIGUSR1);
  401. X+ 
  402. X  #if defined(CHOOSE_DEBUG)
  403. X      sprintf(dial_log,"HDB_DIAL Lline=%s Lbaud=%d",
  404. X          shm->Lline,shm->Lbaud);
  405. X***************
  406. X*** 1667,1672 ****
  407. X--- 1678,1689 ----
  408. X              iv[0] = 0;
  409. X          }
  410. X      }
  411. X+ 
  412. X+     /*
  413. X+      * restart receiver if we killed it
  414. X+      */
  415. X+     if(rcvr_restart)
  416. X+         start_rcvr_process(1);
  417. X  
  418. X      return((int)iv[0]);
  419. X  
  420. SHAR_EOF
  421. chmod 0644 PATCH01 ||
  422. echo 'restore of PATCH01 failed'
  423. Wc_c="`wc -c < 'PATCH01'`"
  424. test 13064 -eq "$Wc_c" ||
  425.     echo 'PATCH01: original size 13064, current size' "$Wc_c"
  426. # ============= CHANGES ==============
  427. echo 'x - extracting CHANGES (Text)'
  428. sed 's/^X//' << 'SHAR_EOF' > 'CHANGES' &&
  429. XChanges since 3.20 release
  430. X
  431. X==> Patch 1
  432. X
  433. X1992-09-14-04:05-hdbintf.c-wht@n4hgf-rcvr process was not going away reliably 
  434. X1992-09-13-12:52-ecutty.c-wht@n4hgf-add tty_is_scoterm 
  435. X1992-09-13-12:52-ecuicmd.c-wht@n4hgf-show tty_is_scoterm during stat 
  436. X1992-09-13-12:52-ecu.h-wht@n4hgf-add tty_is_scoterm 
  437. X1992-09-13-02:05-ecuicmhist.c-wht@n4hgf-redisplay escape prompt on error exit 
  438. X
  439. XALERT: Something is happening to make ODT 2.0 scoterms go CPU
  440. Xopen-loop and unresponsive to anything but a kill -9.  I will be
  441. Xlooking into this, but if anyone beats me to it, please let me
  442. Xknow what you find ASAP.  Thanks.
  443. X
  444. X1.  The receiver process was not being killed during dialing when
  445. XECU was invoked with "ecu directoryentry".  Dialing was not
  446. Xpossible until you interrupted the program and tried again.  This
  447. Xhas been fixed.  This boo-boo crept as part of some cleanup work
  448. X(smile) just before posting.
  449. X
  450. X2.  An <scoterm> indication has been added to the stat command
  451. Xoutput.  This is a start on the debugging effort of the scoterm
  452. Xproblem that had to be put off for the critical nature of item 1.
  453. X
  454. X3.  After the history function displays "no interactive commands
  455. Xsaved", you are still in command mode.  There was no visual hint
  456. Xto let you know that.  Then you could type, thinking you were
  457. Xsending to a remote, when in fact you were feeding the text to
  458. Xthe command line.  Now, ECU redisplays the escape prompt to show
  459. Xyou are still in command mode.
  460. X
  461. X4.  Typos in the README and README 3.20 were fixed.
  462. X
  463. X5.  This file was added.
  464. X
  465. SHAR_EOF
  466. chmod 0644 CHANGES ||
  467. echo 'restore of CHANGES failed'
  468. Wc_c="`wc -c < 'CHANGES'`"
  469. test 1516 -eq "$Wc_c" ||
  470.     echo 'CHANGES: original size 1516, current size' "$Wc_c"
  471. exit 0
  472. ----------------------------------------------------------------------
  473. Warren Tucker, TuckerWare  gatech!n4hgf!wht or wht@n4hgf.Mt-Park.GA.US
  474. "It was electrons that brought down the Berlin Wall." -- Timothy Leary
  475.  
  476. exit 0 # Just in case...
  477.