Gregory wrote:
>I would think that if the emulator allowed custom
>handling of mouse events, it could take MOUSEMOVE events, translate
>the relative offset from pixels to IOM x IOSL (but how would it know
>these values?) and "fire" key events corresponding to simulate use of
>the arrow keys (maybe with a modifier) to simulate the same relative
>motion. But then, of course, ScreenMan would have to be modified to
>understand these key sequences, too.

The ESCAPE sequences that report mouse events, report the row and column 
coordinates in
terms of character cell positions within the display area of the terminal 
emulator.

I had almost forgotten about the possibility of translating mouse events to 
arrow keys.
That is the oldest and crudest way of getting some utility from a mouse in a 
terminal
emulator. The best thing about it was that it would work even if the host 
application
didn't know anything about the possibility of a mouse. I know I used that at 
least 20
years ago on early Macintosh with an emulator called VersaTerm. The VersaTerm
documentation is what originally led me to understand that CHUI applications 
could use the
mouse extensively - and quite efficiently - once they have a comprehensive 
means of
handling ESCAPE sequences.

---------------------------------------
Jim Self
Systems Architect, Lead Developer
VMTH Computer Services, UC Davis
(http://www.vmth.ucdavis.edu/us/jaself)


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Hardhats-members mailing list
Hardhats-members@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to