页次: 1
如题所说....suckless.org网站的软件以轻量化和模块化著称....代码很精简,他的dwm也挺好的
但是嗷,代码注释真的少的可怜啊!
我将想问问,他们家的st终端的config.def.h的源码怎么看啊....国内对这玩意研究的少啊....我就想改个配色罢了..
有谁能告诉哪行代码有关于颜色配置的吗?官网补丁上的配色我都不太喜欢
离线
读不懂 C 源码的话就不要用 suckless 了。注释当然要少,不然代码会太长了呢。
离线
/* 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",
[255] = 0,
/* more colors can be added after 255 to use with DefaultXX */
"#cccccc",
"#555555",
"gray90", /* default foreground colour */
"black", /* default background colour */
};
/*
* Default colors (colorname index)
* foreground, background, cursor, reverse cursor
*/
unsigned int defaultfg = 258;
unsigned int defaultbg = 259;
unsigned int defaultcs = 256;
static unsigned int defaultrcs = 257;
离线
页次: 1