Encapsulates a struct termios. More...
#include <DwmTermios.hh>
Public Member Functions | |
| Termios () | |
| Constructor. | |
| TermioInputFlags & | InputFlags () |
| Returns a reference to the input flags. | |
| TermioOutputFlags & | OutputFlags () |
| Returns a reference to the output flags. | |
| TermioControlFlags & | ControlFlags () |
| Returns a reference to the control flags. | |
| TermioLocalFlags & | LocalFlags () |
| 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. | |
Encapsulates a struct termios.
| 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.