C: Catching KeyDown/KeyUp Events on Console?

From: OdinsDream (john.spam_at_simplykiwi.com)
Date: 06/25/04


Date: 24 Jun 2004 21:07:20 -0700

How can I capture keypresses using C for a console application? I'd
like to avoid having to use ncurses, if possible. I'd like to tie
directly into the linux input core system. Does anyone have some
references I could check?



Relevant Pages

  • Re: Console in graphic mode
    ... > I'm writing ncurses application which works fine under console (in ... But i can not find anything in X which could emulate vt100 ... What does ncurses think your TERM is? ... translates them into X keysyms, then passes those keysyms to the ...
    (comp.os.linux.misc)
  • Solution for terminal input problem
    ... this thread is for programmers who like console applications ... (I mean all ncurses based or slang based which use cursor movement). ...
    (comp.unix.programmer)
  • Re: SMP hangups with FreeBSD 5.3-STABLE
    ... I am unable to send a break over the console to try to break into ... > the debugger. ... Disabling SMP may avoid the problem, ...
    (freebsd-current)
  • Re: stop kernel messages from splashing on the console
    ... I am getting these kernel messages on the consoles which I want to avoid ... From the man pages it is not clear to me if syslog actually handles the internal kernel messages going to the console, there is also klogd, and I know internal messages still make it to the console even when userspace is screwed up badly, so I would suspect that the klogd thread in the kernel is handling it. ...
    (Fedora)
  • Re: [PATCH]console:UTF-8 mode compatibility fixes
    ... be needed in ncurses for a few more years. ... Shall we add another kludge to accommodate Linux console? ... and send two replacement glyphs or better one replacement glyph and one space ... displaying/cut/paste/edit operations. ...
    (Linux-Kernel)