change DORNE_*_H namespacing to CURSETREE_*_H
This commit is contained in:
parent
69745c81f7
commit
daaaaf979c
9 changed files with 69 additions and 20 deletions
29
cursetree/ncrswrap.h
Normal file
29
cursetree/ncrswrap.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef CURSETREE_NCRSWRAP_H
|
||||
#define CURSETREE_NCRSWRAP_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,
|
||||
};
|
||||
|
||||
#define termsize(width, height) (width=COLS); (height=LINES)
|
||||
|
||||
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 /* CURSETREE_NCRSWRAP_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue