87 std::streamsize
write(
const char* data, std::size_t len);
96 std::streamsize
read(
char* data, std::size_t len);
void open(std::string port, speed_t baudrate=B9600, charsize_t charsize=charsize_t::_8, parity_t parity=parity_t::NONE, stopbits_t stopbits=stopbits_t::_1)
Open a terminal device.
term()
Contruct an object.
std::streamsize write(const char *data, std::size_t len)
Write data to the terminal.
void close()
Close the terminal.
term(int fd)
Contruct an object by providing a terminal file descriptor.
Base class for socket and term.
std::streamsize read(char *data, std::size_t len)
Read data from the terminal.
struct termios options()
Access terminal options.
speed_t baudrate() const
Access the baudrate.
void set_options(struct termios &opts)
Set terminal options.
A class that allows to read and write from/to terminal devices.