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

  1. Path: sparky!uunet!mcsun!fuug!kiae!demos!newsserv
  2. From: "Andrew A. Chernov, Black Mage" <ache@astral.msk.su>
  3. Newsgroups: comp.unix.bsd
  4. Subject: [386bsd] Patch #4 for 8-bit curses, for standard curses too!
  5. Date: Mon, 11 Jan 93 12:46:42 +0300
  6. Distribution: world
  7. Organization: Ha-oh-lahm Yetzirah
  8. Message-ID: <bI28KKhSt3@astral.msk.su>
  9. Sender: news-service@newcom.kiae.su
  10. Reply-To: ache@astral.msk.su
  11. Lines: 58
  12.  
  13. Oh, NO! This curses are really buggy!
  14.  
  15. This small patch fix following problem:
  16. [ assumed scrollok(stdscr, TRUE) ]
  17. when addch(ch) at lower right corner of screen, curses are realy
  18. gone mad instead if simple scrolling... Curses code assumed that
  19. this will be done correctly, but implement it with two bugs.
  20.  
  21. *** addbytes.c.was2    Sun Jan 10 20:01:17 1993
  22. --- addbytes.c    Mon Jan 11 11:29:09 1993
  23. ***************
  24. *** 115,124 ****
  25.       newline:
  26.                   if (++y >= win->_maxy)
  27.                       if (win->_scroll) {
  28.                           SYNCH_OUT();
  29.                           scroll(win);
  30.                           SYNCH_IN();
  31. -                         --y;
  32.                       }
  33.                       else
  34.                           return ERR;
  35. --- 115,124 ----
  36.       newline:
  37.                   if (++y >= win->_maxy)
  38.                       if (win->_scroll) {
  39. +                         --y;
  40.                           SYNCH_OUT();
  41.                           scroll(win);
  42.                           SYNCH_IN();
  43.                       }
  44.                       else
  45.                           return ERR;
  46. *** deleteln.c.was1    Fri Jan  8 16:00:59 1993
  47. --- deleteln.c    Mon Jan 11 12:13:16 1993
  48. ***************
  49. *** 67,73 ****
  50.           temp = win->_y[y];
  51.       for (end = &temp[win->_maxx]; temp < end; )
  52.           *temp++ = ' ';
  53. !     touchline(win, win->_cury, 0, win->_maxx - 1);
  54.       if (win->_orig == NULL)
  55.           _id_subwins(win);
  56.       return OK;
  57. --- 67,73 ----
  58.           temp = win->_y[y];
  59.       for (end = &temp[win->_maxx]; temp < end; )
  60.           *temp++ = ' ';
  61. !     touchline(win, y, 0, win->_maxx - 1);
  62.       if (win->_orig == NULL)
  63.           _id_subwins(win);
  64.       return OK;
  65. -- 
  66. In-This-Life:  Andrew A. Chernov    |  "Hay mas dicha, mas contento
  67. Internet:      ache@astral.msk.su   |  "Que adorar una hermosura
  68. Organization:  The RELCOM Corp.,    |  "Brujuleada entre los lejos
  69.                Moscow, Russia       |  "De lo imposible?!"  (Calderon)
  70.  
  71.