2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

c4/tc_setraw.c File Reference


Detailed Description

Raw terminal I/O [Sec. 4.5.9, 4.5.10].

Definition in file tc_setraw.c.

Go to the source code of this file.

Functions

int tc_keystroke (void)
bool tc_setraw (void)
bool tc_restore (void)

Variables

termios tbufsave
bool have_attr = false


Function Documentation

int tc_keystroke void   ) 
 

Definition at line 29 of file tc_setraw.c.

References termios::c_lflag, EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, exit(), have_attr, read(), syserr(), tbufsave, tcgetattr(), and tcsetattr().

Referenced by main().

bool tc_restore void   ) 
 

Definition at line 95 of file tc_setraw.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, have_attr, tbufsave, and tcsetattr().

Referenced by main().

bool tc_setraw void   ) 
 

Definition at line 63 of file tc_setraw.c.

References termios::c_cflag, EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, errno, fpathconf(), have_attr, tbufsave, tcgetattr(), and tcsetattr().

Referenced by main().


Variable Documentation

bool have_attr = false [static]
 

Definition at line 27 of file tc_setraw.c.

Referenced by tc_keystroke(), tc_restore(), and tc_setraw().

struct termios tbufsave [static]
 

Definition at line 26 of file tc_setraw.c.

Referenced by tc_keystroke(), tc_restore(), and tc_setraw().


Generated on Fri Apr 23 10:57:08 2004 for AUP2 Example Source by doxygen 1.3.1