home *** CD-ROM | disk | FTP | other *** search
- /* Mouse routines for NCSA Telnet */
- /* Andrew Tridgell 10/17/90 */
-
- /* Basically these can replace n_chkchar,n_getchar and n_scrlck
- with ones that do the following
-
- mouse up : up arrow
- mouse down : down arrow
- mouse right : right arrow
- mouse left : left arrow
-
- left button : space bar
- right button : scroll lock toggle
-
- This is achieved by including mouse.h
- */
-
- #define MOUSE_H
-
- #include <stdio.h>
- #include <stdlib.h>
- #include "nkeys.h"
- #include "externs.h"
-
- #ifdef MSC
- #define mousecl mousecml
- #endif
-
- int nm_getchar(void);
- int nm_chkchar(void);
- int nm_scrlck(void);
- int nm_chkmouse(void);
- int nm_initmouse(void);
- int nm_mousespeed(int change);
-
- extern int use_mouse;
- extern int ginon;
-
- struct {
- int speed,
- num_right,
- num_down;
- unsigned int installed:1, /* boolean, whether the mouse has been installed */
- left_flag:1, /* boolean, whether the left button is down */
- right_flag:1, /* boolean, whether the right button is down */
- scrlck:1; /* boolean, whether the scrl-lock is active */
- } mouse;
-
- #ifdef GETtiveright]∩≥╣ α"ê n i │ê n iêª░ S1, /* boolean, whether the mouse has been installed */
- leftα"se;
- ext áiêªzris a#┼%$dag:1, τly y whet╣ì╛ 0╨ë ╥ τly ë╔ht,
-
- ther the scr CSAvn, wh wh wh wë ⁿ╞«7 ow y whet╣ì╛ 0╨ë
- l0 */τⁿght_flag:1┘¬─ ╠ê ean, whude "n
- ex#x#x#x#x#xê This ┐ speed, 0╨ë */τⁿ _ÿ lag:1,▌╥;
- ag:1Γkmou▓Θ#x#E_ⁿm_nThiousag:1,▌╥ou▓Θ#òªe "nght_╜Thiousf Éfú #: up aight ar ái ¬ f
- ₧wë aight ║