27 lines
673 B
C
27 lines
673 B
C
#ifndef DORNE_CURSE_H
|
|
#define DORNE_CURSE_H
|
|
|
|
/* libncurses with wide-character support. */
|
|
#include <ncursesw/ncurses.h>
|
|
|
|
enum crs_termmode {
|
|
/* tty cbreak mode */
|
|
TMODE_CBREAK,
|
|
/* tty raw mode */
|
|
TMODE_RAW,
|
|
/* tty cooked mode (ISIG & IXON not modified)*/
|
|
TMODE_NOCBREAK,
|
|
/* tty cooked mode (ISIG & IXON set) */
|
|
TMODE_NORAW,
|
|
};
|
|
|
|
int termmode(const enum crs_termmode mode);
|
|
|
|
void init_ncurses(void);
|
|
WINDOW *new_window(const int x, const int y, const int width, const int height);
|
|
WINDOW *root_window(void);
|
|
|
|
int resizemv_window(const int x, const int y, const int width, const int height,
|
|
WINDOW *const win);
|
|
|
|
#endif /* DORNE_CURSE_H */
|