aboutsummaryrefslogtreecommitdiffstats
path: root/src/vars.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-07-19 15:19:13 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-07-21 17:56:39 +0200
commit1355bad2644230b9760e62333dc4a7b72c5fb1a9 (patch)
treeb60aa2d7bada81b42977e38d5415cf081b0f1ad0 /src/vars.c
parente5dee68dcf318b58a3339250ae63fa5f26cdf790 (diff)
downloadcalcurse-1355bad2644230b9760e62333dc4a7b72c5fb1a9.tar.gz
calcurse-1355bad2644230b9760e62333dc4a7b72c5fb1a9.zip
Declare foreground and background variables global
Removes the need to pass the terminal's default background color round. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/vars.c')
-rw-r--r--src/vars.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vars.c b/src/vars.c
index 4b1d7cd..ef2cd73 100644
--- a/src/vars.c
+++ b/src/vars.c
@@ -48,6 +48,9 @@ int resize = 0;
/* variable to tell if the terminal supports color */
unsigned colorize = 0;
+/* Default background and foreground colors. */
+int foreground, background;
+
/*
* To tell if curses interface was launched already or not (in that case
* calcurse is running in command-line mode).