This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This makes it easier to patch directly into st. Based on the new defaults.
- Loading branch information
1 parent
4997a49
commit 93d1cdf
Showing
1 changed file
with
34 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,38 @@ | ||
const char *colorname[] = {{ | ||
static const char *colorname[] = { | ||
/* 8 normal colors */ | ||
"{color0}", | ||
"{color1}", | ||
"{color2}", | ||
"{color3}", | ||
"{color4}", | ||
"{color5}", | ||
"{color6}", | ||
"{color7}", | ||
|
||
/* 8 normal colors */ | ||
[0] = "{color0}", /* black */ | ||
[1] = "{color1}", /* red */ | ||
[2] = "{color2}", /* green */ | ||
[3] = "{color3}", /* yellow */ | ||
[4] = "{color4}", /* blue */ | ||
[5] = "{color5}", /* magenta */ | ||
[6] = "{color6}", /* cyan */ | ||
[7] = "{color7}", /* white */ | ||
/* 8 bright colors */ | ||
"{color8}", | ||
"{color9}", | ||
"{color10}", | ||
"{color11}", | ||
"{color12}", | ||
"{color13}", | ||
"{color14}", | ||
"{color15}", | ||
|
||
/* 8 bright colors */ | ||
[8] = "{color8}", /* black */ | ||
[9] = "{color9}", /* red */ | ||
[10] = "{color10}", /* green */ | ||
[11] = "{color11}", /* yellow */ | ||
[12] = "{color12}", /* blue */ | ||
[13] = "{color13}", /* magenta */ | ||
[14] = "{color14}", /* cyan */ | ||
[15] = "{color15}", /* white */ | ||
[255] = 0, | ||
|
||
/* special colors */ | ||
[256] = "{background}", /* background */ | ||
[257] = "{foreground}", /* foreground */ | ||
[258] = "{cursor}", /* cursor */ | ||
}}; | ||
/* more colors can be added after 255 to use with DefaultXX */ | ||
"{background}", | ||
"{foreground}", | ||
"{cursor}", | ||
}; | ||
|
||
/* Default colors (colorname index) | ||
* foreground, background, cursor */ | ||
unsigned int defaultbg = 0; | ||
unsigned int defaultfg = 257; | ||
unsigned int defaultcs = 258; | ||
unsigned int defaultrcs= 258; | ||
|
||
/* | ||
* Default colors (colorname index) | ||
* foreground, background, cursor, reverse cursor | ||
*/ | ||
unsigned int defaultfg = 257; | ||
unsigned int defaultbg = 256; | ||
static unsigned int defaultcs = 258; | ||
static unsigned int defaultrcs = 258; |