-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
68 additions
and
59 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 +1 @@ | ||
TERM | ||
PINK |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
root |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
bool checkclr(char * color) { | ||
return !memcmp(search("color.conf"),color,strlen(color)); | ||
} | ||
#define check(x) checkclr(x) | ||
int getcolors(bool type) { | ||
static int defcol; | ||
static int deftype; | ||
if (check("TERM")) { | ||
defcol=2; | ||
deftype=10; | ||
} else if (check("PINK")) { | ||
defcol=5; | ||
deftype=13; | ||
} else if (check("BORE")) { | ||
defcol=8; | ||
deftype=7; | ||
} else if (check("ANGER")) { | ||
defcol=4; | ||
deftype=12; | ||
} else if (check("BLUE")) { | ||
defcol=3; | ||
deftype=11; | ||
} else if (check("FIRE")) { | ||
defcol=4; | ||
deftype=14; | ||
} else if (check("RETRO")) { | ||
defcol=2; | ||
deftype=14; | ||
} else if (check("LIGHT")) { | ||
panic("Light mode activated, defensive kernel panic initiated","Wrong mode",1); | ||
} | ||
|
||
if (type) { // default type | ||
return deftype; | ||
} else return defcol; | ||
} | ||
int defcol() { | ||
return getcolors(0); | ||
} | ||
int deftype() { | ||
return getcolors(1); | ||
} |
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
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
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 |
---|---|---|
|
@@ -12,5 +12,5 @@ void srand(unsigned int seed) | |
next = seed; | ||
} | ||
unsigned int rnd= | ||
1686641486 | ||
1686642180 | ||
; |