[comp.unix.questions] raw character input under BSD

pts@mendel.acc.Virginia.EDU (Paul T. Shannon) (07/23/90)

I'm porting some libraries from SYSV to BSD (specifically, from a Masscomp
to a NeXT) and I've run into incompatibilities.  My two reference works
don't help (Unix System Programming, Haviland and Salama, and Rochkind's
Advanced Unix Programming) because they stick to System V.  

Here are the functions I'd like to implement for BSD:

void putTerminalInRawMode (void);
char getRawKeyStroke (void);
void putTerminalInCanonicalMode ();

Their purpose is to let me get characters, undisplayed and
uninterpreted, from the keyboard.  I'll be grateful for any 
references, tips, or sample code.  As I don't regularly read
this newsgroup, please send any replies via email;  if there's
any interest, I'll post a summary.  Thanks.

 - Paul Shannon
   pts@virginia.edu