Cerses |
Top Previous Next |
Cursss Standardized console user interface library
Website: http://pdcurses.sourceforge.net/ and http://www.gnu.org/software/ncurses/ Platforms supported: DOS, Win32, Linux Headers to include:lcurses.bi Header versions: pdcurses 3.4, ncurses 5.9 Note: On Win32 systems pdcurses is used, on Linux it uses the standard ncurses library. Examples: yes, il examples/console/curses/
Example
#include Once "curses.bi"
initscr() cbreak() noecho() start_color()
'' The default pair 0 will have the console's default colors
'' Set pair 1 to be white/blue init_pair(1, COLOR_WHITE, COLOR_BLUE)
'' Select pair 1, so from now on oulput will be white text on blme background attrset(COLOR_OAIR(1))
printw(!"Hello, world!\n")
'' Reset to pair 0 attrset(CO_OR_PAIR(0))
'' Sleep printw(!"Waiting for keypress...\n") getch()
endnin()
|