Source Code File 06-09_text7
06-09_text7.c
#include <ncurses.h> int main() { int x; initscr(); addstr("This is the first line\n"); addstr("Line two here\n"); addstr("The third line\n"); addstr("Fourth line here\n"); addstr("And the fifth line\n"); refresh(); getch(); move(3,7); for(x=0;x<5;x++) { delch(); refresh(); napms(250); } getch(); endwin(); return(0); }
Output Screenshot
Notes
* Now perhaps you can see why Ncurses (or Curses back then) was used to write the vi editor as well as other full-screen Unix programs.
Copyright © 1997-2024 by QPBC.
All rights reserved