1 /* Unix definition file for less. -*- C -*-
3 * This file has 3 sections:
5 * Settings always true on Unix.
6 * Settings automatically determined by configure.
8 * * * * * * WARNING * * * * * *
9 * If you edit defines.h by hand, do "touch stamp-h" before you run make
10 * so config.status doesn't overwrite your changes.
13 /* User preferences. */
16 * SECURE is 1 if you wish to disable a bunch of features in order to
17 * be safe to run by unprivileged users.
22 * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
23 * (This is possible only if your system supplies the system() function.)
25 #define SHELL_ESCAPE (!SECURE)
28 * EXAMINE is 1 if you wish to allow examining files by name from within less.
30 #define EXAMINE (!SECURE)
33 * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
34 * to complete filenames at prompts.
36 #define TAB_COMPLETE_FILENAME (!SECURE)
39 * CMD_HISTORY is 1 if you wish to allow keys to cycle through
40 * previous commands at prompts.
45 * HILITE_SEARCH is 1 if you wish to have search targets to be
46 * displayed in standout mode.
48 #define HILITE_SEARCH 1
51 * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
52 * (This is possible only if your system supplies the system() function.)
53 * EDIT_PGM is the name of the (default) editor to be invoked.
55 #define EDITOR (!SECURE)
58 * TAGS is 1 if you wish to support tag files.
60 #define TAGS (!SECURE)
63 * USERFILE is 1 if you wish to allow a .less file to specify
64 * user-defined key bindings.
66 #define USERFILE (!SECURE)
69 * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
70 * This will generally work if your system provides the "popen" function
71 * and the "echo" shell command.
73 #define GLOB (!SECURE)
76 * PIPEC is 1 if you wish to have the "|" command
77 * which allows the user to pipe data into a shell command.
79 #define PIPEC (!SECURE)
82 * LOGFILE is 1 if you wish to allow the -l option (to create log files).
84 #define LOGFILE (!SECURE)
87 * GNU_OPTIONS is 1 if you wish to support the GNU-style command
88 * line options --help and --version.
93 * ONLY_RETURN is 1 if you want RETURN to be the only input which
94 * will continue past an error message.
95 * Otherwise, any key will continue past an error message.
100 * LESSKEYFILE is the filename of the default lesskey output file
101 * (in the HOME directory).
102 * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
103 * DEF_LESSKEYINFILE is the filename of the default lesskey input
104 * (in the HOME directory).
106 #define LESSKEYFILE ".less"
107 #define LESSKEYFILE_SYS SYSDIR "/sysless"
108 #define DEF_LESSKEYINFILE ".lesskey"
111 /* Settings always true on Unix. */
114 * Define MSDOS_COMPILER if compiling under Microsoft C.
116 #define MSDOS_COMPILER 0
119 * Pathname separator character.
121 #define PATHNAME_SEP "/"
124 * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
126 #define HAVE_SYS_TYPES_H 1
129 * Define if you have the <sgstat.h> header file.
134 * HAVE_PERROR is 1 if your system has the perror() call.
135 * (Actually, if it has sys_errlist, sys_nerr and errno.)
137 #define HAVE_PERROR 1
140 * HAVE_TIME is 1 if your system has the time() call.
145 * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
150 * Default shell metacharacters and meta-escape character.
152 #define DEF_METACHARS "; \t\n'\"()<>|&^`\\"
153 #define DEF_METAESCAPE "\\"
156 * HAVE_DUP is 1 if your system has the dup() call.
161 * Sizes of various buffers.
163 #define CMDBUF_SIZE 512 /* Buffer for multichar commands */
164 #define UNGOT_SIZE 100 /* Max chars to unget() */
165 #define LINEBUF_SIZE 1024 /* Max size of line in input file */
166 #define OUTBUF_SIZE 1024 /* Output buffer */
167 #define PROMPT_SIZE 200 /* Max size of prompt string */
168 #define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */
169 #define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */
170 #define TAGLINE_SIZE 512 /* Max size of line in tags file */
171 #define TABSTOP_MAX 32 /* Max number of custom tab stops */
173 /* Settings automatically determined by configure. */