summaryrefslogtreecommitdiff
path: root/src/fe-text/screen.h
blob: 3fc5694efc44cd7dbf287a3c959f1c311a6a61cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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

extern gboolean use_colors;

gint init_screen(void); /* Initialize screen, detect screen length */
void deinit_screen(void); /* Deinitialize screen */

void set_color(gint col);
void set_bg(gint col);

void scroll_up(gint y1, gint y2); /* Scroll area up */
void scroll_down(gint y1, gint y2); /* Scroll area down */

void move_cursor(gint y, gint x);

void screen_refresh_freeze(void);
void screen_refresh_thaw(void);
void screen_refresh(void);

#endif