1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00
putty-source/contrib/cygtermd/pty.h
Simon Tatham b642aa086a Add a directory 'contrib/cygtermd', containing the source code for my
hacky helper program to let PuTTY act as a local pterm-oid on
Cygwin-enabled Windows systems.

[originally from svn r9191]
2011-07-10 14:22:32 +00:00

29 lines
614 B
C

/*
* pty.h - FIXME
*/
#ifndef FIXME_PTY_H
#define FIXME_PTY_H
#include "telnet.h" /* for struct shdata */
/*
* 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);
#endif /* FIXME_PTY_H */