Re: How to recognize the Function keys in C



On Sat, 31 Dec 2005 10:26:38 -0600, Broeisi wrote:

> Hello,
>
> I'm trying to write a console based program in C in Linux.
> I want to use the function keys in my program, but I don;t know how to
> let the C program know when for exmaple the F1 key is pressed.
>
> I want to be able to use all 12 Function keys in my program.
> Can someone help me maybe on this one?
>
> I guess that those function keys also have an ascii number.
> But so far I haven't seen none of the funtion keys in my ascii chart.

Study the source for something like vim, which is a mature,
portable codebase that uses the keyboard extensively.

--
"The secret of being boring is to say everything." - Voltaire


.



Relevant Pages

  • Re: How to recognize the Function keys in C
    ... > I'm trying to write a console based program in C in Linux. ... > I want to be able to use all 12 Function keys in my program. ... > But so far I haven't seen none of the funtion keys in my ascii chart. ... Depending on the terminal type, function keys usually generate a specific ...
    (comp.lang.c)
  • How to recognize the Function keys in C
    ... I'm trying to write a console based program in C in Linux. ... I want to be able to use all 12 Function keys in my program. ... But so far I haven't seen none of the funtion keys in my ascii chart. ...
    (comp.lang.c)
  • Re: virtual terminals beyond F12
    ... you'd have to switch from your "X" session to a "console" before using ... mostly a laptop's) and function keys are everything but easily accessible. ... The Keyboard and Console howto has some hints in section 7. ...
    (comp.os.linux.x)
  • Re: Unable to install Fedora Core 2
    ... what I meant by the function keys is that the original menu is ... When I run the installation program, ... >> and the linux prompt. ... >> can hit a function key and see the possible options. ...
    (Fedora)
  • Re: Virtual PC 7 Question...
    ... > violating any group policies. ... I am installing Red Hat Linux 9. ... that your friend has a laptop, ... If you want normal PC function keys in Virtual PC, ...
    (comp.sys.mac.system)