Article View: aus.computers.linux
Article #57858Re: programming: how to read a key?
From: Kent Tong
Date: Fri, 16 Aug 1996 00:00
Date: Fri, 16 Aug 1996 00:00
31 lines
1431 bytes
1431 bytes
sdt@adhocalypso.arts.unimelb.edu.au (Stephen David Thirlwall) wrote: >Kent Tong (freemant@wr.com.au) wrote: >: I'd like to do the following programmtically: >: 1. read in a key. It should accept say ctrl-A, Home, PgUp and etc. >: 2. translate the key just read into a sequence of ascii characters. >: Can this be done? If so, how? >Kent, > Check out the Keystroke howto. >From the introduction: > What is "Keystroke-HOWTO" ? > This document is for users, who want to assign special action to some > of keys of the keyboard. The suggested method is to use the loadkeys(1) > or to modify the defkeymap.c file and relink the kernel. I'm afraid that's not what I really want. I'd like to know how a program (like emacs, joe and etc) gets its keystroke input. I could imagine there is a C RTL function or a system call to do that but can't find anything. --- Kent Tong Freeman Installer ==> http://www.netnet.net/users/freeman/
Technical Details
Message-ID:
<4v0tvc$ria@metro.usyd.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4uvh9k$21t@metro.usyd.edu.au> <4v0ekb$11l@mulga.cs.mu.OZ.AU>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,6c7f4d9f7702cf30 X-Google-Attributes: gid102983,public From: freemant@wr.com.au (Kent Tong) Subject: Re: programming: how to read a key? Date: 1996/08/16 Message-ID: <4v0tvc$ria@metro.usyd.edu.au> X-Deja-AN: 174758373 distribution: inet references: <4uvh9k$21t@metro.usyd.edu.au> <4v0ekb$11l@mulga.cs.mu.OZ.AU> organization: TipTec Development newsgroups: aus.computers.linux