🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #1147

Pick up characters as they are received from another terminal

#1147
From: Raymond Willis
Date: Tue, 30 Oct 1990 20:19
26 lines
1610 bytes
I am writing a program which involves graphics and allows the operator
to manipulate the display using arrow keys, etc.
  
It is necessary that the program pick up each key as it is hit.  I can
do this if the terminal is the one from which the program is being run.
However while the program is in debug proces,s it is much easier
to direct the graphics to a terminal beside the one from which the
program is being run and use the arrow keys from that same terminal.  
Then, one can have debug statements come out on the original terminal.
The closest, I have come to achieving this goal is a program that
picks up the character for every other key.  It doesn't require
a return key.  If you are hitting arrow or function keys, it gets
all three characters for the arrow, the first time you hit it,
misses all three characters for the arrow, the second time, etc.
 
Does anyone have a sample program where they have done this?  Ican
send copies of my two programs if desired.  (I am running Xenix,
release 2.3.2.)  
 
Thank you for your help.
Raymond Willis, U. S. Forest Service
-- 
\  /  C r o s s r o a d s  C o m m u n i c a t i o n s
 /\   (602) 941-2005 300|1200|2400 Baud 24 hrs/day
/  \  hplabs!hp-sdd!crash!xroads!willis
Technical Details
Message-ID: <1147@xroads.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!mcdphx!xroads!willis

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!mcdphx!xroads!willis
From: willis@xroads.UUCP (Raymond Willis)
Newsgroups: comp.unix.programmer
Subject: Pick up characters as they are received from another terminal
Message-ID: <1147@xroads.UUCP>
Date: 30 Oct 90 20:19:23 GMT
Organization: Crossroads, Phoenix, Az
Lines: 26