| 
    MagAO-X
    
   | 
   ||||
   
  | 
 
Utilities for i/o on a file descriptor pointing to a tty device. More...
#include <unistd.h>#include <fcntl.h>#include <poll.h>#include <termios.h>#include <string>#include <mx/timeUtils.hpp>#include "ttyErrors.hpp"

Go to the source code of this file.
Namespaces | |
| MagAOX | |
| MagAOX::tty | |
Macros | |
| #define | TTY_BUFFSIZE (1024) | 
Functions | |
| int | MagAOX::tty::telnetCRLF (std::string &telnetStr, const std::string &inputStr) | 
| Replace lone \r and \n with \r\n for telnet-ness.  More... | |
| int | MagAOX::tty::ttyOpenRaw (int &fileDescrip, std::string &deviceName, speed_t speed) | 
| Open a file as a raw-mode tty device.  More... | |
| bool | MagAOX::tty::isEndOfTrans (const std::string &strRead, const std::string &eot) | 
| Check if the end of the buffer contains the end-of-transmission string.  More... | |
| int | MagAOX::tty::ttyWrite (const std::string &buffWrite, int fd, int timeoutWrite) | 
| Write to the tty console indicated by a file descriptor.  More... | |
| int | MagAOX::tty::ttyRead (std::string &strRead, const std::string &eot, int fd, int timeoutRead) | 
| Read from a tty console indicated by a file-descriptor, until an end of transmission string is read.  More... | |
| int | MagAOX::tty::ttyWriteRead (std::string &strRead, const std::string &strWrite, const std::string &eot, bool swallowEcho, int fd, int timeoutWrite, int timeoutRead) | 
| Write to a tty on an open file descriptor, then get the result.  More... | |
Utilities for i/o on a file descriptor pointing to a tty device.
History:
Definition in file ttyIOUtils.hpp.
| #define TTY_BUFFSIZE (1024) | 
Definition at line 27 of file ttyIOUtils.hpp.
Referenced by MagAOX::tty::ttyRead(), and MagAOX::tty::ttyWriteRead().