File:  [Research Unix] / researchv9 / cmd / emacs / macros / mouse
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv9-SUN3_old, researchv9-SUN3, HEAD
researchv9-SUN3(old)

mouse button 2 menu

	This is a simplified set of macros for use with the 5620
	mouse that do not conflict with the basic macro package.
	It assumes that etty is the terminal emulator.

	Joe Steffen

�<M@!Kill!m@!3k!
�<MA!Pick up!mA!3p!
�<MB!Yank back!mB!3y!
�<MC!Auto fill!mC!3f!
�<MD!Scroll bar!mD!3s!
�<ME!Change buffer!mE!3c!
�<MF!!
�0	save a pointer to the mouse button press macro

3	mouse button 2 actions [MACRO]

�0	map mouse button 1 press back to default
�	map mouse button 1 release back to default
!��<
				map button 1 release to
	�k�5�		kill region
	�p�6�		pickup region
	�f�8�		auto fill region
				map button 1 press to
	�y�7�			yankback region
				misc. actions
	�s�scroll_bar
	�
	�c�change_buffer
	�
�M

4	mark region [MACRO]
�

5	kill region [MACRO]
4

6	pickup region [MACRO]
4�

7	yank back region [MACRO]
�0	map mouse button 1 press back to default


8	auto fill region [MACRO]
4�

	move cursor (default for mouse button 1 release)


	move cursor when mouse button 1 is pressed

The mouse transmits ^X ^_ <key number> x y.  The key number is ignored.

				Collect the arguments
�<
��<
5��<
�12~�32	Subtract 32 to get the row and column
5�12~5�32
�13~�128	Shift the col over by 7 bits
�11~�5	Add in the row
g

scroll_bar cursor positioning in file

���=����=�2����4~�3~�0�=�X�2~�0�-�2�bar
�@
�<
�<
�-<
5�-<
�12~�32
�4~�3~��0�

change_buffer
<
�<Select one with mouse button 1
�<
�<
�-<
5�-<
�12~��34
~


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.