summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouie <lshprung@yahoo.com>2020-06-17 09:59:09 -0700
committerlouie <lshprung@yahoo.com>2020-06-17 09:59:09 -0700
commiteae69abe461d79a2641df9cdb0a8c09849670a6e (patch)
tree494aa19ba65fa37fa9e4556419ebffbc4f95d2b1
parent96d5b7878f70b93651106b19768edfba7ba3dafd (diff)
Printing group column
-rw-r--r--draw.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/draw.c b/draw.c
index afd64bb..feafd91 100644
--- a/draw.c
+++ b/draw.c
@@ -12,6 +12,9 @@ void draw_win(char *title, int x, int y, int width, int height);
void fill_groups(GROUP **group_arr, int count, int startx, int starty, int maxx, int maxy);
char *trim_group_name(GROUP *g, int max_len);
+int g_hover = 0;
+int e_hover = 0;
+
int main(){
static int width;
static int height;
@@ -21,9 +24,14 @@ int main(){
int g_count;
initscr();
+ cbreak();
+ start_color();
width = getmaxx(stdscr);
height = getmaxy(stdscr);
+ init_pair(0, COLOR_WHITE, COLOR_BLACK);
+ init_pair(1, COLOR_BLACK, COLOR_WHITE);
+ attron(COLOR_PAIR(1));
//title at the top (Terminal Media Launcher) (23 chars)
draw_title(width);
@@ -47,6 +55,9 @@ int main(){
g_count = get_gcount(g); //retrieve number of groups in g
fill_groups(g, g_count, 1, 5, ((width/3)-1), height);
+ //start with hover on the default group
+
+
/*
//DEBUG
move(5, 1);