home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 1
/
CDPD_Vol1.bin
/
pd
/
326-350
/
330
/
vt100
/
mouse.doc
next >
Wrap
Text File
|
1992-06-23
|
1KB
|
42 lines
Mousing around with VT100
By default, this version of VT100 sends the following sequence when
the user presses the left (selection) button on the Amiga mouse:
<ESC> M (yes, a real capital M) <quals> <column> <line>
where column and line are bytes that represent the x, y coordinates of
the mouse click (offset by 32; a click on (0, 0) results in sending
two space characters), and quals is like so:
bit 0 control key
bit 1 shift key
bit 2 meta (alt) key
bit 3 caps lock
bit 4 mouse down event
bit 5 mouse up event
bit 6 always on (making qual a printable value)
For example, clicking on column 1, row 1 results in the escape sequence
<ESC> M P <SPC> <SPC>
In the startup file and scripts, the command MOUSE accepts the following
four parameters:
UP send a mouse event only when user releases the select button
DOWN send an event only when user presses the select button
BOTH send both up- and downward clicks
OFF don't send mouse clicks
The function key setup has been extended to handle "fm" (along with
"f1", "f2", etc.) so you can specify the string preceeding mouse
events. For example,
F M "^[Oz"
In a script or the startup file would rebind the "mouse" function key to
send
<ESC> O z