Wrap around with PY_BINDING for python scripting support.
[screen-lua.git] / src / acconfig.h
blob6cf4d4eef9b84f8fce659662d99a6e97c9d45070
1 /* Copyright (c) 1993-2000
2 * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
3 * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
4 * Copyright (c) 1987 Oliver Laumann
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3, or (at your option)
9 * any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program (see the file COPYING); if not, see
18 * http://www.gnu.org/licenses/, or contact Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
21 ****************************************************************
22 * $Id$ FAU
29 /**********************************************************************
31 * User Configuration Section
35 * Maximum of simultaneously allowed windows per screen session.
37 #ifndef MAXWIN
38 # define MAXWIN 40
39 #endif
42 * Define SOCKDIR to be the directory to contain the named sockets
43 * screen creates. This should be in a common subdirectory, such as
44 * /usr/local or /tmp. It makes things a little more secure if you
45 * choose a directory which is not writable by everyone or where the
46 * "sticky" bit is on, but this isn't required.
47 * If SOCKDIR is not defined screen will put the named sockets in
48 * the user's home directory. Notice that this can cause you problems
49 * if some user's HOME directories are AFS- or NFS-mounted. Especially
50 * AFS is unlikely to support named sockets.
52 * Screen will name the subdirectories "S-$USER" (e.g /tmp/S-davison).
54 #undef SOCKDIR
57 * Define this if the SOCKDIR is not shared between hosts.
59 #define SOCKDIR_IS_LOCAL_TO_HOST
62 * Screen can look for the environment variable $SYSSCREENRC and -if it
63 * exists- load the file specified in that variable as global screenrc.
64 * If you want to enable this feature, define ALLOW_SYSSCREENRC to one (1).
65 * Otherwise ETCSCREENRC is always loaded.
67 #define ALLOW_SYSSCREENRC 1
70 * Define CHECKLOGIN to force Screen users to enter their Unix password
71 * in addition to the screen password.
73 * Define NOSYSLOG if yo do not have logging facilities. Currently
74 * syslog() will be used to trace ``su'' commands only.
76 #define CHECKLOGIN 1
77 #undef NOSYSLOG
80 /*
81 * define PTYMODE if you do not like the default of 0622, which allows
82 * public write to your pty.
83 * define PTYGROUP to some numerical group-id if you do not want the
84 * tty to be in "your" group.
85 * Note, screen is unable to change mode or group of the pty if it
86 * is not installed with sufficient privilege. (e.g. set-uid-root)
87 * define PTYROFS if the /dev/pty devices are mounted on a read-only
88 * filesystem so screen should not even attempt to set mode or group
89 * even if running as root (e.g. on TiVo).
91 #undef PTYMODE
92 #undef PTYGROUP
93 #undef PTYROFS
96 * If screen is NOT installed set-uid root, screen can provide tty
97 * security by exclusively locking the ptys. While this keeps other
98 * users from opening your ptys, it also keeps your own subprocesses
99 * from being able to open /dev/tty. Define LOCKPTY to add this
100 * exclusive locking.
102 #undef LOCKPTY
105 * If you'd rather see the status line on the first line of your
106 * terminal rather than the last, define TOPSTAT.
108 #undef TOPSTAT
111 * define DETACH can detach a session. An absolute 'must'.
113 #define DETACH
116 * here come the erlangen extensions to screen:
117 * define LOCK if you want to use a lock program for a screenlock.
118 * define PASSWORD for secure reattach of your screen.
119 * define COPY_PASTE to use the famous hacker's treasure zoo.
120 * define POW_DETACH to have a detach_and_logout key (requires DETACH).
121 * define REMOTE_DETACH (-d option) to move screen between terminals.
122 * define AUTO_NUKE to enable Tim MacKenzies clear screen nuking
123 * define PSEUDOS to allow window input/output filtering
124 * define MULTI to allow multiple attaches.
125 * define MULTIUSER to allow other users attach to your session
126 * (if they are in the acl, of course)
127 * define MAPKEYS to include input keyboard translation.
128 * define FONT to support ISO2022/alternet charset support
129 * define COLOR to include ansi color support. This may expose
130 * a bug in x11r6-color-xterm.
131 * define DW_CHARS to include support for double-width character
132 * sets.
133 * define ENCODINGS to include support for encodings like euc or big5.
134 * Needs FONT to work.
135 * define UTF8 if you want support for UTF-8 encoding.
136 * Needs FONT and ENCODINGS to work.
137 * define COLORS16 if you want 16 colors.
138 * Needs COLOR to work.
139 * define BUILTIN_TELNET to add telnet support to screen.
140 * Syntax: screen //telnet host [port]
141 * define RXVT_OSC if you want support for rxvts special
142 * change fgcolor/bgcolor/bgpicture sequences
143 * define SCRIPT to add scripting support to screen.
145 #undef SIMPLESCREEN
146 #ifndef SIMPLESCREEN
147 # define LOCK
148 # define PASSWORD
149 # define COPY_PASTE
150 # define REMOTE_DETACH
151 # define POW_DETACH
152 # define AUTO_NUKE
153 # define PSEUDOS
154 # define MULTI
155 # define MULTIUSER
156 # define MAPKEYS
157 # define COLOR
158 # define FONT
159 # define DW_CHARS
160 # define ENCODINGS
161 # define UTF8
162 # define COLORS16
163 # define ZMODEM
164 # define BLANKER_PRG
165 # define SCRIPT
166 #endif /* SIMPLESCREEN */
168 /*Include the binding you would like to use.*/
169 #ifdef SCRIPT
170 #define LUA_BINDING
171 #define PY_BINDING
172 #endif
174 #undef BUILTIN_TELNET
175 #undef RXVT_OSC
176 #undef COLORS256
180 * If you have a braille display you should define HAVE_BRAILLE.
181 * The code inside #ifdef HAVE_BRAILLE was contributed by Hadi Bargi
182 * Rangin (bargi@dots.physics.orst.edu).
183 * WARNING: this is more or less unsupported code, it may be full of
184 * bugs leading to security holes, enable at your own risk!
186 #undef HAVE_BRAILLE
190 * As error messages are mostly meaningless to the user, we
191 * try to throw out phrases that are somewhat more familiar
192 * to ...well, at least familiar to us NetHack players.
194 #ifndef NONETHACK
195 # define NETHACK
196 #endif /* NONETHACK */
199 * If screen is installed with permissions to update /etc/utmp (such
200 * as if it is installed set-uid root), define UTMPOK.
202 #define UTMPOK
204 /* Set LOGINDEFAULT to one (1)
205 * if you want entries added to /etc/utmp by default, else set it to
206 * zero (0).
207 * LOGINDEFAULT will be one (1) whenever LOGOUTOK is undefined!
209 #define LOGINDEFAULT 1
211 /* Set LOGOUTOK to one (1)
212 * if you want the user to be able to log her/his windows out.
213 * (Meaning: They are there, but not visible in /etc/utmp).
214 * Disabling this feature only makes sense if you have a secure /etc/utmp
215 * database.
216 * Negative examples: suns usually have a world writable utmp file,
217 * xterm will run perfectly without s-bit.
219 * If LOGOUTOK is undefined and UTMPOK is defined, all windows are
220 * initially and permanently logged in.
222 * Set CAREFULUTMP to one (1) if you want that users have at least one
223 * window per screen session logged in.
225 #define LOGOUTOK 1
226 #undef CAREFULUTMP
230 * If UTMPOK is defined and your system (incorrectly) counts logins by
231 * counting non-null entries in /etc/utmp (instead of counting non-null
232 * entries with no hostname that are not on a pseudo tty), define USRLIMIT
233 * to have screen put an upper-limit on the number of entries to write
234 * into /etc/utmp. This helps to keep you from exceeding a limited-user
235 * license.
237 #undef USRLIMIT
240 * both must be defined if you want to favor tcsendbreak over
241 * other calls to generate a break condition on serial lines.
242 * (Do not bother, if you are not using plain tty windows.)
244 #define POSIX_HAS_A_GOOD_TCSENDBREAK
245 #define SUNOS4_AND_WE_TRUST_TCSENDBREAK
248 * to lower the interrupt load on the host machine, you may want to
249 * adjust the VMIN and VTIME settings used for plain tty windows.
250 * See the termio(4) manual page (Non-Canonical Mode Input Processing)
251 * for details.
252 * if undefined, VMIN=1, VTIME=0 is used as a default - this gives you
253 * best user responsiveness, but highest interrupt frequency.
254 * (Do not bother, if you are not using plain tty windows.)
256 #define TTYVMIN 100
257 #define TTYVTIME 2
260 * looks like the above values are ignored by setting FNDELAY.
261 * This is default for all pty/ttys, you may disable it for
262 * ttys here. After playing with it for a while, one may find out
263 * that this feature may cause screen to lock up.
265 #ifdef bsdi
266 # define TTY_DISABLE_FNBLOCK /* select barfs without it ... */
267 #endif
271 * Some terminals, e.g. Wyse 120, use a bitfield to select attributes.
272 * This doesn't work with the standard so/ul/m? terminal entries,
273 * because they will cancel each other out.
274 * On TERMINFO machines, "sa" (sgr) may work. If you want screen
275 * to switch attributes only with sgr, define USE_SGR.
276 * This is *not* recomended, do this only if you must.
278 #undef USE_SGR
282 * Define USE_LOCALE if you want screen to use the locale names
283 * for the name of the month and day of the week.
285 #define USE_LOCALE
288 * Define USE_PAM if your system supports PAM (Pluggable Authentication
289 * Modules) and you want screen to use it instead of calling crypt().
290 * (You may also need to add -lpam to LIBS in the Makefile.)
292 #undef USE_PAM
295 * Define CHECK_SCREEN_W if you want screen to set TERM to screen-w
296 * if the terminal width is greater than 131 columns. No longer needed
297 * on modern systems which use $COLUMNS or the tty settings instead.
299 #undef CHECK_SCREEN_W
301 /**********************************************************************
303 * End of User Configuration Section
305 * Rest of this file is modified by 'configure'
306 * Change at your own risk!
311 * Some defines to identify special unix variants
313 #ifndef SVR4
314 #undef SVR4
315 #endif
317 /* #ifndef __osf__ */
318 #ifndef MIPS
319 #undef MIPS
320 #endif
321 /* #endif */
323 #ifndef OSX
324 #undef OSX
325 #endif
327 #ifndef ISC
328 #undef ISC
329 #endif
331 #ifndef sysV68
332 #undef sysV68
333 #endif
335 #ifndef _POSIX_SOURCE
336 #undef _POSIX_SOURCE
337 #endif
340 * Define POSIX if your system supports IEEE Std 1003.1-1988 (POSIX).
342 #undef POSIX
345 * Define BSDJOBS if you have BSD-style job control (both process
346 * groups and a tty that deals correctly with them).
348 #undef BSDJOBS
351 * Define TERMIO if you have struct termio instead of struct sgttyb.
352 * This is usually the case for SVID systems, where BSD uses sgttyb.
353 * POSIX systems should define this anyway, even though they use
354 * struct termios.
356 #undef TERMIO
359 * Define CYTERMIO if you have cyrillic termio modes.
361 #undef CYTERMIO
364 * Define TERMINFO if your machine emulates the termcap routines
365 * with the terminfo database.
366 * Thus the .screenrc file is parsed for
367 * the command 'terminfo' and not 'termcap'.
369 #undef TERMINFO
372 * If your library does not define ospeed, define this.
374 #undef NEED_OSPEED
377 * Define SYSV if your machine is SYSV complient (Sys V, HPUX, A/UX)
379 #ifndef SYSV
380 #undef SYSV
381 #endif
384 * Define SIGVOID if your signal handlers return void. On older
385 * systems, signal returns int, but on newer ones, it returns void.
387 #undef SIGVOID
390 * Define USESIGSET if you have sigset for BSD 4.1 reliable signals.
392 #undef USESIGSET
395 * Define SYSVSIGS if signal handlers must be reinstalled after
396 * they have been called.
398 #undef SYSVSIGS
401 * Define BSDWAIT if your system defines a 'union wait' in <sys/wait.h>
403 * Only allow BSDWAIT i.e. wait3 on nonposix systems, since
404 * posix implies wait(3) and waitpid(3). vdlinden@fwi.uva.nl
407 #ifndef POSIX
408 #undef BSDWAIT
409 #endif
412 * On RISCOS we prefer wait2() over wait3(). rouilj@sni-usa.com
414 #ifdef BSDWAIT
415 #undef USE_WAIT2
416 #endif
419 * If your system has getutent(), pututline(), etc. to write to the
420 * utmp file, define GETUTENT.
422 #undef GETUTENT
425 * Define UTHOST if the utmp file has a host field.
427 #undef UTHOST
430 * Define if you have the utempter utmp helper program
432 #undef HAVE_UTEMPTER
435 * If ttyslot() breaks getlogin() by returning indexes to utmp entries
436 * of type DEAD_PROCESS, then our getlogin() replacement should be
437 * selected by defining BUGGYGETLOGIN.
439 #undef BUGGYGETLOGIN
442 * If your system has the calls setreuid() and setregid(),
443 * define HAVE_SETREUID. Otherwise screen will use a forked process to
444 * safely create output files without retaining any special privileges.
446 #undef HAVE_SETRESUID
447 #undef HAVE_SETREUID
450 * If your system supports BSD4.4's seteuid() and setegid(), define
451 * HAVE_SETEUID.
453 #undef HAVE_SETEUID
456 * If you want the "time" command to display the current load average
457 * define LOADAV. Maybe you must install screen with the needed
458 * privileges to read /dev/kmem.
459 * Note that NLIST_ stuff is only checked, when getloadavg() is not available.
461 #undef LOADAV
463 #undef LOADAV_NUM
464 #undef LOADAV_TYPE
465 #undef LOADAV_SCALE
466 #undef LOADAV_GETLOADAVG
467 #undef LOADAV_UNIX
468 #undef LOADAV_AVENRUN
469 #undef LOADAV_USE_NLIST64
471 #undef NLIST_DECLARED
472 #undef NLIST_STRUCT
473 #undef NLIST_NAME_UNION
476 * If your system has the new format /etc/ttys (like 4.3 BSD) and the
477 * getttyent(3) library functions, define GETTTYENT.
479 #undef GETTTYENT
482 * Define USEBCOPY if the bcopy/memcpy from your system's C library
483 * supports the overlapping of source and destination blocks. When
484 * undefined, screen uses its own (probably slower) version of bcopy().
486 * SYSV machines may have a working memcpy() -- Oh, this is
487 * quite unlikely. Tell me if you see one.
488 * "But then, memmove() should work, if at all available" he thought...
489 * Boing, never say "works everywhere" unless you checked SCO UNIX.
490 * Their memove fails the test in the configure script. Sigh. (Juergen)
492 #undef USEBCOPY
493 #undef USEMEMCPY
494 #undef USEMEMMOVE
497 * If your system has vsprintf() and requires the use of the macros in
498 * "varargs.h" to use functions with variable arguments,
499 * define USEVARARGS.
501 #undef USEVARARGS
504 * If the select return value doesn't treat a descriptor that is
505 * usable for reading and writing as two hits, define SELECT_BROKEN.
507 #undef SELECT_BROKEN
510 * Define this if your system supports named pipes.
512 #undef NAMEDPIPE
515 * Define this if your system exits select() immediatly if a pipe is
516 * opened read-only and no writer has opened it.
518 #undef BROKEN_PIPE
521 * Define this if the unix-domain socket implementation doesn't
522 * create a socket in the filesystem.
524 #undef SOCK_NOT_IN_FS
527 * If your system has setenv() and unsetenv() define USESETENV
529 #undef USESETENV
532 * If setenv() takes 3 arguments sefine HAVE_SETENV_3
534 #undef HAVE_SETENV_3
537 * If setenv() takes 2 arguments sefine HAVE_SETENV_2
539 #undef HAVE_SETENV_2
542 * If your system does not come with a setenv()/putenv()/getenv()
543 * functions, you may bring in our own code by defining NEEDPUTENV.
545 #undef NEEDPUTENV
548 * If the passwords are stored in a shadow file and you want the
549 * builtin lock to work properly, define SHADOWPW.
551 #undef SHADOWPW
554 * define HAVE_NL_LANGINFO if your system has the nl_langinfo() call
555 * and <langinfo.h> defines CODESET.
557 #undef HAVE_NL_LANGINFO
560 * Newer versions of Solaris include fdwalk, which can greatly improve
561 * the startup time of screen; otherwise screen spends a lot of time
562 * closing file descriptors.
564 #undef HAVE_FDWALK
567 * define HAVE_DEV_PTC if you have a /dev/ptc character special
568 * device.
570 #undef HAVE_DEV_PTC
573 * define HAVE_SVR4_PTYS if you have a /dev/ptmx character special
574 * device and support the ptsname(), grantpt(), unlockpt() functions.
576 #undef HAVE_SVR4_PTYS
579 * define PTYRANGE0 and or PTYRANGE1 if you want to adapt screen
580 * to unusual environments. E.g. For SunOs the defaults are "qpr" and
581 * "0123456789abcdef". For SunOs 4.1.2
582 * #define PTYRANGE0 "pqrstuvwxyzPQRST"
583 * is recommended by Dan Jacobson.
585 #undef PTYRANGE0
586 #undef PTYRANGE1