projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
/* when running in curses mode, the scroll bar in most
[citadel.git]
/
citadel
/
screen.c
diff --git
a/citadel/screen.c
b/citadel/screen.c
index 5690997417de5ff20fb51031b502a10a1dca2068..c8cb29603d226c3b9f9352fbb6c92bcb952ebce2 100644
(file)
--- a/
citadel/screen.c
+++ b/
citadel/screen.c
@@
-45,6
+45,14
@@
extern void check_screen_dims(void);
void do_keepalive(void);
+int is_curses_enabled(void) {
+#ifdef HAVE_CURSES_H
+ return mainwindow != NULL;
+#else
+ return 0;
+#endif
+}
+
/*
* status_line() is a convenience function for writing a "typical"
* status line to the window.