home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / cprog / cursesp.zip / CHANGES.TXT < prev    next >
Text File  |  1991-12-03  |  2KB  |  55 lines

  1.  
  2. PC Curses - A retouch
  3. =====================
  4.  
  5. This is some notes about changes to PC curses 1.3. The original
  6. source code is from Bjorn Larsson. It was dated 1987, and this
  7. suggested the software has not been touched for a very long time.
  8.     
  9. This PC curses is not mine! It is a PD package that I improve for
  10. my own use. There have been substantial changes/improvements which
  11. will make life much easier for a PC programmer who would want his 
  12. program to compile under UNIX curses. Be ware though that there
  13. are curses in SysV UNIX and also in BSD. These two are not totally
  14. compatible. Many functions are not available in BSD curses.
  15.  
  16.     - It is updated to ANSI-C compatible and C++ compatible. A header
  17.       file is provided for C++. This is done with BorlandC++ . If your
  18.       compiler does not work well with it, you have to modify it. It
  19.       is fairly straight forward. There is no special linking procedure.
  20.  
  21.     - A colour scheme for text attributes have been built for EGA/VGA
  22.       monitor. The documentation is in file colours.txt 
  23.  
  24.     - An extra routine wgetatpos(win, y, x) is defined as a macro. This
  25.       allow a you to peek at location x, y of window win. It returns
  26.       a word of two bytes. To get the character simply AND it witth 0xff
  27.  
  28.       Example:
  29.  
  30.             To get the character code back.
  31.  
  32.                 c = wgetatpos(win, y, x) & 0xff;
  33.  
  34.       This macro is handy for users to peek at a point in the current
  35.       window. With it, you can save a location on the window, overwrite
  36.       it with something else. Then finally put back what was there 
  37.       before. It is also handy for changing attributes of certain spots
  38.       in a window without having to redraw everything.
  39.  
  40.       In paralell with this macro a routine wputatpos(win, y, x, c)
  41.       is written to put back what you get from wgetatpos(). This is 
  42.       for you to restore the character at the position.
  43.  
  44.       Note that c is a 2 bytes integer returned by wgetatpos(win, y, x).
  45.       It has both colour attributes and ascii code of the character.
  46.  
  47.     - The two routines mentioned above are supposed to be part of curses.
  48.       They are clones of  mvwinch() and mvwinsch(). Unfortunately the
  49.       two proper routines do appear to be buggy. So I will have to fix
  50.       these before everyone can use it.
  51.  
  52. // End of changes.txt
  53.  
  54.  
  55.