home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / bsd / 11106 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  1.6 KB

  1. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!uknet!mcsun!news.funet.fi!fuug!kiae!demos!newsserv
  2. From: ache@astral.msk.su (Andrew A. Chernov, Black Mage)
  3. Newsgroups: comp.unix.bsd
  4. Subject: [386bsd] Patch #3 for 8-bit curses, useful for standard curses too
  5. Message-ID: <lIKx5KhaX2@astral.msk.su>
  6. Date: 10 Jan 93 17:37:24 GMT
  7. Sender: news-service@newcom.kiae.su
  8. Reply-To: ache@astral.msk.su
  9. Organization: Ha-oh-lahm Yetzirah
  10. Lines: 41
  11.  
  12. This small patch fix unpleasant standard curses bug:
  13. curses can't expand TAB at all (but tries).
  14. A man who wrote this curses misplace SYNC_IN and SYNCH_OUT,
  15. this patch exchange macro calls.
  16.  
  17. This patch useful for standard 7-bit curses too, for this
  18. you must delete '_' symbol before waddbytes and apply patch.
  19.  
  20.  
  21. *** addbytes.c.was1    Fri Jan  8 15:46:02 1993
  22. --- addbytes.c    Sun Jan 10 20:01:17 1993
  23. ***************
  24. *** 75,85 ****
  25.           c = *bytes++;
  26.           switch (c) {
  27.             case '\t':
  28. !             SYNCH_IN();
  29.               if (_waddbytes(win, blanks, 8-(x%8)) == ERR) {
  30.               return ERR;
  31.               }
  32. !             SYNCH_OUT();
  33.               break;
  34.   
  35.             default:
  36. --- 75,85 ----
  37.           c = *bytes++;
  38.           switch (c) {
  39.             case '\t':
  40. !             SYNCH_OUT();
  41.               if (_waddbytes(win, blanks, 8-(x%8)) == ERR) {
  42.               return ERR;
  43.               }
  44. !             SYNCH_IN();
  45.               break;
  46.   
  47.             default:
  48. -- 
  49. In-This-Life:  Andrew A. Chernov    |  "Hay mas dicha, mas contento
  50. Internet:      ache@astral.msk.su   |  "Que adorar una hermosura
  51. Organization:  The RELCOM Corp.,    |  "Brujuleada entre los lejos
  52.                Moscow, Russia       |  "De lo imposible?!"  (Calderon)
  53.