2025-09-10 22:49:05 +10:00
|
|
|
#ifndef DORNE_CURSE_H
|
|
|
|
|
#define DORNE_CURSE_H
|
|
|
|
|
|
|
|
|
|
/* libncurses with wide-character support. */
|
|
|
|
|
#include <ncursesw/ncurses.h>
|
|
|
|
|
|
|
|
|
|
enum crs_mode {
|
|
|
|
|
/* tty cbreak mode */
|
|
|
|
|
WMODE_CBREAK,
|
|
|
|
|
/* tty raw mode */
|
|
|
|
|
WMODE_RAW,
|
|
|
|
|
/* tty cooked mode (ISIG & IXON not modified)*/
|
|
|
|
|
WMODE_NOCBREAK,
|
|
|
|
|
/* tty cooked mode (ISIG & IXON set) */
|
|
|
|
|
WMODE_NORAW,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
int termmode(enum crs_mode mode);
|
|
|
|
|
void init_ncurses(void);
|
2025-09-10 22:54:20 +10:00
|
|
|
WINDOW *init_window(int x, int y, int width, int height);
|
2025-09-10 22:49:05 +10:00
|
|
|
|
|
|
|
|
#endif /* DORNE_CURSE_H */
|