Hello,

An example of the ncurses library (listed before on this list) is:

>Here is a small example, using curses/ncurses.
>
>gcc cursor.c -lncurses
>
>man ncurses for some documentation, a "top-level" manpage describing the
>idea behind curses and how you use it.
>#include <curses.h>
>
>int main(int argc, char **argv)
>{
>  int i;
>  initscr(); cbreak(); noecho();
>
>  clear();
>
>  box(stdscr,0,0);
>  for(i=1;i<=5;i++)
>    mvprintw(10+i,10+i,"Hello world %d",i);
>  mvprintw(20,30,"Press any key");
>
>  getch();
>
>  endwin();
>}

Best regards,

        -ibrahim

Reply via email to