home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / ultrix / 6375 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  2.2 KB

  1. 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
  2. From: andrewr@iagu.itd.adelaide.edu.au (Andrew Rutherford)
  3. Newsgroups: comp.unix.ultrix
  4. Subject: Re: Using mouse input in xterm/DECterm, possible?
  5. Keywords: mouse
  6. Message-ID: <8268@sirius.ucs.adelaide.edu.au>
  7. Date: 21 Aug 92 00:41:14 GMT
  8. References: <bibhas.714234503@femto.engr.mun.ca>
  9. Sender: news@ucs.adelaide.edu.au
  10. Reply-To: andrewr@itd.adelaide.edu.au
  11. Organization: Information Technology Division, Adelaide University, Australia
  12. Lines: 35
  13. Nntp-Posting-Host: iagu.itd.adelaide.edu.au
  14.  
  15. In article <bibhas.714234503@femto.engr.mun.ca>, bibhas@pico.engr.mun.ca (Bibhas Bhattacharya) writes:
  16.  
  17. +I was wondering if it's possible to incorporate mouse in a curses
  18. +programming. I was once told that a possible way would be to go through
  19. +some of the X386 source codes to find out how X gets the mouse input.
  20. +I have a slight hope that perhaps xlib could be used to read from mouse.
  21. +Is there any other possible system calls (read/write) that can allow me to
  22. +read from mouse?
  23.  
  24.     Well, DEC already have something funny going on - a while back
  25. I was running a dxterm on my workstation (OSF/1, not Ultrix) under which
  26. a telnet was running to a VAX running VMS. I wanted to use cut and paste to
  27. grab something out of a file I was editing (edit/tpu) so hit the left mouse
  28. button at the beginning of the line - and the mouse jumped to it. As I ran
  29. the mouse along, the cursor followed it. Most emacs-ish, but like emacs in
  30. that situation, not what I wanted :-) So I exited and the used cut and
  31. paste succesfully.
  32.  
  33. Things to note from all of this:
  34. 1) This was running under telnet, so the VAX couldn't see any
  35.     X events at all.
  36. 2) The behaviour was only during the editing seesion.
  37.  
  38. Conslusion:
  39.     There must be some escape sequence you can send that puts dxterm
  40. into some kind of mouse position reporting mode. Dunno what it is, never
  41. had time to chase it up and I'm not a VMS expert. Neat feture, though. :-)
  42.  
  43.     Andrew.
  44.  
  45. /*
  46.  * Andrew Rutherford                 andrewr@itd.adelaide.edu.au
  47.  * +61 8 228 5669            Real Programmers always confuse Christmas and
  48.  * Room 1060, Adelaide Uni      Halloween because OCT 31 == DEC 25 !
  49.  */
  50.