xref: /original-bsd/usr.bin/more/less.h (revision 76f06662)
1 /*
2  * Copyright (c) 1988 Mark Nudleman
3  * Copyright (c) 1988, 1993
4  *	The Regents of the University of California.  All rights reserved.
5  *
6  * %sccs.include.redist.c%
7  *
8  *	@(#)less.h	8.1 (Berkeley) 06/06/93
9  */
10 
11 #define	RECOMP
12 
13 #define	NULL_POSITION	((off_t)(-1))
14 
15 #define	EOI		(0)
16 #define	READ_INTR	(-2)
17 
18 /* Special chars used to tell put_line() to do something special */
19 #define	UL_CHAR		'\201'		/* Enter underline mode */
20 #define	UE_CHAR		'\202'		/* Exit underline mode */
21 #define	BO_CHAR		'\203'		/* Enter boldface mode */
22 #define	BE_CHAR		'\204'		/* Exit boldface mode */
23 
24 #define	CONTROL_CHAR(c)		(iscntrl(c))
25 #define	CARAT_CHAR(c)		((c == '\177') ? '?' : (c | 0100))
26 
27 #define	TOP		(0)
28 #define	TOP_PLUS_ONE	(1)
29 #define	BOTTOM		(-1)
30 #define	BOTTOM_PLUS_ONE	(-2)
31 #define	MIDDLE		(-3)
32 
33 #define	A_INVALID		-1
34 
35 #define	A_AGAIN_SEARCH		1
36 #define	A_B_LINE		2
37 #define	A_B_SCREEN		3
38 #define	A_B_SCROLL		4
39 #define	A_B_SEARCH		5
40 #define	A_DIGIT			6
41 #define	A_EXAMINE		7
42 #define	A_FREPAINT		8
43 #define	A_F_LINE		9
44 #define	A_F_SCREEN		10
45 #define	A_F_SCROLL		11
46 #define	A_F_SEARCH		12
47 #define	A_GOEND			13
48 #define	A_GOLINE		14
49 #define	A_GOMARK		15
50 #define	A_HELP			16
51 #define	A_NEXT_FILE		17
52 #define	A_PERCENT		18
53 #define	A_PREFIX		19
54 #define	A_PREV_FILE		20
55 #define	A_QUIT			21
56 #define	A_REPAINT		22
57 #define	A_SETMARK		23
58 #define	A_STAT			24
59 #define	A_VISUAL		25
60 #define	A_TAGFILE		26
61 #define	A_FILE_LIST		27
62