Re: ## Capturing ctrl key in linux ##

From: Måns Rullgård (mru_at_kth.se)
Date: 05/29/04

  • Next message: Andreas Røsdal: "gtk question: GtkComboBox"
    Date: Sat, 29 May 2004 17:34:18 +0200
    
    

    "T.M. Sommers" <tms@nj.net> writes:

    > M.Senthil Kumar wrote:
    >> hai all,
    >> I'm developing an editor software in linux kernal 2.4 using C.I
    >> don't know how to capture Control Key . I want to capture ^F ,
    >> ^E,^C,^H for my editor to show menus.I'm using curses laibrary for my
    >> software.
    >> Will u please help me how to do that.
    >
    > man getch
    >
    > Specifically, if the user presses ^A, getch() will return 1, if ^B, 2,
    > and so on.

    and ^C will send a SIGINT, unless disabled.

    -- 
    Måns Rullgård
    mru@kth.se
    

  • Next message: Andreas Røsdal: "gtk question: GtkComboBox"

    Relevant Pages

    • Re: ## Capturing Ctrl key in LINUX ##
      ... M.Senthil Kumar scribbled the following: ... > hai all, ... > I'm developing an editor software in linux kernal 2.4 using C.I ... "Bad things only happen to scoundrels." ...
      (comp.lang.c)
    • ## Capturing ctrl key in linux ##
      ... hai all, ... I'm developing an editor software in linux kernal 2.4 using C.I ... don't know how to capture Control Key. ... Senthil kumar. ...
      (comp.unix.programmer)
    • Re: ## Capturing ctrl key in linux ##
      ... M.Senthil Kumar wrote: ... > hai all, ... > I'm developing an editor software in linux kernal 2.4 using C.I ... man getch ...
      (comp.unix.programmer)