Allow 2 (=TERMINAL_BACKGROUND_UNKNOWN) for m in -@n,m,b

This commit is contained in:
Dianne Skoll
2022-09-16 15:58:51 -04:00
parent 8eb6b250fb
commit 44bdae302b
2 changed files with 10 additions and 7 deletions
+3 -1
View File
@@ -246,8 +246,10 @@ void InitRemind(int argc, char const *argv[])
TerminalBackground = TERMINAL_BACKGROUND_DARK;
} else if (x == 1) {
TerminalBackground = TERMINAL_BACKGROUND_LIGHT;
} else if (x == 2) {
TerminalBackground = TERMINAL_BACKGROUND_UNKNOWN;
} else {
fprintf(ErrFp, "%s: -@n,m,b: m must be 0 or 1\n",
fprintf(ErrFp, "%s: -@n,m,b: m must be 0, 1 or 2 (assuming 2)\n",
argv[0]);
}
}