2000-04-26 04:03:38 -04:00
|
|
|
#ifndef __SCREEN_H
|
|
|
|
#define __SCREEN_H
|
|
|
|
|
|
|
|
#if defined(USE_NCURSES) && !defined(RENAMED_NCURSES)
|
|
|
|
#include <ncurses.h>
|
|
|
|
#else
|
|
|
|
#include <curses.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define ATTR_UNDERLINE 0x100
|
|
|
|
#define ATTR_COLOR8 0x200
|
|
|
|
#define ATTR_REVERSE 0x400
|
|
|
|
|
2000-05-09 07:42:42 -04:00
|
|
|
int init_screen(void); /* Initialize screen, detect screen length */
|
2000-04-26 04:03:38 -04:00
|
|
|
void deinit_screen(void); /* Deinitialize screen */
|
|
|
|
|
2000-05-09 07:42:42 -04:00
|
|
|
void set_color(int col);
|
|
|
|
void set_bg(int col);
|
2000-04-26 04:03:38 -04:00
|
|
|
|
2000-05-09 07:42:42 -04:00
|
|
|
void scroll_up(int y1, int y2); /* Scroll area up */
|
|
|
|
void scroll_down(int y1, int y2); /* Scroll area down */
|
2000-04-26 04:03:38 -04:00
|
|
|
|
2000-05-09 07:42:42 -04:00
|
|
|
void move_cursor(int y, int x);
|
2000-04-26 04:03:38 -04:00
|
|
|
|
|
|
|
void screen_refresh_freeze(void);
|
|
|
|
void screen_refresh_thaw(void);
|
|
|
|
void screen_refresh(void);
|
|
|
|
|
|
|
|
#endif
|