mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 20:42: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:
10
raw.c
10
raw.c
@ -181,6 +181,15 @@ static void raw_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 *raw_get_specials(void *handle)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static Socket raw_socket(void *handle)
|
||||
{
|
||||
Raw raw = (Raw) handle;
|
||||
@ -233,6 +242,7 @@ Backend raw_backend = {
|
||||
raw_sendbuffer,
|
||||
raw_size,
|
||||
raw_special,
|
||||
raw_get_specials,
|
||||
raw_socket,
|
||||
raw_exitcode,
|
||||
raw_sendok,
|
||||
|
Reference in New Issue
Block a user