🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #57878

Re: programming: how to read a key?

#57878
From: Matt Jenkins
Date: Mon, 19 Aug 1996 00:00
22 lines
1162 bytes
Terry Dawson (terry@baldric.no.itg.telecom.com.au) 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?
: 
: Go take a look at curses/ncurses. It handles just about all of what
: you are seeking to do.
: 
: Terry
: 

Hmm,
	If you are using C, well why not getchar?

-- 
Matt(hew) Jenkins. 2nd yr. Computer Science (RMIT Bundoora)
email: mdj@{arcadia|yallara}.cs.rmit.edu.au
Running DOS, Linux 2.0.12 on a 5x86/160/16/2500
Technical Details
Message-ID: <4v9v79$abj@goanna.cs.rmit.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4uvh9k$21t@metro.usyd.edu.au> <4v8hmv$ha8@cdn_news.telecom.com.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: mdj@arcadia.cs.rmit.edu.au (Matt Jenkins)
Subject: Re: programming: how to read a key?
Date: 1996/08/19
Message-ID: <4v9v79$abj@goanna.cs.rmit.edu.au>
X-Deja-AN: 175096909
distribution: inet
references: <4uvh9k$21t@metro.usyd.edu.au> <4v8hmv$ha8@cdn_news.telecom.com.au>
organization: Comp Sci, RMIT, Melbourne, Australia
newsgroups: aus.computers.linux