Re: ncurses pads - basic problem



viza <tom.viza@xxxxxxxxx> wrote:
Hi all,

I can't get pads to work in ncurses at all. Could someone look at the
really basic program and tell me why it displays a blank screen
please? It doesn't give me any errors, compiling or running, which
makes me think I've missed something simple.
....
pad= newpad( 3, 3 );
....
wgetch( stdscr );

man wgetch

If the window is not a pad, and it has been moved or modi-
fied since the last call to wrefresh(), wrefresh() will be
called before another character is read.

Generally the parameter to wgetch() should be the window (or pad) that
you want to be on top.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
.



Relevant Pages

  • The Good Old Days
    ... A window was something you hated to clean ... Memory was something you lost with age ... I guess I'll stick to my pad and paper ...
    (uk.people.silversurfers)
  • Re: Inheritance related problem
    ... confuse the implementation relationship of subclassing/module ... inclusion with the containment relationship of windows/widgets. ... is not contained in a window. ... Where a Window was being used earlier, now a Pad may be used. ...
    (comp.lang.ruby)
  • Re: What are macros in A2003?
    ... Larry Linson wrote: ... Clicking on that there's the menu pad Macros... ... > If I click on that pad, a window pops up with the caption ... in Word and Excel, VBA was intended to replace the product-specific macros; in Access, VBA and macros have more-or-less-happily co-existed side by side all along. ...
    (comp.databases.ms-access)
  • Re: How to use PAD()
    ... It only seems to work when called from the ON SELECTION, ... I would like to get the name of the popup for the a menu pad. ... Here is part of the code that defines the "Window" menu pad. ... "Window" pad on the menu bar. ...
    (microsoft.public.fox.vfp.forms)
  • Re: Problems with getch() and curses
    ... > I don't see any calls to refresh() to actually force the ncurses-library to ... man getch ... If the window is not a pad, and it has been moved or modified since the ... last call to wrefresh, wrefresh will be called before another character ...
    (comp.os.linux.development.apps)