Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 06-03-2004, 09:28 PM   #1
LQ Newbie
Registered: May 2004
Posts: 13

Rep: Reputation: 0
ncurses windows leaving trails

Im trying to write an ncurses program with windows and am having trouble:

I have two windows:

-my own defined window named StatusPanel

I am resizing the window to create a similar "hiding" effect like nAIM's buddy list. Here is how I am resizing it:

-delete the window
-spawn a new window with the new sizes (smaller than before, there is no problem making the window bigger)
-redraw the status information to it (program makes SURE the drawn data isnt longer than the width of the window with strncpy)
-refresh the windows:
first refresh();
then wrefresh(winStatusBar);

and it leaves trails behind. ~.~
also it erases the text in stdscr that is underneath the StatusPanel. Is there any way to stop that from happening too?

ps: ive tried refreshing this way too but to no avail:

ive also, just for the heck of it, I tried reversing the refresh statements hoping that would work for some strange reason, it didn't :P


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Ncurses and full windows Ephracis Programming 4 11-08-2004 05:50 AM
suse 9.1, wpc11 v.4, & my dreams of leaving windows behind me zhuangshi Linux - Wireless Networking 12 07-22-2004 07:06 PM
How do I properly do overlapping windows in NCURSES kamel Programming 0 06-04-2004 08:52 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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:37 PM.

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