home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!mips!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!iagu.itd.adelaide.edu.au!andrewr
- From: andrewr@iagu.itd.adelaide.edu.au (Andrew Rutherford)
- Newsgroups: comp.unix.ultrix
- Subject: Re: Using mouse input in xterm/DECterm, possible?
- Keywords: mouse
- Message-ID: <8268@sirius.ucs.adelaide.edu.au>
- Date: 21 Aug 92 00:41:14 GMT
- References: <bibhas.714234503@femto.engr.mun.ca>
- Sender: news@ucs.adelaide.edu.au
- Reply-To: andrewr@itd.adelaide.edu.au
- Organization: Information Technology Division, Adelaide University, Australia
- Lines: 35
- Nntp-Posting-Host: iagu.itd.adelaide.edu.au
-
- In article <bibhas.714234503@femto.engr.mun.ca>, bibhas@pico.engr.mun.ca (Bibhas Bhattacharya) writes:
-
- +I was wondering if it's possible to incorporate mouse in a curses
- +programming. I was once told that a possible way would be to go through
- +some of the X386 source codes to find out how X gets the mouse input.
- +I have a slight hope that perhaps xlib could be used to read from mouse.
- +Is there any other possible system calls (read/write) that can allow me to
- +read from mouse?
-
- Well, DEC already have something funny going on - a while back
- I was running a dxterm on my workstation (OSF/1, not Ultrix) under which
- a telnet was running to a VAX running VMS. I wanted to use cut and paste to
- grab something out of a file I was editing (edit/tpu) so hit the left mouse
- button at the beginning of the line - and the mouse jumped to it. As I ran
- the mouse along, the cursor followed it. Most emacs-ish, but like emacs in
- that situation, not what I wanted :-) So I exited and the used cut and
- paste succesfully.
-
- Things to note from all of this:
- 1) This was running under telnet, so the VAX couldn't see any
- X events at all.
- 2) The behaviour was only during the editing seesion.
-
- Conslusion:
- There must be some escape sequence you can send that puts dxterm
- into some kind of mouse position reporting mode. Dunno what it is, never
- had time to chase it up and I'm not a VMS expert. Neat feture, though. :-)
-
- Andrew.
-
- /*
- * Andrew Rutherford andrewr@itd.adelaide.edu.au
- * +61 8 228 5669 Real Programmers always confuse Christmas and
- * Room 1060, Adelaide Uni Halloween because OCT 31 == DEC 25 !
- */
-