add ncurses wrapper

This commit is contained in:
Emile Clark-Boman 2025-09-10 22:49:05 +10:00
parent 361d63be94
commit c3074a75eb
3 changed files with 99 additions and 1 deletions

21
cli/curse.h Normal file
View file

@ -0,0 +1,21 @@
#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);
#endif /* DORNE_CURSE_H */