1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 11:02:48 -05:00

Turned the old `Telnet Command' System-submenu into a more general

`Special Command' menu, in which any backend can place its own list
of magical things the user might want to ask the backend to do. In
particular I've implemented the recently proposed "break" extension
in SSH2 using this mechanism.
NB this checkin slightly breaks the Mac build, since it needs to
provide at least a stub form of update_specials_menu().

[originally from svn r3054]
This commit is contained in:
Simon Tatham
2003-04-04 20:21:05 +00:00
parent e322770ab5
commit 3bd0415579
10 changed files with 184 additions and 89 deletions

View File

@ -148,6 +148,14 @@ void ldisc_update(void *frontend, int echo, int edit)
*/
}
void update_specials_menu(void *frontend)
{
/*
* When I implement a context menu in pterm, I will need to
* support this function properly.
*/
}
int askappend(void *frontend, Filename filename)
{
/*

View File

@ -704,6 +704,21 @@ static void pty_special(void *handle, Telnet_Special code)
return;
}
/*
* Return a list of the special codes that make sense in this
* protocol.
*/
static const struct telnet_special *pty_get_specials(void *handle)
{
/*
* Hmm. When I get round to having this actually usable, it
* might be quite nice to have the ability to deliver a few
* well chosen signals to the child process - SIGINT, SIGTERM,
* SIGKILL at least.
*/
return NULL;
}
static Socket pty_socket(void *handle)
{
return NULL; /* shouldn't ever be needed */
@ -750,6 +765,7 @@ Backend pty_backend = {
pty_sendbuffer,
pty_size,
pty_special,
pty_get_specials,
pty_socket,
pty_exitcode,
pty_sendok,

View File

@ -29,6 +29,10 @@ void cleanup_exit(int code)
exit(code);
}
void update_specials_menu(void *frontend)
{
}
void verify_ssh_host_key(void *frontend, char *host, int port, char *keytype,
char *keystr, char *fingerprint)
{