From 8cb27584a5a3f57101d6fdecf9e92d007c05cede Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Wed, 16 Jul 2014 22:37:14 -0400 Subject: [PATCH] Two windows of half screen width --- source/main.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source/main.c b/source/main.c index 094a679..9d7eeae 100644 --- a/source/main.c +++ b/source/main.c @@ -2,6 +2,8 @@ #include static bool Running = true; +//static int Term_X = 0; +//static int Term_Y = 0; static WINDOW* WindowLeft; static WINDOW* WindowRight; @@ -33,11 +35,12 @@ int main(int argc, char** argv) { noecho(); refresh(); /* Create the left and right windows */ - WindowLeft = create_window(0,0,20,20); - WindowRight = create_window(20,0,20,20); + WindowLeft = create_window(0,0,LINES,COLS/2); + WindowRight = create_window(COLS/2,0,LINES,COLS/2); while(Running) { - wprintw(WindowLeft, "Left"); - wprintw(WindowRight, "Right"); + //getmaxyx(stdscr, Term_Y, Term_X); + wprintw(WindowLeft, "\rLeft"); + wprintw(WindowRight, "\rRight"); wrefresh(WindowLeft); wrefresh(WindowRight); handle_input(getch()); -- 2.49.0