Backspace sends DEL instead of ^H.
[spft.git] / Settings.h
blobdc3e63f567caa4995a57328ec430c381bf72e9e2
1 #ifndef Settings_h
2 #define Settings_h
4 #include <string>
7 struct Settings {
8 std::string font_spec;
9 std::string line_drawing_font_spec;
10 std::string monospace_font_spec;
11 std::string term_name;
12 uint32_t default_foreground_color;
13 uint32_t default_background_color;
14 float average_character_width;
15 // A guess at the average character width, as a fraction of the width of
16 // a capital "M".
17 uint32_t double_click_ms;
18 std::string word_separator_characters;
19 std::string additional_word_separator_characters;
20 std::string window_title;
21 std::string working_directory;
22 uint32_t tab_width, column_separation;
23 uint32_t synthetic_tab_spaces;
24 std::string geometry;
25 uint32_t border;
26 bool default_auto_wrap;
27 float font_size_increment;
29 void read_settings_files();
30 void read_settings_file(std::string path);
31 std::string home_path();
33 extern Settings settings;
36 #endif // !Settings_h