C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 06-27-2009, 05:13 AM   #1
Registered User
 
Join Date: Nov 2005
Posts: 20
How customize Windowing in ncurses lib?

Hello,

I tried to use a windows function in ncurses library. Could some one tell me why windows are transparent. Tiling windows does not work. The top windows does not hide texte writen inside the bottom window. I need it to be solid, opaque like any windowing system.

Thank you.
intmail is offline   Reply With Quote
Old 06-29-2009, 09:10 AM   #2
Senior software engineer
 
brewbuck's Avatar
 
Join Date: Mar 2007
Location: Portland, OR
Posts: 5,768
From the ncurses introduction:

Quote:
Historically, curses support for overlapping windows has been weak, fragile, and poorly documented. The ncurses library is not yet an exception to this rule.
If you want to alter curses to support this better, a lot of people would appreciate it.
__________________
"Congratulations on your purchase. To begin using your quantum computer, set the power switch to both off and on simultaneously." -- raftpeople@slashdot
brewbuck is offline   Reply With Quote
Old 06-29-2009, 10:42 AM   #3
critical genius
 
MK27's Avatar
 
Join Date: Jul 2008
Location: SE Queens
Posts: 5,203
Quote:
Originally Posted by intmail View Post
Hello,

I tried to use a windows function in ncurses library. Could some one tell me why windows are transparent. Tiling windows does not work. The top windows does not hide texte writen inside the bottom window. I need it to be solid, opaque like any windowing system.

Thank you.
I've never gone that far with ncurses, but does that apply to windows where there is a COLOR_PAIR background color in use?

You could always resize the windows. Remember, ncurses is not a GUI "windowing system", and in that sense, the "windows" are not windows at all...
__________________

"A man can't just sit around." -- Larry Walters
MK27 is offline   Reply With Quote
Old 06-29-2009, 11:12 AM   #4
Senior software engineer
 
brewbuck's Avatar
 
Join Date: Mar 2007
Location: Portland, OR
Posts: 5,768
Honestly, I think ncurses is stale both in terms of design and modern functionality. Its function naming doesn't even attempt to play nice in terms of name-stomping, it smears global data all over the place, and it assumes too much about the structure of the code around it.

The biggest thing ncurses brings to the table is spectacularly consistent support of an awful lot of terminal emulations. And that's becoming less and less important (depending how you look at it).

I think the world is due for a new terminal graphics library.
__________________
"Congratulations on your purchase. To begin using your quantum computer, set the power switch to both off and on simultaneously." -- raftpeople@slashdot
brewbuck is offline   Reply With Quote
Old 06-29-2009, 05:11 PM   #5
Registered User
 
Join Date: Jun 2009
Posts: 1
re: How customize Windowing in ncurses lib?

The windows aren't really transparent: refreshing a
window causes the changes to be shown on the
standard screen. As noted, the panel library is used
to handle stacked windows. However, it's possible
with some care to use touchwin and refresh to do the
simpler cases of stacked windows.
dickey is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ncurses Lib lautarox C Programming 6 09-24-2008 06:12 PM
using VC6 link VC7 static lib error George2 C++ Programming 5 06-29-2006 10:58 PM
Including lib in a lib bibiteinfo C++ Programming 0 02-07-2006 02:28 PM
Convert Microsoft LIB to MingW compatible lib tigs Windows Programming 0 07-20-2004 06:53 PM
Making a LIB file from a DEF file for a DLL JMPACS C++ Programming 0 08-02-2003 08:19 PM


All times are GMT -6. The time now is 05:46 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22