aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/term/bg-mouse.el
diff options
context:
space:
mode:
authorEric S. Raymond <[email protected]>1992-07-16 21:47:34 +0000
committerEric S. Raymond <[email protected]>1992-07-16 21:47:34 +0000
commite516799970be4553edae8ca46d5f64852befec77 (patch)
treed43d904ac4a87a1be2f4c0375b3f70928f952cf1 /lisp/term/bg-mouse.el
parentde49a6d37ea9c3111763e38df15e50a7fb9fa5c5 (diff)
*** empty log message ***
Diffstat (limited to 'lisp/term/bg-mouse.el')
-rw-r--r--lisp/term/bg-mouse.el15
1 files changed, 11 insertions, 4 deletions
diff --git a/lisp/term/bg-mouse.el b/lisp/term/bg-mouse.el
index c08ed9ed28..4496f0ec4f 100644
--- a/lisp/term/bg-mouse.el
+++ b/lisp/term/bg-mouse.el
@@ -1,13 +1,18 @@
;;; bg-mouse.el --- GNU Emacs code for BBN Bitgraph mouse.
+;; Author: John Robinson <[email protected]>
+;; Stephen Gildea <[email protected]>
+;; Maintainer: FSF
+;; Last-Modified: 14 Jul 1992
+;; Keywords: hardware
+
;; Copyright (C) Free Software Foundation, Inc. Oct 1985.
-;; Time stamp <89/03/21 14:27:08 gildea>
;; This file is part of GNU Emacs.
;; GNU Emacs is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation; either version 1, or (at your option)
+;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.
;; GNU Emacs is distributed in the hope that it will be useful,
@@ -19,9 +24,11 @@
;; along with GNU Emacs; see the file COPYING. If not, write to
;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+;;; Code:
;;; Original version by John Robinson ([email protected], bbncca!jr), Oct 1985
;;; Modularized and enhanced by [email protected] Nov 1987
+;;; Time stamp <89/03/21 14:27:08 gildea>
;;; User customization option:
@@ -62,9 +69,9 @@ To reinitialize the mouse if the terminal is reset, type ESC : RET"
(interactive "P")
(bg-get-tty-num semicolon)
(let*
- ((screen-mouse-x (min (1- (screen-width)) ;don't hit column 86!
+ ((screen-mouse-x (min (1- (frame-width)) ;don't hit column 86!
(/ (bg-get-tty-num semicolon) 9)))
- (screen-mouse-y (- (1- (screen-height)) ;assume default font size.
+ (screen-mouse-y (- (1- (frame-height)) ;assume default font size.
(/ (bg-get-tty-num semicolon) 16)))
(bg-mouse-buttons (% (bg-get-tty-num ?c) 8))
(bg-mouse-window (bg-window-from-x-y screen-mouse-x screen-mouse-y))