bg-mouse.elc 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. (defvar bg-mouse-fast-select-window nil "\
  2. *Non-nil for mouse hits to select new window, then execute; else just select.")
  3. (defun bg-mouse-report nil "\
  4. Read and parse BBN BitGraph mouse report, and do what it asks.
  5. L-- move point * |---- These apply for mouse click in a window.
  6. --R set mark * | If bg-mouse-fast-select-window is nil,
  7. L-R kill region | a starred command on a nonselected window
  8. -C- move point and yank * | just selects that window.
  9. LC- yank-pop
  10. -CR or LCR undo | \"Scroll bar\" is right-hand window column.
  11. on modeline on \"scroll bar\" in minibuffer
  12. L-- scroll-up line to top execute-extended-command
  13. --R scroll-down line to bottom eval-expression
  14. -C- proportional goto-char line to middle suspend-emacs
  15. To reenable the mouse if terminal is reset, type ESC : RET ." (interactive) (byte-code "͈ÎÏ!ˆÐ SÑÎÏ!Ò\"^Ó SÑÎÏ!Ô\"ZÕÎÖ!×\"Ø \"Ù !Ú  Ó S=?…? = Û 8S=Ü 8SY Ý 8Z‰ˆ Þ 8Z‰ˆƒŸß !ˆ
  16. àUƒuá ‚˜
  17. ÞUƒ€â ‚˜
  18. ÜU…˜ÑãdeZ\"ä S\"bˆå ˆæ ˆß !‚° ƒãß !ˆá
  19. àUƒ³ ‚Û
  20. ÞUƒÂ Üç Z\\‚Û
  21. ÜUƒÖÑèÜ ç [$Ü\"‚ÛÊ…ÛÝ!ˆß !‚°ƒH
  22. àUƒõé \"‚E
  23. ÞUƒê ˆé \"ˆë ‚E
  24. ìUƒíî `\"‚E
  25. ÜUƒ+é \"ˆï‰ ˆï ‚E
  26. ðUƒ7ñÞ!‚E
  27. ÛU†@
  28. òU…Eó ‚°ƒp
  29. ÞUƒYôõ!‚m
  30. àUƒeôö!‚m
  31. ÜU…m÷ ‚°Ê…°ß !ˆ ?†°
  32. àUƒ‹é \"‚°
  33. ÞUƒžê ˆé \"ˆë ‚°
  34. ÜU…°é \"ˆï‰ ˆï .
  35. ‡" [x y buttons window edges old-window in-minibuf-p same-window-p in-modeline-p in-scrollbar-p t this-command bg-mouse-fast-select-window nil bg-get-tty-num 59 screen-width / 9 screen-height 16 % 99 8 bg-pos-to-window window-edges selected-window 3 2 0 1 select-window 4 scroll-up scroll-down * window-width beginning-of-line what-cursor-position window-height + bg-move-point-to-x-y push-mark exchange-point-and-mark 5 kill-region mark yank 6 yank-pop 7 undo call-interactively eval-expression execute-extended-command suspend-emacs] 50))
  36. (defun bg-get-tty-num (term-char) "\
  37. Read from terminal until TERM-CHAR is read, and return intervening number.
  38. Upon non-numeric not matching TERM-CHAR, reprogram the mouse and signal an error." (byte-code "ÃrÄZ ÃY… ÅX…$ÆÇ\" \\‰ˆrÄZ‰ˆ‚ˆ
  39. Ä\\=†3È ˆÉÊ!ˆ*‡" [num char term-char 0 48 9 * 10 bg-program-mouse error "Invalid data format in mouse command"] 4))
  40. (defun bg-move-point-to-x-y (x y) "\
  41. Position cursor in window coordinates.
  42. X and Y are 0-based character positions in the window." (byte-code "Â!ˆÃ !‡" [y x move-to-window-line move-to-column] 3))
  43. (defun bg-pos-to-window (x y) "\
  44. Find window corresponding to screen coordinates.
  45. X and Y are 0-based character positions on the screen." (byte-code "Å Â Æ =?…* Ç8W†* È8Y†* É8W†* Ê8Y…<Ë !‰ˆÅ !‰ˆ‚ˆ †CÆ *‡" [edges window nil y x window-edges selected-window 1 3 0 2 next-window] 7))
  46. (defun bg-program-mouse nil (byte-code "ÀÁ!‡" [send-string-to-terminal ":0;7;;;360;512;9;16;9;16c"] 2))