home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sources / misc / 3968 < prev    next >
Encoding:
Text File  |  1992-09-15  |  16.9 KB  |  483 lines

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