Python: Give goto_url_hook only one argument, like follow_url_hook.
[elinks.git] / src / setup.h
blob8b6e0c03a54fae2601c4caa0f03209f7115affd9
2 #ifndef EL__SETUP_H
3 #define EL__SETUP_H
5 #define VERSION_STRING VERSION
7 /* This option will take effect when WWW_HOME environment variable is NOT
8 * set - you'll go automatically to this URL. If the value is just "",
9 * you'll get either goto dialog or empty page, depending on the value of
10 * startup_goto_dialog. */
11 #define WWW_HOME_URL ""
13 #define ELINKS_HOMEPAGE "http://elinks.cz/"
14 #define ELINKS_DOC_URL "http://elinks.cz/documentation/"
15 #define ELINKS_BUGS_URL "http://bugzilla.elinks.cz/"
16 #define ELINKS_GITWEB_URL "http://pasky.or.cz/gitweb.cgi"
18 #define ELINKS_SOCK_NAME "socket"
19 #define ELINKS_PORT 23456
20 #define ELINKS_TEMPNAME_PREFIX "elinks"
22 #define DNS_CACHE_TIMEOUT 3600 /* in seconds */
24 #define HTTP_KEEPALIVE_TIMEOUT 60000
25 #define FTP_KEEPALIVE_TIMEOUT 600000
26 #define NNTP_KEEPALIVE_TIMEOUT 600000
27 #define MAX_KEEPALIVE_CONNECTIONS 30
28 #define KEEPALIVE_CHECK_TIME ((milliseconds_T) 20000)
30 #define MAX_REDIRECTS 10
32 #define MEMORY_CACHE_GC_PERCENT 90
33 #define MAX_CACHED_OBJECT_PERCENT 25
35 #define MAX_INPUT_HISTORY_ENTRIES 256
37 #define SCROLL_ITEMS 2
39 #define DIALOG_LEFT_BORDER 3
40 #define DIALOG_TOP_BORDER 1
41 #define DIALOG_LEFT_INNER_BORDER 2
42 #define DIALOG_TOP_INNER_BORDER 0
43 #define DIALOG_FRAME 2
44 #define DIALOG_MIN_WIDTH 42
46 #define DIALOG_LB (DIALOG_LEFT_BORDER + DIALOG_LEFT_INNER_BORDER + 1)
47 #define DIALOG_TB (DIALOG_TOP_BORDER + DIALOG_TOP_INNER_BORDER + 1)
49 #define ESC_TIMEOUT ((milliseconds_T) 200)
51 #define DISPLAY_TIME_MIN ((milliseconds_T) 200)
52 #define DISPLAY_TIME 20
54 #define HTML_LEFT_MARGIN 3
55 #define HTML_MAX_TABLE_LEVEL 10
56 #define HTML_MAX_FRAME_DEPTH 5
57 #define HTML_CHAR_WIDTH 7
58 #define HTML_CHAR_HEIGHT 12
59 #define HTML_FRAME_CHAR_WIDTH 10
60 #define HTML_FRAME_CHAR_HEIGHT 16
61 #define HTML_TABLE_2ND_PASS
62 #define HTML_DEFAULT_INPUT_SIZE 20
63 #define HTML_MAX_COLSPAN 32768
64 #define HTML_MAX_ROWSPAN 32768
65 #define HTML_MAX_CELLS_MEMORY 32*1024*1024
67 #define MAX_STR_LEN 1024
69 #define RESOURCE_INFO_REFRESH ((milliseconds_T) 100)
71 #define DOWN_DLG_MIN 20
73 #define AUTH_USER_MAXLEN 40 /* enough? */
74 #define AUTH_PASSWORD_MAXLEN 40
76 /* Maximum delay for a refresh in seconds. */
77 #define HTTP_REFRESH_MAX_DELAY 2*24*60*60 /* 2 days */
79 /* Default mime settings */
80 #define DEFAULT_MIME_TYPE "application/octet-stream"
81 #define DEFAULT_PAGER_PATH "/usr/bin/pager"
82 #define DEFAULT_LESS_PATH "/usr/bin/less"
83 #define DEFAULT_MORE_PATH "/usr/bin/more"
84 #define DEFAULT_MAILCAP_PATH "~/.mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap:/usr/share/mailcap:/usr/share/misc/mailcap"
85 #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"
87 /* Default external commands (see osdep/newwin.c and/or system-specific osdep/
88 * files) */
89 #define DEFAULT_TWTERM_CMD "twterm -e"
90 #define DEFAULT_XTERM_CMD "xterm -e"
91 #define DEFAULT_SCREEN_CMD "screen"
92 #define DEFAULT_OS2_WINDOW_CMD "cmd /c start /c /f /win"
93 #define DEFAULT_OS2_FULLSCREEN_CMD "cmd /c start /c /f /fs"
94 #define DEFAULT_BEOS_TERM_CMD "Terminal"
96 /* Default external programs for protocol.user.* autocreated options */
97 #define DEFAULT_AC_OPT_MAILTO "mutt %h -s \"%s\" -i \"%f\""
98 #define DEFAULT_AC_OPT_TELNET "telnet %h %p"
99 #define DEFAULT_AC_OPT_TN3270 "tn3270 %h %p"
100 #define DEFAULT_AC_OPT_GOPHER "lynx %u"
101 #define DEFAULT_AC_OPT_NEWS "lynx %u"
102 #define DEFAULT_AC_OPT_IRC "irc %u"
104 /* Default terminal size. Used for -dump and for normal runs if detection
105 * through ioctl() and environment variables fails. */
106 #define DEFAULT_TERMINAL_WIDTH 80
107 #define DEFAULT_TERMINAL_HEIGHT 25
109 /* If this is non-negative, lines in extra-wide table cells will be wrapped
110 * to fit in the screen, with this much extra space. Try 4. */
111 #define TABLE_LINE_PADDING -1
113 #endif