Source Code File 06-02_text2
06-02_text2.c
#include <ncurses.h>
   
int main()
{
    char text1[] = "This is the first line\n";
    char text2[] = "Line two here\n";
    char text3[] = "The third line\n";
    char text4[] = "Fourth line here\n";
    char text5[] = "And the fifth line\n";
    
    initscr();
    
    addstr(text1);
    addstr(text3);
    addstr(text5);
    refresh();
    getch();
    
    move(1,0);      /* Second line/row */
    insertln();     /* add a blank line */
    refresh();
    getch();
    
    endwin();
    return 0;
}
	Output Screenshot

  (Click image to update.)
Notes
* This code compiles with warnings regarding unused variables.
Copyright © 1997-2025 by QPBC.
All rights reserved
