home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 307.lha / VT100_v2.9 / mouse.doc next >
Text File  |  1980-12-06  |  1KB  |  42 lines

  1.             Mousing around with VT100
  2.  
  3. By default, this version of VT100 sends the following sequence when
  4. the user presses the left (selection) button on the Amiga mouse:
  5.  
  6.     <ESC> M (yes, a real capital M) <quals> <column> <line>
  7.  
  8. where column and line are bytes that represent the x, y coordinates of
  9. the mouse click (offset by 32; a click on (0, 0) results in sending
  10. two space characters), and quals is like so:
  11.  
  12.     bit 0    control key
  13.     bit 1    shift key
  14.     bit 2    meta (alt) key
  15.     bit 3    caps lock
  16.     bit 4    mouse down event
  17.     bit 5    mouse up event
  18.     bit 6    always on (making qual a printable value)
  19.  
  20. For example, clicking on column 1, row 1 results in the escape sequence
  21.  
  22.     <ESC> M P <SPC> <SPC>
  23.  
  24. In the startup file and scripts, the command MOUSE accepts the following
  25. four parameters:
  26.  
  27.     UP    send a mouse event only when user releases the select button
  28.     DOWN    send an event only when user presses the select button
  29.     BOTH    send both up- and downward clicks
  30.     OFF    don't send mouse clicks
  31.  
  32.  
  33. The function key setup has been extended to handle "fm" (along with
  34. "f1", "f2", etc.) so you can specify the string preceeding mouse
  35. events.  For example,
  36.  
  37.     F M    "^[Oz"
  38.  
  39. In a script or the startup file would rebind the "mouse" function key to
  40. send
  41.     <ESC> O z
  42.