xref: /netbsd-src/external/bsd/nvi/docs/internals/openmode (revision 4391d5e9d4f291db41e3b3ba26a01b5e51364aae)
1*4391d5e9Schristos	@(#)openmode	8.1 (Berkeley) 10/29/94
2*4391d5e9Schristos
3*4391d5e9SchristosOpen mode has the following special behaviors:
4*4391d5e9Schristos
5*4391d5e9Schristosz, ^F, ^B:
6*4391d5e9Schristos	If count is not specified, it shall default to the window
7*4391d5e9Schristos	edit option - 2.
8*4391d5e9Schristos
9*4391d5e9Schristos	Write lines from the edit buffer starting at:
10*4391d5e9Schristos
11*4391d5e9Schristos		(the current line) - ((count - 2) / 2)
12*4391d5e9Schristos
13*4391d5e9Schristos	until:
14*4391d5e9Schristos
15*4391d5e9Schristos		(((count + 1) / 2) * 2) - 1
16*4391d5e9Schristos
17*4391d5e9Schristos	lines, or the last line in the edit buffer has been written.  A
18*4391d5e9Schristos	line consisting of the smaller of the number of columns in the
19*4391d5e9Schristos	display divided by two or 40 ``-'' characters shall be written
20*4391d5e9Schristos	immediately before and after the specified is written.  These two
21*4391d5e9Schristos	lines shall count against the total number of lines to be written.
22*4391d5e9Schristos	A blank line shall be written after the last line is written.
23*4391d5e9Schristos
24*4391d5e9Schristos	z, ^F and ^B all behave identically.
25*4391d5e9Schristos
26*4391d5e9Schristos^D:	Display the next scroll value lines, change the current line.
27*4391d5e9Schristos
28*4391d5e9Schristos^U:	Change the current line, do nothing else.
29*4391d5e9Schristos
30*4391d5e9Schristos^E, ^Y:	Do nothing.
31*4391d5e9Schristos
32*4391d5e9Schristos^L:	Clear the screen and redisplay the current line.
33*4391d5e9Schristos
34*4391d5e9SchristosH, L, M:
35*4391d5e9Schristos	Move to the first nonblank of the current line and do nothing
36*4391d5e9Schristos	else.
37