foreseen

A text-based gemini browser with prefetching
git clone git://git.laack.co/foreseen.git
Log | Files | Refs | README | LICENSE

shared.hpp (1177B)


      1 #pragma once
      2 
      3 #include <cstdint>
      4 #include <string>
      5 
      6 extern std::string
      7     DEFAULT_SEARCH_ENGINE;    // default search option when search is inferred
      8 extern int SITE_CACHE_LIMIT;  // number of links to prefetch per page
      9 extern int THREAD_NUM;        // thread count in thread pool for pre-fetching
     10 extern int MAX_WIDTH;         // max text width
     11 extern int
     12     CACHE_SIZE;  // max elements in history cache and max in prefetch cache
     13 extern uint8_t COLOR_LINK;          // color used for links
     14 extern uint8_t COLOR_PREFORMATTED;  // color used for preformatted text regions
     15 extern uint8_t COLOR_QUOTE;         // color used for quote lines
     16 
     17 extern uint8_t COLOR_H3;  // color used for H3 lines
     18 extern uint8_t COLOR_H2;  // color used for H2 lines
     19 extern uint8_t COLOR_H1;  // color used for H1 lines
     20 
     21 extern uint8_t COLOR_LIST_ITEM;      // color used for list items
     22 extern uint8_t COLOR_FORMAT_SWITCH;  // color used for format switch lines
     23 extern uint8_t COLOR_PLAINTEXT;      // color used for plaintext lines
     24 
     25 // We guarantee responses can be at least the size limit, and at most 4096
     26 // additional bytes
     27 extern int RESPONSE_SIZE_LIMIT_MB;
     28 
     29 extern char openUnknownScheme[];