summaryrefslogtreecommitdiffstats
path: root/sys/isa/syscons.h
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1996-06-25 08:54:57 +0000
committersos <sos@FreeBSD.org>1996-06-25 08:54:57 +0000
commit860f339c7232c8702024ec047064a929d031fad9 (patch)
treedd12dfd5ac0541ec9f731ed617993c246946cbd3 /sys/isa/syscons.h
parentd289477c1ff270a17b871d260683b361ff39f066 (diff)
downloadFreeBSD-src-860f339c7232c8702024ec047064a929d031fad9.zip
FreeBSD-src-860f339c7232c8702024ec047064a929d031fad9.tar.gz
Change the way moused talk to syscons, now its only delivering mouseevents
via an ioctl (MOUSE_ACTION). Fixed a couple of bugs (destructive cursor, uncut, jitter). Now applications can use the mouse via the MOUSE_MODE ioctl, its possible to have a signal sent on mouseevents, makeing an event loop in the application take over mouseevents.
Diffstat (limited to 'sys/isa/syscons.h')
-rw-r--r--sys/isa/syscons.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/isa/syscons.h b/sys/isa/syscons.h
index fa420f3..bd21445 100644
--- a/sys/isa/syscons.h
+++ b/sys/isa/syscons.h
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.h,v 1.16 1996/06/21 07:19:18 sos Exp $
+ * $Id: syscons.h,v 1.17 1996/06/23 17:12:03 bde Exp $
*/
#ifndef _I386_ISA_SYSCONS_H_
@@ -128,8 +128,8 @@ typedef struct term_stat {
int num_param; /* # of parameters to ESC */
int last_param; /* last parameter # */
int param[MAX_ESC_PAR]; /* contains ESC parameters */
- int cur_attr; /* current hardware attributes word */
- int attr_mask; /* current logical attributes mask */
+ int cur_attr; /* current hardware attr word */
+ int attr_mask; /* current logical attr mask */
int cur_color; /* current hardware color */
int std_color; /* normal hardware color */
int rev_color; /* reverse hardware color */
@@ -154,9 +154,13 @@ typedef struct scr_stat {
u_short mouse_saveunder[4]; /* saved chars under mouse */
short mouse_xpos; /* mouse x coordinate */
short mouse_ypos; /* mouse y coordinate */
+ short mouse_buttons; /* mouse buttons */
u_char mouse_cursor[128]; /* mouse cursor bitmap store */
u_short *mouse_cut_start; /* mouse cut start pos */
u_short *mouse_cut_end; /* mouse cut end pos */
+ struct proc *mouse_proc; /* proc* of controlling proc */
+ pid_t mouse_pid; /* pid of controlling proc */
+ int mouse_signal; /* signal # to report with */
u_short bell_duration;
u_short bell_pitch;
u_char border; /* border color */
OpenPOWER on IntegriCloud