diff options
author | yokota <yokota@FreeBSD.org> | 2001-08-02 08:30:40 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 2001-08-02 08:30:40 +0000 |
commit | 09383e1eceec397ac112cfaf1db425e914d8b259 (patch) | |
tree | c79575ae9a6fb28b44160934e3aadd6359c8977f /sys/sys/consio.h | |
parent | 1d105403d04e4606c3ab825795b3eb9c0a32dee4 (diff) | |
download | FreeBSD-src-09383e1eceec397ac112cfaf1db425e914d8b259.zip FreeBSD-src-09383e1eceec397ac112cfaf1db425e914d8b259.tar.gz |
Refine cursor type/shape control escape sequences and
ioctls. We can now add ve, vi and vs capabilities to
cons25 in termcap.
Discussed with and tested by: ache
Diffstat (limited to 'sys/sys/consio.h')
-rw-r--r-- | sys/sys/consio.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/sys/sys/consio.h b/sys/sys/consio.h index bf9e368..7892028 100644 --- a/sys/sys/consio.h +++ b/sys/sys/consio.h @@ -103,9 +103,11 @@ typedef struct ssaver ssaver_t; #define CONS_SSAVER _IOW('c', 5, ssaver_t) #define CONS_GSAVER _IOWR('c', 6, ssaver_t) -/* set the text cursor shape */ +/* set the text cursor type (obsolete, see CONS_CURSORSHAPE below) */ +/* #define CONS_BLINK_CURSOR (1 << 0) #define CONS_CHAR_CURSOR (1 << 1) +*/ #define CONS_CURSORTYPE _IOW('c', 7, int) /* set the bell type to audible or visual */ @@ -175,6 +177,22 @@ typedef struct mouse_info mouse_info_t; /* start the screen saver */ #define CONS_SAVERSTART _IOW('c', 13, int) +/* set the text cursor shape (see also CONS_CURSORTYPE above) */ +#define CONS_BLINK_CURSOR (1 << 0) +#define CONS_CHAR_CURSOR (1 << 1) +#define CONS_HIDDEN_CURSOR (1 << 2) +#define CONS_CURSOR_ATTRS (CONS_BLINK_CURSOR | CONS_CHAR_CURSOR | \ + CONS_HIDDEN_CURSOR) +#define CONS_RESET_CURSOR (1 << 30) +#define CONS_LOCAL_CURSOR (1 << 31) +#define CONS_CURSOR_FLAGS (CONS_RESET_CURSOR | CONS_LOCAL_CURSOR) +struct cshape { + /* shape[0]: flags, shape[1]: base, shape[2]: height */ + int shape[3]; +}; +#define CONS_GETCURSORSHAPE _IOWR('c', 14, struct cshape) +#define CONS_SETCURSORSHAPE _IOW('c', 15, struct cshape) + /* set/get font data */ struct fnt8 { char fnt8x8[8*256]; |