initial commit
This commit is contained in:
commit
8aab6a0cb0
3 changed files with 116 additions and 0 deletions
43
neon2049/simple-terminal
Executable file
43
neon2049/simple-terminal
Executable file
|
|
@ -0,0 +1,43 @@
|
|||
/* Terminal colors (16 first used in escape sequence) */
|
||||
static const char *colorname[] = {
|
||||
|
||||
/* 8 normal colors */
|
||||
[0] = "#15041a", /* black */
|
||||
[1] = "#9c1961", /* red */
|
||||
[2] = "#29944b", /* green */
|
||||
[3] = "#33886a", /* yellow */
|
||||
[4] = "#583db4", /* blue */
|
||||
[5] = "#b01184", /* magenta */
|
||||
[6] = "#3971a8", /* cyan */
|
||||
[7] = "#a4a1ad", /* white */
|
||||
|
||||
/* 8 bright colors */
|
||||
[8] = "#40092b", /* black */
|
||||
[9] = "#e24d85", /* red */
|
||||
[10] = "#3fd76f", /* green */
|
||||
[11] = "#4cc79c", /* yellow */
|
||||
[12] = "#534de2", /* blue */
|
||||
[13] = "#e24db9", /* magenta */
|
||||
[14] = "#489fd7", /* cyan */
|
||||
[15] = "#d3ccea", /* white */
|
||||
|
||||
/* special colors */
|
||||
[256] = "#000000", /* background */
|
||||
[257] = "#797979", /* foreground */
|
||||
};
|
||||
|
||||
/*
|
||||
* Default colors (colorname index)
|
||||
* foreground, background, cursor
|
||||
*/
|
||||
static unsigned int defaultfg = 257;
|
||||
static unsigned int defaultbg = 256;
|
||||
static unsigned int defaultcs = 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue