dorne/cli/curse.h

24 lines
521 B
C
Raw Normal View History

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>
2025-09-10 23:05:07 +10:00
enum crs_termmode {
2025-09-10 22:49:05 +10:00
/* tty cbreak mode */
2025-09-10 23:05:07 +10:00
TMODE_CBREAK,
2025-09-10 22:49:05 +10:00
/* tty raw mode */
2025-09-10 23:05:07 +10:00
TMODE_RAW,
2025-09-10 22:49:05 +10:00
/* tty cooked mode (ISIG & IXON not modified)*/
2025-09-10 23:05:07 +10:00
TMODE_NOCBREAK,
2025-09-10 22:49:05 +10:00
/* tty cooked mode (ISIG & IXON set) */
2025-09-10 23:05:07 +10:00
TMODE_NORAW,
2025-09-10 22:49:05 +10:00
};
2025-09-10 23:05:07 +10:00
int termmode(enum crs_termmode mode);
2025-09-10 22:49:05 +10:00
void init_ncurses(void);
WINDOW *init_window(int x, int y, int width, int height);
2025-09-10 23:05:07 +10:00
WINDOW *root_window(void);
2025-09-10 22:49:05 +10:00
#endif /* DORNE_CURSE_H */