Skip to content

Instantly share code, notes, and snippets.

@AndrewVos

AndrewVos/ec.patch

Last active May 20, 2018
Embed
What would you like to do?
diff --git a/config.def.h b/config.def.h
index 82b1b09..8d46e57 100644
--- a/config.def.h
+++ b/config.def.h
@@ -84,43 +84,49 @@ unsigned int tabspaces = 8;
/* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = {
- /* 8 normal colors */
- "black",
- "red3",
- "green3",
- "yellow3",
- "blue2",
- "magenta3",
- "cyan3",
- "gray90",
- /* 8 bright colors */
- "gray50",
- "red",
- "green",
- "yellow",
- "#5c5cff",
- "magenta",
- "cyan",
- "white",
+ /* 8 normal colors */
+ [0] = "#737a8a", /* black */
+ [1] = "#ef6b7b", /* red */
+ [2] = "#a1d569", /* green */
+ [3] = "#f59335", /* yellow */
+ [4] = "#4ec2e8", /* blue */
+ [5] = "#fec7cd", /* magenta */
+ [6] = "#95c1c0", /* cyan */
+ [7] = "#dde1e8", /* white */
- [255] = 0,
+ /* 8 bright colors */
+ [8] = "#636a7a", /* black */
+ [9] = "#e76373", /* red */
+ [10] = "#99cd61", /* green */
+ [11] = "#ed8b2d", /* yellow */
+ [12] = "#46bae0", /* blue */
+ [13] = "#f6bfc5", /* magenta */
+ [14] = "#8db9b8", /* cyan */
+ [15] = "#d5d9e0", /* white */
- /* more colors can be added after 255 to use with DefaultXX */
- "#cccccc",
- "#555555",
+ /* special colors */
+ [256] = "#ffffff", /* background */
+ [257] = "#474c57", /* foreground */
};
-
/*
* Default colors (colorname index)
- * foreground, background, cursor, reverse cursor
+ * foreground, background, cursor
*/
-unsigned int defaultfg = 7;
-unsigned int defaultbg = 0;
-static unsigned int defaultcs = 256;
+unsigned int defaultfg = 257;
+unsigned int defaultbg = 256;
+static unsigned int defaultcs = 257;
static unsigned int defaultrcs = 257;
+/*
+ * Colors used, when the specific fg == defaultfg. So in reverse mode this
+ * will reverse too. Another logic would only make the simple feature too
+ * complex.
+ */
+static unsigned int defaultitalic = 7;
+static unsigned int defaultunderline = 7;
+
/*
* Default shape of cursor
* 2: Block ("█")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.