File: openmode

package info (click to toggle)
vigor 0.016-15
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,700 kB
  • ctags: 3,859
  • sloc: ansic: 44,551; sh: 2,941; tcl: 1,544; makefile: 754; perl: 269; awk: 24; csh: 13
file content (36 lines) | stat: -rw-r--r-- 1,006 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
	@(#)openmode	8.1 (Berkeley) 10/29/94

Open mode has the following special behaviors:

z, ^F, ^B:
	If count is not specified, it shall default to the window
	edit option - 2.

	Write lines from the edit buffer starting at:

		(the current line) - ((count - 2) / 2)

	until:

		(((count + 1) / 2) * 2) - 1
	
	lines, or the last line in the edit buffer has been written.  A
	line consisting of the smaller of the number of columns in the
	display divided by two or 40 ``-'' characters shall be written
	immediately before and after the specified is written.  These two
	lines shall count against the total number of lines to be written.
	A blank line shall be written after the last line is written.

	z, ^F and ^B all behave identically.

^D:	Display the next scroll value lines, change the current line.

^U:	Change the current line, do nothing else.

^E, ^Y:	Do nothing.

^L:	Clear the screen and redisplay the current line.

H, L, M:
	Move to the first nonblank of the current line and do nothing
	else.