Source Code File 09-09_aborder

09-09_aborder.c

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

    border('|', '|', '-', '-', '+', '+', '+', '+');
    move(1,1);
    addstr("Now that's a swell border!");
    refresh();
    getch();

    endwin();
    return(0);
}

Output Screenshot

Notes

* These are the same characters (Line 7) that are used when the ACS characters are unavailable to draw a clean line.