X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=config.h;h=67c854e36e28ad151eae78a18812a9217f0b64f1;hb=4e6915a16b75c1e79142e15a9b23e761140d4e9b;hp=b66985fca8cf9d4a5efc9771f4885fbc6faac3b4;hpb=4d794b3479cc586de7796d9b060b2eb469a6500d;p=st.git diff --git a/config.h b/config.h index b66985f..67c854e 100644 --- a/config.h +++ b/config.h @@ -6,7 +6,7 @@ #define LINESPACE 1 /* additional pixel between each line */ /* Terminal colors */ -static char* colorname[] = { +static const char *colorname[] = { "black", "red", "green", @@ -25,14 +25,14 @@ static char* colorname[] = { #define BellCol DefaultFG /* special keys */ -static char* key[] = { - [XK_Delete] = "\033[3~", - [XK_Home] = "\033[1~", - [XK_End] = "\033[4~", - [XK_Prior] = "\033[5~", - [XK_Next] = "\033[6~", - [XK_Left] = "\033[D", - [XK_Right] = "\033[C", - [XK_Up] = "\033[A", - [XK_Down] = "\033[B", +static Key key[] = { + { XK_Delete, "\033[3~" }, + { XK_Home, "\033[1~" }, + { XK_End, "\033[4~" }, + { XK_Prior, "\033[5~" }, + { XK_Next, "\033[6~" }, + { XK_Left, "\033[D" }, + { XK_Right, "\033[C" }, + { XK_Up, "\033[A" }, + { XK_Down, "\033[B" }, };