diff options
author | yokota <yokota@FreeBSD.org> | 2000-03-31 16:05:46 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 2000-03-31 16:05:46 +0000 |
commit | ec0df31c65a92ec4abf516f31fde6c07ef136dd8 (patch) | |
tree | eae4e14d31313a306f2eed0e38eeb57ada63ab3c /sys/dev/syscons/syscons.h | |
parent | f6d236e3a23822aff581ece94f1dbb92418fc696 (diff) | |
download | FreeBSD-src-ec0df31c65a92ec4abf516f31fde6c07ef136dd8.zip FreeBSD-src-ec0df31c65a92ec4abf516f31fde6c07ef136dd8.tar.gz |
- Fix SC_ALT_MOUSE_IMAGE; don't blink the mouse cursor.
- Fix non-destructive, underline text cursor.
Diffstat (limited to 'sys/dev/syscons/syscons.h')
-rw-r--r-- | sys/dev/syscons/syscons.h | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/sys/dev/syscons/syscons.h b/sys/dev/syscons/syscons.h index c99a6f2..f204319 100644 --- a/sys/dev/syscons/syscons.h +++ b/sys/dev/syscons/syscons.h @@ -56,10 +56,19 @@ #undef SC_PIXEL_MODE #endif +#ifndef SC_CURSOR_CHAR +#define SC_CURSOR_CHAR (0x07) +#endif + #ifndef SC_MOUSE_CHAR #define SC_MOUSE_CHAR (0xd0) #endif +#if SC_MOUSE_CHAR <= SC_CURSOR_CHAR && SC_CURSOR_CHAR < (SC_MOUSE_CHAR + 4) +#undef SC_CURSOR_CHAR +#define SC_CURSOR_CHAR (SC_MOUSE_CHAR + 4) +#endif + #ifndef SC_DEBUG_LEVEL #define SC_DEBUG_LEVEL 0 #endif @@ -88,19 +97,20 @@ } /* vty status flags (scp->status) */ -#define UNKNOWN_MODE 0x00010 -#define SWITCH_WAIT_REL 0x00080 -#define SWITCH_WAIT_ACQ 0x00100 -#define BUFFER_SAVED 0x00200 -#define CURSOR_ENABLED 0x00400 -#define MOUSE_MOVED 0x01000 -#define MOUSE_CUTTING 0x02000 -#define MOUSE_VISIBLE 0x04000 -#define GRAPHICS_MODE 0x08000 -#define PIXEL_MODE 0x10000 -#define SAVER_RUNNING 0x20000 -#define VR_CURSOR_BLINK 0x40000 -#define VR_CURSOR_ON 0x80000 +#define UNKNOWN_MODE 0x00010 /* unknown video mode */ +#define SWITCH_WAIT_REL 0x00080 /* waiting for vty release */ +#define SWITCH_WAIT_ACQ 0x00100 /* waiting for vty ack */ +#define BUFFER_SAVED 0x00200 /* vty buffer is saved */ +#define CURSOR_ENABLED 0x00400 /* text cursor is enabled */ +#define MOUSE_MOVED 0x01000 /* mouse cursor has moved */ +#define MOUSE_CUTTING 0x02000 /* mouse cursor is cutting text */ +#define MOUSE_VISIBLE 0x04000 /* mouse cursor is showing */ +#define GRAPHICS_MODE 0x08000 /* vty is in a graphics mode */ +#define PIXEL_MODE 0x10000 /* vty is in a raster text mode */ +#define SAVER_RUNNING 0x20000 /* screen saver is running */ +#define VR_CURSOR_BLINK 0x40000 /* blinking text cursor */ +#define VR_CURSOR_ON 0x80000 /* text cursor is on */ +#define MOUSE_HIDDEN 0x100000 /* mouse cursor is temporarily hidden */ /* misc defines */ #define FALSE 0 @@ -204,6 +214,7 @@ typedef struct sc_softc { u_char *font_16; #endif + u_char cursor_char; u_char mouse_char; } sc_softc_t; @@ -248,6 +259,8 @@ typedef struct scr_stat { int mouse_oldpos; /* mouse old buffer position */ short mouse_xpos; /* mouse x coordinate */ short mouse_ypos; /* mouse y coordinate */ + short mouse_oldxpos; /* mouse previous x coordinate */ + short mouse_oldypos; /* mouse previous y coordinate */ short mouse_buttons; /* mouse buttons */ int mouse_cut_start; /* mouse cut start pos */ int mouse_cut_end; /* mouse cut end pos */ |