Category : C++ Source Code
Archive   : CURSESP.ZIP
Filename : CHANGES.TXT

 
Output of file : CHANGES.TXT contained in archive : CURSESP.ZIP

PC Curses - A retouch
=====================

This is some notes about changes to PC curses 1.3. The original
source code is from Bjorn Larsson. It was dated 1987, and this
suggested the software has not been touched for a very long time.

This PC curses is not mine! It is a PD package that I improve for
my own use. There have been substantial changes/improvements which
will make life much easier for a PC programmer who would want his
program to compile under UNIX curses. Be ware though that there
are curses in SysV UNIX and also in BSD. These two are not totally
compatible. Many functions are not available in BSD curses.

- It is updated to ANSI-C compatible and C++ compatible. A header
file is provided for C++. This is done with BorlandC++ . If your
compiler does not work well with it, you have to modify it. It
is fairly straight forward. There is no special linking procedure.

- A colour scheme for text attributes have been built for EGA/VGA
monitor. The documentation is in file colours.txt

- An extra routine wgetatpos(win, y, x) is defined as a macro. This
allow a you to peek at location x, y of window win. It returns
a word of two bytes. To get the character simply AND it witth 0xff

Example:

To get the character code back.

c = wgetatpos(win, y, x) & 0xff;

This macro is handy for users to peek at a point in the current
window. With it, you can save a location on the window, overwrite
it with something else. Then finally put back what was there
before. It is also handy for changing attributes of certain spots
in a window without having to redraw everything.

In paralell with this macro a routine wputatpos(win, y, x, c)
is written to put back what you get from wgetatpos(). This is
for you to restore the character at the position.

Note that c is a 2 bytes integer returned by wgetatpos(win, y, x).
It has both colour attributes and ascii code of the character.

- The two routines mentioned above are supposed to be part of curses.
They are clones of mvwinch() and mvwinsch(). Unfortunately the
two proper routines do appear to be buggy. So I will have to fix
these before everyone can use it.

// End of changes.txt




  3 Responses to “Category : C++ Source Code
Archive   : CURSESP.ZIP
Filename : CHANGES.TXT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/