Now in CVS: a port of PDCurses that uses SDL as the backend. This is
essentially complete, but could use more testing. Works great on Linux and
Windows; crashes mysteriously on Mac. (If anyone can fix that, please let me
know.) It's the first port to support _both_ kinds of resizing, as well as the
*LINE attributes, previously only available in X11.
Special features: The font or icon can be changed by adding a BMP file named
pdcfont.bmp or pdcicon.bmp in the starting directory. (The font file should be
1-bit, with the characters arranged in 8 lines of 32 characters each.) If the
files don't exist, internal fallbacks are used. Also, to an extent, you can mix
SDL and PDCurses code. Pointers to the SDL surfaces pdc_screen, pdc_font, and
pdc_icon are exposed. (This is subject to change.) Any of them can be set
before calling initscr(); or the pdc_screen created by PDCurses can be used
with SDL functions after initscr().
Limitations: No wide-character support; the output character set is code page
437, and the input is restricted to ASCII (plus the special keys) for now. Of
course, you can change the output character set by changing pdcfont.bmp, but
the acs_map[] expects CP 437.
The directory is labelled "sdl1" because I'm tentatively planning for a more
advanced SDL port in the future, to support Unicode and TTF, but I expect this
one to remain useful, because it's fast, and doesn't depend on anything beyond
basic SDL.
Currently only set up for an sdl-config based build ("Makefile") for Unix, or
MinGW ("Makefile.mng") for Windows. (The build system is the main thing that
needs work before it's released.)
--
William McBrine <[EMAIL PROTECTED]>