Remove color-setting code
It's never used
This commit is contained in:
parent
e2d0ce2e59
commit
4fc23d0a76
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
// Behavior settings
|
// Behavior settings
|
||||||
int maskBlank = 0; // Mask blank spaces
|
int maskBlank = 0; // Mask blank spaces
|
||||||
static int colorOn = 1; // Terminal color flag
|
const int colorOn = 1; // Terminal color flag - nothing actually sets this to be false ever
|
||||||
|
|
||||||
// Character attribute structure, linked list. Keeps track of every
|
// Character attribute structure, linked list. Keeps track of every
|
||||||
// character's attributes required for rendering and decryption effect.
|
// character's attributes required for rendering and decryption effect.
|
||||||
@ -299,20 +299,6 @@ void nmseffect_set_clearscr(int setting) {
|
|||||||
nmstermio_set_clearscr(setting);
|
nmstermio_set_clearscr(setting);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Set the 'colorOn' flag according to the true/false value of the 'setting'
|
|
||||||
* argument. This flag tells nmseffect_exec() to use colors in it's output.
|
|
||||||
* This is true by default, and meant to be used only for terminals that
|
|
||||||
* do not support color. Though, compiling with ncurses support is perhaps
|
|
||||||
* a better option, as it will detect color capabilities automatically.
|
|
||||||
*/
|
|
||||||
void nmseffect_set_color(int setting) {
|
|
||||||
if (setting)
|
|
||||||
colorOn = 1;
|
|
||||||
else
|
|
||||||
colorOn = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sleep for the number of milliseconds indicated by argument 't'.
|
* Sleep for the number of milliseconds indicated by argument 't'.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user