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  

Ux::Terminal Class Reference
[C++ Wrapper for Standard UNIX Functions]

Inheritance diagram for Ux::Terminal:

Ux::File Ux::Base Ux::Pty List of all members.

Detailed Description

Definition at line 40 of file uxterminal.hpp.

Public Member Functions

 Terminal (int f=-1, const char *p=NULL, ssize_t s=-1)
 Terminal (const char *p, ssize_t s=-1)
bool isatty (void)
void tcdrain (void)
void tcflow (int action)
void tcflush (int queue)
void tcgetattr (Termios &t)
pid_t tcgetpgrp (void)
pid_t tcgetsid (void)
void tcsendbreak (int duration)
void tcsetattr (int actions, const Termios &t)
void tcsetpgrp (pid_t pgid)
void ttyname (char *buf, size_t bufsize)

Static Public Member Functions

char * ctermid (char *buf=NULL)


Constructor & Destructor Documentation

Ux::Terminal::Terminal int  f = -1,
const char *  p = NULL,
ssize_t  s = -1
[inline]
 

Definition at line 43 of file uxterminal.hpp.

Ux::Terminal::Terminal const char *  p,
ssize_t  s = -1
[inline]
 

Definition at line 46 of file uxterminal.hpp.


Member Function Documentation

char * Terminal::ctermid char *  buf = NULL  )  [static]
 

Calls ctermid. Static because makes no reference to fd -- returns name of controlling terminal.

Definition at line 67 of file uxterminal.cpp.

References errno.

bool Terminal::isatty void   ) 
 

Calls isatty and changes return value to a bool.

Definition at line 59 of file uxterminal.cpp.

References Ux::File::fd, and isatty().

void Terminal::tcdrain void   ) 
 

Calls tcdrain.

Definition at line 85 of file uxterminal.cpp.

References errno, and Ux::File::fd.

void Terminal::tcflow int  action  ) 
 

Calls tcflow.

Definition at line 94 of file uxterminal.cpp.

References errno, and Ux::File::fd.

void Terminal::tcflush int  queue  ) 
 

Calls tcflush.

Definition at line 103 of file uxterminal.cpp.

References errno, and Ux::File::fd.

void Terminal::tcgetattr Termios t  ) 
 

Calls tcgetattr.

Definition at line 112 of file uxterminal.cpp.

References errno, and Ux::File::fd.

pid_t Terminal::tcgetpgrp void   ) 
 

Calls tcgetpgrp.

Definition at line 121 of file uxterminal.cpp.

References errno, and Ux::File::fd.

pid_t Terminal::tcgetsid void   ) 
 

Calls tcgetsid.

Definition at line 133 of file uxterminal.cpp.

References errno, and Ux::File::fd.

void Terminal::tcsendbreak int  duration  ) 
 

Calls tcsendbreak.

Definition at line 145 of file uxterminal.cpp.

References errno, and Ux::File::fd.

void Terminal::tcsetattr int  actions,
const Termios t
 

Calls tcsetattr.

Definition at line 154 of file uxterminal.cpp.

References errno, and Ux::File::fd.

void Terminal::tcsetpgrp pid_t  pgid  ) 
 

Calls tcsetpgrp.

Definition at line 163 of file uxterminal.cpp.

References errno, and Ux::File::fd.

void Terminal::ttyname char *  buf,
size_t  bufsize
 

Calls ttyname_r (ttyname not supported). Could be redesigned to use the path in the superclass, but this function is too rarely used for that to be worthwhile.

Definition at line 173 of file uxterminal.cpp.

References Ux::File::fd.


The documentation for this class was generated from the following files:
Generated on Fri Apr 23 10:57:18 2004 for AUP2 Example Source by doxygen 1.3.1