Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: kamal@wipsys.stph.net
Subject: Unable to read function keys F1 & F10
Date: 1998/01/16	[thread overview]
Message-ID: <884940781.191561741@dejanews.com> (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



                 reply	other threads:[~1998-01-16  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox