links

lynx-like text mode web browser
git clone anongit@rnpnr.xyz:links.git
Log | Files | Refs | Feed | README | LICENSE

setup.h (3348B)


      1 /* setup.h
      2  * (c) 2002 Mikulas Patocka
      3  * This file is a part of the Links program, released under GPL.
      4  */
      5 
      6 #define FG_POLL_TIME 500
      7 
      8 #define DNS_TIMEOUT     3600000UL
      9 #define SESSION_TIMEOUT 14400000UL
     10 
     11 #define HTTP_KEEPALIVE_TIMEOUT    300000
     12 #define MAX_KEEPALIVE_CONNECTIONS 30
     13 #define KEEPALIVE_CHECK_TIME      20000
     14 
     15 #define MAX_REDIRECTS        15
     16 #define MAX_CACHED_REDIRECTS 10
     17 
     18 #define DOWNLOAD_NAME_TRIES 10000
     19 
     20 #define MEMORY_CACHE_GC_PERCENT 9 / 10
     21 #define MAX_CACHED_OBJECT       1 / 4
     22 
     23 #define MAX_HISTORY_ITEMS 4096
     24 #define MENU_HOTKEY_SPACE 2
     25 
     26 #define COL(x) (x)
     27 
     28 #define COLOR_MENU_TEXT     (term ? COL(070) : COL(007))
     29 #define COLOR_MENU_FRAME    (term ? COL(070) : COL(007))
     30 #define COLOR_MENU_SELECTED COL(007)
     31 #define COLOR_MENU_HOTKEY   (term ? COL(007) : COL(0107))
     32 
     33 #define COLOR_MAINMENU          (term ? COL(070) : COL(007))
     34 #define COLOR_MAINMENU_SELECTED COL(007)
     35 #define COLOR_MAINMENU_HOTKEY   (term ? COL(070) : COL(0107))
     36 
     37 #define COLOR_DIALOG                 (term ? COL(070) : COL(007))
     38 #define COLOR_DIALOG_FRAME           (term ? COL(070) : COL(007))
     39 #define COLOR_DIALOG_TITLE           (term ? COL(007) : COL(007))
     40 #define COLOR_DIALOG_TEXT            (term ? COL(070) : COL(007))
     41 #define COLOR_DIALOG_CHECKBOX        (term ? COL(070) : COL(0107))
     42 #define COLOR_DIALOG_CHECKBOX_TEXT   (term ? COL(070) : COL(007))
     43 #define COLOR_DIALOG_BUTTON          (term ? COL(070) : COL(0107))
     44 #define COLOR_DIALOG_BUTTON_SELECTED COL(0107)
     45 #define COLOR_DIALOG_FIELD           (term ? COL(007) : COL(0107))
     46 #define COLOR_DIALOG_FIELD_TEXT      (term ? COL(007) : COL(0107))
     47 #define COLOR_DIALOG_METER           (term ? COL(007) : COL(0177))
     48 #define CHAR_DIALOG_METER            (term ? 0 : '*')
     49 
     50 #define SCROLL_ITEMS 2
     51 
     52 #define DIALOG_LEFT_BORDER       3
     53 #define DIALOG_TOP_BORDER        1
     54 #define DIALOG_LEFT_INNER_BORDER 2
     55 #define DIALOG_TOP_INNER_BORDER  0
     56 #define DIALOG_FRAME             2
     57 
     58 #define COLOR_TITLE  COL(007)
     59 #define COLOR_STATUS COL(070)
     60 
     61 #define MENU_SUBMENU     (cast_uchar ">")
     62 #define CERT_RIGHT_ARROW (cast_uchar " -> ")
     63 
     64 #define G_SCROLL_BAR_WIDTH    12
     65 #define G_SCROLL_BAR_MIN_SIZE 20
     66 
     67 #define G_HTML_MARGIN 8
     68 
     69 #define MAX_FONT_SIZE 500
     70 
     71 #define ESC_TIMEOUT 200
     72 
     73 #define DISPLAY_TIME_MIN          200
     74 #define DISPLAY_TIME_MAX_FIRST    1000
     75 #define DISPLAY_TIME              15
     76 #define IMG_DISPLAY_TIME          7
     77 #define DISPLAY_FORMATTING_STATUS 500
     78 
     79 #define STAT_UPDATE_MIN 100
     80 #define STAT_UPDATE_MAX 1000
     81 
     82 #define HTML_LEFT_MARGIN       3
     83 #define HTML_MAX_TABLE_LEVEL   10
     84 #define HTML_MAX_FRAME_DEPTH   7
     85 #define HTML_CHAR_WIDTH        7
     86 #define HTML_CHAR_HEIGHT       12
     87 #define HTML_FRAME_CHAR_WIDTH  10
     88 #define HTML_FRAME_CHAR_HEIGHT 16
     89 #define HTML_TABLE_2ND_PASS
     90 #define HTML_DEFAULT_INPUT_SIZE      20
     91 #define HTML_MINIMAL_TEXTAREA_WIDTH  6
     92 #define HTML_DEFAULT_TEXTAREA_WIDTH  40
     93 #define HTML_DEFAULT_TEXTAREA_HEIGHT 7
     94 
     95 #define MAX_INPUT_URL_LEN 65536
     96 
     97 #define SPD_DISP_TIME     200
     98 #define CURRENT_SPD_SEC   (10000 / SPD_DISP_TIME)
     99 #define CURRENT_SPD_AFTER (20000 / SPD_DISP_TIME)
    100 
    101 #define RESOURCE_INFO_REFRESH 100
    102 
    103 #define DOWN_DLG_MIN 20
    104 
    105 /* width and height of BFU element in list window in graphical mode
    106  * (draw_bfu_element function in listedit.c)
    107  * BFU_ELEMENT_WIDTH is a size of one bfu element (doesn't depend on
    108  * graphical/text mode)
    109  */
    110 #define BFU_ELEMENT_WIDTH 5