Changeset View
Changeset View
Standalone View
Standalone View
sys/teken/teken.h
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
typedef void tf_bell_t(void *); | typedef void tf_bell_t(void *); | ||||
typedef void tf_cursor_t(void *, const teken_pos_t *); | typedef void tf_cursor_t(void *, const teken_pos_t *); | ||||
typedef void tf_putchar_t(void *, const teken_pos_t *, teken_char_t, | typedef void tf_putchar_t(void *, const teken_pos_t *, teken_char_t, | ||||
const teken_attr_t *); | const teken_attr_t *); | ||||
typedef void tf_fill_t(void *, const teken_rect_t *, teken_char_t, | typedef void tf_fill_t(void *, const teken_rect_t *, teken_char_t, | ||||
const teken_attr_t *); | const teken_attr_t *); | ||||
typedef void tf_copy_t(void *, const teken_rect_t *, const teken_pos_t *); | typedef void tf_copy_t(void *, const teken_rect_t *, const teken_pos_t *); | ||||
typedef void tf_video_lock_t(void *); | |||||
typedef void tf_video_unlock_t(void *); | |||||
typedef void tf_param_t(void *, int, unsigned int); | typedef void tf_param_t(void *, int, unsigned int); | ||||
#define TP_SHOWCURSOR 0 | #define TP_SHOWCURSOR 0 | ||||
#define TP_KEYPADAPP 1 | #define TP_KEYPADAPP 1 | ||||
#define TP_AUTOREPEAT 2 | #define TP_AUTOREPEAT 2 | ||||
#define TP_SWITCHVT 3 | #define TP_SWITCHVT 3 | ||||
#define TP_132COLS 4 | #define TP_132COLS 4 | ||||
#define TP_SETBELLPD 5 | #define TP_SETBELLPD 5 | ||||
#define TP_SETBELLPD_PITCH(pd) ((pd) >> 16) | #define TP_SETBELLPD_PITCH(pd) ((pd) >> 16) | ||||
#define TP_SETBELLPD_DURATION(pd) ((pd) & 0xffff) | #define TP_SETBELLPD_DURATION(pd) ((pd) & 0xffff) | ||||
#define TP_MOUSE 6 | #define TP_MOUSE 6 | ||||
#define TP_SETBORDER 7 | #define TP_SETBORDER 7 | ||||
#define TP_SETLOCALCURSOR 8 | #define TP_SETLOCALCURSOR 8 | ||||
#define TP_SETGLOBALCURSOR 9 | #define TP_SETGLOBALCURSOR 9 | ||||
typedef void tf_respond_t(void *, const void *, size_t); | typedef void tf_respond_t(void *, const void *, size_t); | ||||
typedef struct { | typedef struct { | ||||
tf_bell_t *tf_bell; | tf_bell_t *tf_bell; | ||||
tf_cursor_t *tf_cursor; | tf_cursor_t *tf_cursor; | ||||
tf_putchar_t *tf_putchar; | tf_putchar_t *tf_putchar; | ||||
tf_fill_t *tf_fill; | tf_fill_t *tf_fill; | ||||
tf_copy_t *tf_copy; | tf_copy_t *tf_copy; | ||||
tf_video_lock_t *tf_video_lock; | |||||
tf_video_unlock_t *tf_video_unlock; | |||||
tf_param_t *tf_param; | tf_param_t *tf_param; | ||||
tf_respond_t *tf_respond; | tf_respond_t *tf_respond; | ||||
} teken_funcs_t; | } teken_funcs_t; | ||||
typedef teken_char_t teken_scs_t(const teken_t *, teken_char_t); | typedef teken_char_t teken_scs_t(const teken_t *, teken_char_t); | ||||
/* | /* | ||||
* Terminal state. | * Terminal state. | ||||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |