LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-11-2008, 03:09 AM   #1
john.daker
Member
 
Registered: Jul 2008
Posts: 33

Rep: Reputation: 15
[NCURSES] How to show windows cyclically?


Something like
Code:
        int x,y;
        getmaxyx(stdscr,y,x);
        WINDOW *win1=newwin(y-2,x,2,0);
        WINDOW *win2=newwin(y-2,x,2,0);
        WINDOW *win3=newwin(y-2,x,2,0);
        wprintw(win1,"win1\n");
        wprintw(win2,"win2\n");
        wprintw(win3,"win3\n");
        wrefresh(win1);
        getch();
        wrefresh(win2);
        getch();
        wrefresh(win3);
        getch();
        wrefresh(win1);//here still "win3" in screen
        getch();
        wrefresh(win2);//also here
        getch();
        wrefresh(win3);
        getch();
How to show windows cyclically?
Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to print text in color by ncurses without opening a ncurses window Greatrebel Programming 0 12-20-2006 09:15 AM
Ncurses and full windows Ephracis Programming 4 11-08-2004 05:50 AM
ncurses windows leaving trails kamel Programming 0 06-03-2004 09:28 PM
Ncurses and a few windows krajzega Programming 1 05-13-2004 09:51 PM
WINDOWS in ncurses, newwin limbo Nevion Programming 6 12-10-2003 12:20 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration