Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
terminal.hpp File Reference

Terminal helpers headers. More...

#include <termios.h>

Go to the source code of this file.

Namespaces

 lxcpp
 

Functions

int lxcpp::nullStdFDs ()
 Nullifies all standard file descriptors (stdin, stdout, stderr) replacing them with file descriptor to /dev/null. More...
 
bool lxcpp::isatty (int fd)
 Checks if a file descriptor is a terminal. More...
 
void lxcpp::tcgetattr (const int fd, struct termios *termios_p)
 Get terminal attributes. More...
 
void lxcpp::tcsetattr (const int fd, const int optional_actions, const struct termios *termios_p)
 Set terminal attributes. More...
 
void lxcpp::setupIOControlTTY (const int ttyFD)
 Setups the passed fd as a new control and IO (in, out, err) terminal. More...
 
std::pair< int, std::string > lxcpp::openPty (bool rawMode)
 This function creates a new pair of virtual character devices using a pseudtoreminal interface. More...
 

Detailed Description

Terminal helpers headers.

Author
Lukasz Pawelczyk (l.paw.nosp@m.elcz.nosp@m.yk@sa.nosp@m.msun.nosp@m.g.com)