bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: about not using stdscr


From: Mike Aubury
Subject: Re: about not using stdscr
Date: Sun, 22 Oct 2006 09:08:10 +0100
User-agent: KMail/1.9.1

is this because you've not called keypad ? 

From the man page :
   The keypad option enables the keypad of the user's terminal.  If enabled 
(bf is TRUE), the user can press a function key (such as  an  arrow  key)
       and  wgetch  returns a single value representing the function key, as 
in KEY_LEFT.  If disabled (bf is FALSE), curses does not treat function keys
       specially and the program has to interpret the escape sequences itself.  
If the keypad in the terminal can be turned on (made to transmit) and off
       (made  to work locally), turning on this option causes the terminal 
keypad to be turned on when wgetch is called.  The default value for keypad 
is false)


On Sunday 22 October 2006 04:36, chinlu chinawa wrote:
> Hello Thomas and the rest of the list,
>
> I've been doing something today with ncurses and c,
> and I'm finding the problem that wgetch doesn't report
> me KEY_F(n) on a window different than stdscr, it does
> with anyother keys though.
>
> What I'm doing looks much like emacs (or my emacs),
> where you see one or two lines on the bottom (one
> window), and then rest of the screen (the other
> window). I'm creating both of them via newwin, becase
> I'd like to refresh one independently of each other.
>
> I understand they overlap stdscr, cose when having
> them on screen, a wgetch(strscr) causes them to
> dissapear, as if wgetch would be giving focus to
> stdscr stright away.
>
> Hence that I've been looking within the man pages to
> see whether there is some function which lets me
> control focus or something like that, though I haven't
> found any. I wonder how is this controlled with
> libforms and others.
>
> The thing is that I've got a few normal keys already
> gotten, and wanted to use F1 for help, an maybe two
> functions keys whether possible.
>
> If it helps you (or anyother) to give me an idea on
> how to get around this, portability shouldn't be an
> issue as I'm doing an application for a set of
> computers (all of them identical), and I'm talking
> about an xterm application instead of a tty one.
>
> Also as I'm writting would also appreciate any hints
> on how to get combinations such us SHITF+key and the
> like, which I haven't seen either within the man
> pages, or have completely missed.
>
> Kind Regards,
>
>
>
>
>
> ___________________________________________________________
> Try the all-new Yahoo! Mail. "The New Version is radically easier to use" –
> The Wall Street Journal http://uk.docs.yahoo.com/nowyoucan.html
>
>
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-ncurses

-- 
Mike Aubury





reply via email to

[Prev in Thread] Current Thread [Next in Thread]