How customize Windowing in ncurses lib?

This is a discussion on How customize Windowing in ncurses lib? within the Linux Programming forums, part of the Platform Specific Boards category; Hello, I tried to use a windows function in ncurses library. Could some one tell me why windows are transparent. ...

  1. #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.

  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,272
    From the ncurses introduction:

    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.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #3
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    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...
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  4. #4
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,272
    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.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  5. #5
    Registered User
    Join Date
    Jun 2009
    Posts
    4

    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Ncurses Lib
    By lautarox in forum C Programming
    Replies: 6
    Last Post: 09-24-2008, 07:12 PM
  2. using VC6 link VC7 static lib error
    By George2 in forum C++ Programming
    Replies: 5
    Last Post: 06-29-2006, 11:58 PM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  4. Convert Microsoft LIB to MingW compatible lib
    By tigs in forum Windows Programming
    Replies: 0
    Last Post: 07-20-2004, 07:53 PM
  5. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 09:19 PM

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