From: Michael D. Lowis Date: Thu, 17 Jul 2014 02:37:14 +0000 (-0400) Subject: Two windows of half screen width X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=8cb27584a5a3f57101d6fdecf9e92d007c05cede;p=archive%2Fafm.git Two windows of half screen width --- 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());