For Programmers: Free Programming Magazines  


Home > Archive > Cobol > August 2005 > Re: Reading Mouse Location in UNIX via Emulator









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Reading Mouse Location in UNIX via Emulator
Chris

2005-08-23, 6:55 pm

Ah - as usual, soon after posting out of frustration, I stumbled across
my own answer.

You need to use the decimal values of the coordinates and subtract 32
from them to obtain column and row values.

So - in my examples above:

! = 33 - 32 = 1
" = 34 - 32 = 2
8 = 56 - 32 = 24

Of course - the 't' does not work here ( t = 116 - 32 = 84 ), but that
is because my emulator window was in fact set to 84 columns wide.

With this in mind, I shoul dbe able to make my program "mouse aware".

Has anyone had any experience with this? Any pointers/tips would be
appreciated ...


Thanks again,
Chris

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com