42 #ifndef _DWMTERMIOS_HH_ 43 #define _DWMTERMIOS_HH_ 79 bool IsSet(
const std::string & flagName)
const;
85 bool Set(
const std::string & flagName);
91 bool Unset(
const std::string & flagName);
130 struct termios & _termios;
155 struct termios & _termios;
180 struct termios & _termios;
205 struct termios & _termios;
267 cc_t
ControlChar(
const std::string & ccName)
const;
273 cc_t
ControlChar(
const std::string & ccName, cc_t val);
285 bool Set(
int fd,
int action);
298 struct termios _termios;
309 static const ControlCharName_t k_controlCharNames[];
311 static std::string PrintableControlChar(cc_t cc);
313 static const ControlCharName_t *
314 FindControlChar(
const std::string & ccName);
316 static const ControlCharName_t *
317 FindControlChar(cc_t cc);
322 #endif // _DWMTERMIOS_HH_
Encapsulates termios local flags.
Definition: DwmTermios.hh:190
Encapsulates a struct termios.
Definition: DwmTermios.hh:215
TermioOutputFlags & OutputFlags()
Returns a reference to the output flags.
bool operator==(const Termios &t) const
operator ==
Encapsulates termios output flags.
Definition: DwmTermios.hh:140
Base class for input, output, control and local termio flags.
Definition: DwmTermios.hh:71
friend std::ostream & operator<<(std::ostream &os, const Termios &t)
Prints to an ostream.
bool Set(int fd, int action)
Applies the termios to the given file descriptor.
cc_t ControlChar(const std::string &ccName) const
Returns the control char value for the given control char named ccName.
TermioControlFlags & ControlFlags()
Returns a reference to the control flags.
Definition: DwmBZ2IO.hh:67
Holds termios flag values and names.
Definition: DwmTermios.hh:61
bool Get(int fd)
Gets the termios for the given file descriptor.
TermioLocalFlags & LocalFlags()
Returns a reference to the local flags.
long OutputSpeed() const
Returns the input speed.
long InputSpeed() const
Returns the input speed.
TermioInputFlags & InputFlags()
Returns a reference to the input flags.
Encapsulates termios control flags.
Definition: DwmTermios.hh:165