File:  [Research Unix] / researchv9 / cmd / emacs / macros / move
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)

�		Move the cursor to home (top line)

C. Douglas Blewett (MH3-C-319) Version 4

This file contains assorted macros that help the user move quickly or
accurately around the screen.  The central rountines are M-H and
M-L (top and bottom of the screen).  Should be able to have just one
routine to handle both, but ^]^N or ^]^P marks the file as modified
at the end or beginning of the buffer.

 Interface routines
	M-H - Home or top of screen
	M-L - Last or bottom of screen
	M-M - Middle of screen
	M-^P- Back one line - adds a line at the top of the screen
	M-^N- Forward one line - adds a line at the bottom of the screen

Modified  7/5/81: added argument count to M-^P and M-^N
Modified  9/23/81: fixed two window brain damage and cleaned it up

	�
	^�~0
		|�
			�~2=-1	Loop off thre screen
				�0
			�
			�
			�
			� 
				�0
			�
		�
	�

�		Move the cursor to the last line
	�
	^�~0
		|�
			�~2=-1	Loop off thre screen
				�0
			�
			�
			�
			� 
				�0
			�
		�
	�

�		Move the cursor to the middle of the screen
	�6�0=
	�7�12~0=6
	7�14~72
	7

�		Scroll up one line when on top line
	^�3~0
		�12~1	Loop
		��0
	�

�		Scroll down one line
	^�3~0
		�12~1	Loop
		��0
	�
	�0




unix.superglobalmegacorp.com

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