13 static void pty_size(void);
15 static void c_write(char *buf
, int len
)
17 from_backend(0, buf
, len
);
21 * Called to set up the pty.
23 * Returns an error message, or NULL on success.
25 * Also places the canonical host name into `realhost'. It must be
26 * freed by the caller.
28 static char *pty_init(char *host
, int port
, char **realhost
, int nodelay
)
30 /* FIXME: do nothing for now */
35 * Called to send data down the pty.
37 static int pty_send(char *buf
, int len
)
39 c_write(buf
, len
); /* FIXME: diagnostic thingy */
44 * Called to query the current socket sendability status.
46 static int pty_sendbuffer(void)
52 * Called to set the size of the window
54 static void pty_size(void)
56 /* FIXME: will need to do TIOCSWINSZ or whatever. */
63 static void pty_special(Telnet_Special code
)
69 static Socket
pty_socket(void)
71 return NULL
; /* shouldn't ever be needed */
74 static int pty_sendok(void)
79 static void pty_unthrottle(int backlog
)
84 static int pty_ldisc(int option
)
86 return 0; /* neither editing nor echoing */
89 static int pty_exitcode(void)
91 /* Shouldn't ever be required */
95 Backend pty_backend
= {