pty.h 614 B

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