Source Code File 09-08_border
09-08_border.c
#include <ncurses.h> int main() { initscr(); border(0,0,0,0, 0,0,0,0); move(1,1); addstr("Now that's a swell border!\n"); refresh(); getch(); endwin(); return(0); }
Output Screenshot
Notes
* See the gap in the border in the window's upper right corner? To prevent it, don't include a newline ('\n') in the string output.
* I recommend using subwindows to avoid erasing window borders.
Copyright © 1997-2024 by QPBC.
All rights reserved