2000-04-26 04:03:38 -04:00
|
|
|
#ifndef __SCREEN_H
|
|
|
|
#define __SCREEN_H
|
|
|
|
|
|
|
|
#if defined(USE_NCURSES) && !defined(RENAMED_NCURSES)
|
2000-10-08 08:54:26 -04:00
|
|
|
# include <ncurses.h>
|
2000-04-26 04:03:38 -04:00
|
|
|
#else
|
2000-10-08 08:54:26 -04:00
|
|
|
# include <curses.h>
|
2000-04-26 04:03:38 -04:00
|
|
|
#endif
|
|
|
|
|
2001-01-15 17:18:09 -05:00
|
|
|
/* Some curseses include term.h, which #defines some things breaking irssi */
|
|
|
|
#undef lines
|
|
|
|
#undef key_backspace
|
|
|
|
#undef tab
|
|
|
|
|
2000-04-26 04:03:38 -04:00
|
|
|
#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-07-26 19:29:34 -04:00
|
|
|
void set_color(WINDOW *window, int col);
|
|
|
|
void set_bg(WINDOW *window, int col);
|
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);
|
2000-07-26 19:29:34 -04:00
|
|
|
void screen_refresh(WINDOW *window);
|
2000-04-26 04:03:38 -04:00
|
|
|
|
|
|
|
#endif
|