2011-07-10 14:22:32 +00:00
|
|
|
/*
|
2018-10-06 10:46:47 +00:00
|
|
|
* pty.h - declare functions for pty setup
|
2011-07-10 14:22:32 +00:00
|
|
|
*/
|
|
|
|
|
2018-10-06 10:55:56 +00:00
|
|
|
#ifndef CYGTERMD_PTY_H
|
|
|
|
#define CYGTERMD_PTY_H
|
2011-07-10 14:22:32 +00:00
|
|
|
|
2019-09-08 19:29:00 +00:00
|
|
|
#include "telnet.h" /* for struct shdata */
|
2011-07-10 14:22:32 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Called at program startup to actually allocate a pty, so that
|
|
|
|
* we can start passing in resize events as soon as they arrive.
|
|
|
|
*/
|
|
|
|
void pty_preinit(void);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Set the terminal size for the pty.
|
|
|
|
*/
|
|
|
|
void pty_resize(int w, int h);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Start a program in a subprocess running in the pty we allocated.
|
|
|
|
* Returns the fd of the pty master.
|
|
|
|
*/
|
|
|
|
int run_program_in_pty(const struct shell_data *shdata,
|
|
|
|
char *directory, char **program_args);
|
|
|
|
|
2018-10-06 10:55:56 +00:00
|
|
|
#endif /* CYGTERMD_PTY_H */
|