+/**
+ * FILES
+ * -----
+ * '~/.tig'::
+ * User configuration file. See "<<config-options, Configuration options>>"
+ * section for examples.
+ *
+ * '.git/config'::
+ * Repository config file. Read on startup with the help of
+ * git-repo-config(1).
+ **/
+/**
+ * [[config-options]]
+ * User Configuration file
+ * -----------------------
+ * You can permanently set an option by putting it in the `~/.tig` file.
+ * The file consists of a series of 'commands'. Each
+ * line of the file may contain only one command.
+ *
+ * The hash mark ('#'), or semi-colon (';') is used as a 'comment' character.
+ * All text after the comment character to the end of the line is ignored.
+ * You can use comments to annotate your initialization file.
+ *
+ * Configuration Commands
+ * ~~~~~~~~~~~~~~~~~~~~~~
+ *
+ * --
+ *
+ * *color* object fgcolor bgcolor [attributes]::
+ *
+ * If your terminal supports color, these commands can be used to assign
+ * foreground/backgound combinations to certain objects. Optionally, an
+ * attribute can be given as the last parameter.
+ *
+ * Valid objects are described in the "<<color-objs, Color objects>>" section
+ * below. Note, object names are case-insensitive, and you may use '-', '_',
+ * and '.' interchangeably. So "Diff-Header", "DIFF_HEADER", and "diff.header"
+ * are the same.
+ *
+ * Valid colors include: 'white', 'black', 'green', 'magenta', 'blue', 'cyan',
+ * 'yellow', 'red', 'default'. Use 'default' to refer to the default terminal
+ * colors.
+ **/
+
+static struct int_map color_map[] = {
+#define COLOR_MAP(name) { #name, STRING_SIZE(#name), COLOR_##name }
+ COLOR_MAP(DEFAULT),
+ COLOR_MAP(BLACK),
+ COLOR_MAP(BLUE),
+ COLOR_MAP(CYAN),
+ COLOR_MAP(GREEN),
+ COLOR_MAP(MAGENTA),
+ COLOR_MAP(RED),
+ COLOR_MAP(WHITE),
+ COLOR_MAP(YELLOW),
+};
+
+/**
+ * Valid attributes include: 'normal', 'blink', 'bold', 'dim', 'reverse', 'standout',
+ * and 'underline'. Note, not all attributes may be supported by the terminal.
+ **/
+
+static struct int_map attr_map[] = {
+#define ATTR_MAP(name) { #name, STRING_SIZE(#name), A_##name }
+ ATTR_MAP(NORMAL),
+ ATTR_MAP(BLINK),
+ ATTR_MAP(BOLD),
+ ATTR_MAP(DIM),
+ ATTR_MAP(REVERSE),
+ ATTR_MAP(STANDOUT),
+ ATTR_MAP(UNDERLINE),
+};
+
+/**
+ * Some example color options:
+ *
+ * --------------------------------------------------------------------------
+ * # Diff colors
+ * color diff-header yellow default
+ * color diff-index blue default
+ * color diff-chunk magenta default
+ * # UI colors
+ * color title-blur white blue
+ * color title-focus white blue bold
+ * --------------------------------------------------------------------------
+ *
+ * --
+ **/
+
+/**
+ * [[color-objs]]
+ * Color objects
+ * ~~~~~~~~~~~~~
+ *
+ * --
+ **/