12#include "kpty_export.h"
27 Q_DECLARE_PRIVATE(
KPty)
44 KPty &operator=(
const KPty &) =
delete;
120 void login(
const char *user =
nullptr,
const char *remotehost =
nullptr);
167 bool setWinSize(
int lines,
int columns,
int height,
int width);
215 KPTY_NO_EXPORT
explicit KPty(KPtyPrivate *d);
220 std::unique_ptr<KPtyPrivate>
const d_ptr;
Provides primitives for opening & closing a pseudo TTY pair, assigning the controlling TTY,...
Definition kpty.h:26
void setCTtyEnabled(bool enable)
Whether this will be a controlling terminal.
void setCTty()
Creates a new session and process group and makes this pty the controlling tty.
void login(const char *user=nullptr, const char *remotehost=nullptr)
Creates an utmp entry for the tty.
bool setWinSize(int lines, int columns, int height, int width)
Change the logical (screen) size of the pty.
bool setEcho(bool echo)
Set whether the pty should echo input.
bool open()
Create a pty master/slave pair.
bool tcGetAttr(struct ::termios *ttmode) const
Wrapper around tcgetattr(3).
void closeSlave()
Close the pty slave descriptor.
void logout()
Removes the utmp entry for this tty.
const char * ttyName() const
bool tcSetAttr(struct ::termios *ttmode)
Wrapper around tcsetattr(3) with mode TCSANOW.
bool setWinSize(int lines, int columns)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool open(int fd)
Open using an existing pty master.
void close()
Close the pty master/slave pair.
bool openSlave()
Open the pty slave descriptor.