cocomobile-tui/src/main.c
2025-12-16 09:25:09 +01:00

34 lines
552 B
C

#include <ncurses.h>
int main()
{
initscr();
noecho();
cbreak();
curs_set(0);
int y,x;
getmaxyx(stdscr, y, x);
WINDOW *top_win;
WINDOW *bottom_win;
top_win = newwin(y/2, x, 0, 0);
bottom_win = newwin(y-y/2, x, y/2, 0);
box(top_win, 0, 0);
box(bottom_win, 0, 0);
refresh();
wrefresh(top_win);
wrefresh(bottom_win);
getch();
delwin(top_win);
delwin(bottom_win);
endwin();
return 0;
}