libDwm-0.9.45
Dwm::Termios Class Reference

Encapsulates a struct termios. More...

#include <DwmTermios.hh>

Public Member Functions

 Termios ()
 Constructor.
 
TermioInputFlagsInputFlags ()
 Returns a reference to the input flags.
 
TermioOutputFlagsOutputFlags ()
 Returns a reference to the output flags.
 
TermioControlFlagsControlFlags ()
 Returns a reference to the control flags.
 
TermioLocalFlagsLocalFlags ()
 Returns a reference to the local flags.
 
long InputSpeed () const
 Returns the input speed.
 
long InputSpeed (long inputSpeed)
 Sets and returns the input speed.
 
long OutputSpeed () const
 Returns the input speed.
 
long OutputSpeed (long outputSpeed)
 Sets and returns the input speed.
 
cc_t ControlChar (const std::string &ccName) const
 Returns the control char value for the given control char named ccName.
 
cc_t ControlChar (const std::string &ccName, cc_t val)
 Sets and returns the control char value for the given control char named ccName.
 
bool Get (int fd)
 Gets the termios for the given file descriptor.
 
bool Set (int fd, int action)
 Applies the termios to the given file descriptor.
 
bool operator== (const Termios &t) const
 operator ==
 

Friends

std::ostream & operator<< (std::ostream &os, const Termios &t)
 Prints to an ostream.
 

Detailed Description

Encapsulates a struct termios.

Member Function Documentation

◆ Set()

bool Dwm::Termios::Set ( int fd,
int action )

Applies the termios to the given file descriptor.

action is TCSANOW, TCSADRAIN or TCSAFLUSH. TCSASOFT may be or'ed with any of these. See the tcsetattr(3) manpage.


The documentation for this class was generated from the following file: