* Unable to read function keys F1 & F10
@ 1998-01-16 5:00 kamal
0 siblings, 0 replies; only message in thread
From: kamal @ 1998-01-16 5:00 UTC (permalink / raw)
Hello,
In my program , I am unable to read function keys
F1 & F10, where as I could read other function keys (F2 to F9).
I suspect window manager or some other program is eating it up
before it comes to my program. I am running the program in
'dtterm'. Please let me know if there is any way to read
these function keys in my program. I am running the program
on Digital Unix 4.0
Thanks,
Kamal.
P.S: Sample program
--------------------
#include <stdio.h>
#include <ctype.h>
#include <curses.h>
#include <termios.h>
main()
{
int i;
char ch;
initscr();
keypad(stdscr,TRUE);
while (1)
{
i = wgetch(stdscr);
printw("key = %d \n",i);
}
endwin();
}
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-01-16 5:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-01-16 5:00 Unable to read function keys F1 & F10 kamal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox