5 #define VERSION_STRING VERSION
7 #define COPYRIGHT_STRING "(C) 1999 - 2002 Mikulas Patocka\n" \
8 "(C) 2001 - 2004 Petr Baudis\n" \
9 "(C) 2002 - 2007 Jonas Fonseca\n"
11 /* This option will take effect when WWW_HOME environment variable is NOT
12 * set - you'll go automatically to this URL. If the value is just "",
13 * you'll get either goto dialog or empty page, depending on the value of
14 * startup_goto_dialog. */
15 #define WWW_HOME_URL ""
17 #define ELINKS_WEBSITE_URL "http://elinks.cz/"
18 #define ELINKS_AUTHORS_URL "http://elinks.cz/authors.html"
19 #define ELINKS_DOC_URL "http://elinks.cz/documentation/"
20 #define ELINKS_BUGS_URL "http://bugzilla.elinks.cz/"
21 #define ELINKS_GITWEB_URL "http://repo.or.cz/w/elinks.git"
23 #define ELINKS_SOCK_NAME "socket"
24 #define ELINKS_PORT 23456
25 #define ELINKS_TEMPNAME_PREFIX "elinks"
27 #define DNS_CACHE_TIMEOUT 3600 /* in seconds */
29 #define HTTP_KEEPALIVE_TIMEOUT 60000
30 #define FTP_KEEPALIVE_TIMEOUT 600000
31 #define NNTP_KEEPALIVE_TIMEOUT 600000
32 #define MAX_KEEPALIVE_CONNECTIONS 30
33 #define KEEPALIVE_CHECK_TIME ((milliseconds_T) 20000)
35 #define MAX_REDIRECTS 10
37 #define MEMORY_CACHE_GC_PERCENT 90
38 #define MAX_CACHED_OBJECT_PERCENT 25
40 #define MAX_INPUT_HISTORY_ENTRIES 256
42 #define SCROLL_ITEMS 2
44 #define DIALOG_LEFT_BORDER 3
45 #define DIALOG_TOP_BORDER 1
46 #define DIALOG_LEFT_INNER_BORDER 2
47 #define DIALOG_TOP_INNER_BORDER 0
48 #define DIALOG_FRAME 2
49 #define DIALOG_MIN_WIDTH 42
51 #define DIALOG_LB (DIALOG_LEFT_BORDER + DIALOG_LEFT_INNER_BORDER + 1)
52 #define DIALOG_TB (DIALOG_TOP_BORDER + DIALOG_TOP_INNER_BORDER + 1)
54 #define ESC_TIMEOUT ((milliseconds_T) 200)
56 #define DISPLAY_TIME_MIN ((milliseconds_T) 200)
57 #define DISPLAY_TIME 20
59 #define HTML_LEFT_MARGIN 3
60 #define HTML_MAX_TABLE_LEVEL 10
61 #define HTML_MAX_FRAME_DEPTH 5
62 #define HTML_CHAR_WIDTH 7
63 #define HTML_CHAR_HEIGHT 12
64 #define HTML_FRAME_CHAR_WIDTH 10
65 #define HTML_FRAME_CHAR_HEIGHT 16
66 #define HTML_TABLE_2ND_PASS
67 #define HTML_DEFAULT_INPUT_SIZE 20
68 #define HTML_MAX_COLSPAN 32768
69 #define HTML_MAX_ROWSPAN 32768
70 #define HTML_MAX_CELLS_MEMORY 32*1024*1024
72 #define MAX_STR_LEN 1024
74 #define RESOURCE_INFO_REFRESH ((milliseconds_T) 100)
76 #define DOWN_DLG_MIN 20
78 #define AUTH_USER_MAXLEN 40 /* enough? */
79 #define AUTH_PASSWORD_MAXLEN 40
81 /* Maximum delay for a refresh in seconds. */
82 #define HTTP_REFRESH_MAX_DELAY 2*24*60*60 /* 2 days */
84 /* Default mime settings */
85 #define DEFAULT_MIME_TYPE "application/octet-stream"
86 #define DEFAULT_PAGER_PATH "/usr/bin/pager"
87 #define DEFAULT_LESS_PATH "/usr/bin/less"
88 #define DEFAULT_MORE_PATH "/usr/bin/more"
89 #define DEFAULT_MAILCAP_PATH "~/.mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap:/usr/share/mailcap:/usr/share/misc/mailcap"
90 #define DEFAULT_MIMETYPES_PATH "~/.mime.types:/etc/mime.types:/usr/etc/mime.types:/usr/local/etc/mime.types:/usr/share/mime.types:/usr/share/misc/mime.types"
92 /* Default external commands (see osdep/newwin.c and/or system-specific osdep/
94 #define DEFAULT_TWTERM_CMD "twterm -e"
95 #define DEFAULT_XTERM_CMD "xterm -e"
96 #define DEFAULT_SCREEN_CMD "screen"
97 #define DEFAULT_OS2_WINDOW_CMD "cmd /c start /c /f /win"
98 #define DEFAULT_OS2_FULLSCREEN_CMD "cmd /c start /c /f /fs"
99 #define DEFAULT_BEOS_TERM_CMD "Terminal"
101 /* Default external programs for protocol.user.* autocreated options */
102 #define DEFAULT_AC_OPT_MAILTO "mutt %h -s \"%s\" -i \"%f\""
103 #define DEFAULT_AC_OPT_TELNET "telnet %h %p"
104 #define DEFAULT_AC_OPT_TN3270 "tn3270 %h %p"
105 #define DEFAULT_AC_OPT_GOPHER "lynx %u"
106 #define DEFAULT_AC_OPT_NEWS "lynx %u"
107 #define DEFAULT_AC_OPT_IRC "irc %u"
109 /* Default terminal size. Used for -dump and for normal runs if detection
110 * through ioctl() and environment variables fails. */
111 #define DEFAULT_TERMINAL_WIDTH 80
112 #define DEFAULT_TERMINAL_HEIGHT 25
114 /* If this is non-negative, lines in extra-wide table cells will be wrapped
115 * to fit in the screen, with this much extra space. Try 4. */
116 #define TABLE_LINE_PADDING -1