Sebastian Kuschel reports that pfd_closing can be called for a socket
[u/mdw/putty] / contrib / cygtermd / pty.h
1 /*
2 * pty.h - FIXME
3 */
4
5 #ifndef FIXME_PTY_H
6 #define FIXME_PTY_H
7
8 #include "telnet.h" /* for struct shdata */
9
10 /*
11 * Called at program startup to actually allocate a pty, so that
12 * we can start passing in resize events as soon as they arrive.
13 */
14 void pty_preinit(void);
15
16 /*
17 * Set the terminal size for the pty.
18 */
19 void pty_resize(int w, int h);
20
21 /*
22 * Start a program in a subprocess running in the pty we allocated.
23 * Returns the fd of the pty master.
24 */
25 int run_program_in_pty(const struct shell_data *shdata,
26 char *directory, char **program_args);
27
28 #endif /* FIXME_PTY_H */