bug-ncurses
[Top][All Lists]
Advanced

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

about not using stdscr


From: chinlu chinawa
Subject: about not using stdscr
Date: Sun, 22 Oct 2006 04:36:38 +0100 (BST)

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




reply via email to

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