Ctrl-key detection in curses

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Melysa Handayani

    Ctrl-key detection in curses

    Is there any other methods to retrieve inputs in curses
    than getch() or getkey(), specially ones that can detect
    ctrl-key?
    Thank you!
    =============== =============== =============== =============== =============== =============== =
    Akses Internet Prabayar TELKOMNet-Prepaid,
    nominal Rp.10.000- Rp.150.000.
    Dapatkan di Plasa - Plasa TELKOM terdekat (khusus di Jawa Timur)========= =============== =============== =============== =============== =============== =======

  • David M. Cooke

    #2
    Re: Ctrl-key detection in curses

    At some point, "Melysa Handayani" <melys@telkom.n et> wrote:
    [color=blue]
    > Is there any other methods to retrieve inputs in curses than getch()
    > or getkey(), specially ones that can detect ctrl-key?
    > Thank you![/color]

    Do mean checking for a ctrl-key press by itself? Can't be done -- the
    terminal doesn't report that. If you mean ctrl-key + character,
    getch() and getkey() do that.

    --
    |>|\/|<
    /--------------------------------------------------------------------------\
    |David M. Cooke
    |cookedm(at)phy sics(dot)mcmast er(dot)ca

    Comment

    Working...