Problem with NCurses

This is a discussion on Problem with NCurses within the Linux Programming forums, part of the Platform Specific Boards category; Hey, I am having a problem when I resize my console on a ncurses program I created. The ncurses program ...

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    47

    Problem with NCurses

    Hey,

    I am having a problem when I resize my console on a ncurses program I created.
    The ncurses program has 2 WINDOWS and 2 Corresponding PANELS

    It is basically a terminal for another program with an input at the bottom and output window at the top.

    However, when I resize the form, I get garbled text and then it Seg Faults.

    Any help would be awesome...
    thanks

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,687
    Straight from the FAQ

    Using NCURSES under XTERM
    A resize operation in X sends SIGWINCH to the application running under xterm. The ncurses library provides an experimental signal handler, but in general does not catch this signal, because it cannot know how you want the screen re-painted. You will usually have to write the SIGWINCH handler yourself. Ncurses can give you some help.


    http://dickey.his.com/ncurses/ncurses-intro.html
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. ncurses window problem
    By fronty in forum Linux Programming
    Replies: 3
    Last Post: 09-22-2007, 09:33 AM
  2. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  3. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  4. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  5. Laptop Problem
    By Boomba in forum Tech Board
    Replies: 1
    Last Post: 03-07-2006, 05:24 PM

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