Source Code 00-01_box

00-01_box.c

#include <ncurses.h>
   
int main()
{
    initscr();

    box(stdscr,'*','*');
    refresh();
    getch();

    endwin();
    return(0);
}

Output Screenshot

Notes

* The box() function is officially introduced later in the book. See source code file 09-10_box.c