Draw simple box using curses Draw simple box using curses unix unix

Draw simple box using curses


Try this.

#include <ncurses.h>int main(int argc, char *argv[]){    initscr();    WINDOW *win = newwin(10,10,1,1);    box(win, '*', '*');    touchwin(win);    wrefresh(win);    getchar();    endwin();    return 0;}