Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You don't access the keyboard thru pointers on Linux.</p> <p>If you are thinking of a graphical application, it uses <a href="http://en.wikipedia.org/wiki/X11" rel="nofollow">X11</a>, and its underlying protocol (which is very complex for newbies). If you are a newbie, I strongly recommend using a graphical toolkit library like <a href="http://qt.nokia.com/" rel="nofollow">Qt</a> or <a href="http://gtk.org/" rel="nofollow">GTK</a>.</p> <p>If you are thinking of a console application, I do recommend using a library like <a href="http://www.gnu.org/s/ncurses/" rel="nofollow">ncurses</a> or perhaps <a href="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html" rel="nofollow">readline</a>.</p> <p>You could indeed read the raw keyboard (since e.g. the Xorg server does), but this is painful. You'll need to learn about <a href="http://www.linusakesson.net/programming/tty/index.php" rel="nofollow">tty-s</a> and the details are painful. You'll also need to learn about the raw linux keyboard (I forgot the details, but study the Xorg server for more).</p> <p>You really should explain what you want to do. Be aware that understanding in full detail what is a tty or what is the raw keyboard takes months of work. And you should be familiar with <a href="http://linux.die.net/man/2/syscalls" rel="nofollow">linux</a> <a href="http://en.wikipedia.org/wiki/System_calls" rel="nofollow">system calls</a> before even starting.</p> <p>You should take advantage that nearly all Linux software is free; so you can study its source code.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload