AUTO RESIZING NOW WORKS WELL
This commit is contained in:
parent
6cc80f32a3
commit
2ad6e4e104
3 changed files with 29 additions and 54 deletions
32
cli/curse.c
32
cli/curse.c
|
|
@ -43,6 +43,7 @@ void init_ncurses(void) {
|
|||
|
||||
/* NCurses Init */
|
||||
initscr();
|
||||
/* WARNING: no you shouldn't delwin(stdscr) it breaks everything... */
|
||||
__conf_window(stdscr);
|
||||
start_color();
|
||||
|
||||
|
|
@ -81,34 +82,3 @@ int resizemv_window(const int x, const int y, const int width, const int height,
|
|||
WINDOW *const win) {
|
||||
return wresize(win, height, width) || mvwin(win, y, x);
|
||||
}
|
||||
|
||||
/*
|
||||
int main(const int argc, const char *const argv[]) {
|
||||
init_ncurses();
|
||||
WINDOW *stdscr = new_window(0, 0, 0, 0);
|
||||
|
||||
// Set background
|
||||
wbkgd(stdscr, COLOR_PAIR(1));
|
||||
|
||||
attron(COLOR_PAIR(1));
|
||||
attron(A_BOLD);
|
||||
int counter = 0;
|
||||
while (1) {
|
||||
mvprintw(0, 0, "COUNTER %d", counter++);
|
||||
refresh();
|
||||
|
||||
switch (getch()) {
|
||||
case 'q':
|
||||
goto end;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
usleep(BASE_DELAY);
|
||||
}
|
||||
|
||||
end:
|
||||
endwin();
|
||||
return 0;
|
||||
}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue