login

<     >

2014-11-14 12:57:53 (UTC-02:00)

Marcel Rodrigues <marcelgmr@gmail.com>

Make special symbols configurable.

diff --git a/config.h b/config.h
index dbbe39f..f6bc2fd 100644
--- a/config.h
+++ b/config.h
@@ -28,4 +28,7 @@
 #define RVC_PROMPT      DEFAULT
 #define RVC_TABNUM      DEFAULT
 
+/* Special symbols used by the TUI. See <curses.h> for available constants. */
+#define RVS_SCROLLBAR   ACS_CKBOARD
+
 #define RV_JUMP         10

diff --git a/rover.c b/rover.c
index 12ce4d4..bf39d0d 100644
--- a/rover.c
+++ b/rover.c
@@ -162,7 +162,7 @@ update()
         wcolor_set(rover.window, RVC_BORDER, NULL);
         wborder(rover.window, 0, 0, 0, 0, 0, 0, 0, 0);
         wcolor_set(rover.window, RVC_SCROLLBAR, NULL);
-        mvwvline(rover.window, center-(height>>1)+1, COLS-1, ACS_CKBOARD, height);
+        mvwvline(rover.window, center-(height>>1)+1, COLS-1, RVS_SCROLLBAR, height);
         wcolor_set(rover.window, DEFAULT, NULL);
     }
     wrefresh(rover.window);