]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Add TS_LOCALSTART for session-specific 'Telnet' specials.
authorSimon Tatham <anakin@pobox.com>
Mon, 21 Mar 2016 06:54:26 +0000 (06:54 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 21 Mar 2016 06:54:26 +0000 (06:54 +0000)
Now I can invent codes that vary per session.

putty.h

diff --git a/putty.h b/putty.h
index 78c4220fd6acdbf4607b1e2782b9b407d45effc2..bdef61423dab08b78a24a5615c82ca781e624bfc 100644 (file)
--- a/putty.h
+++ b/putty.h
@@ -182,7 +182,14 @@ typedef enum {
     /* Pseudo-specials used for constructing the specials menu. */
     TS_SEP,        /* Separator */
     TS_SUBMENU,            /* Start a new submenu with specified name */
-    TS_EXITMENU            /* Exit current submenu or end of specials */
+    TS_EXITMENU,    /* Exit current submenu or end of specials */
+    /* Starting point for protocols to invent special-action codes
+     * that can't live in this enum at all, e.g. because they change
+     * with every session.
+     *
+     * Of course, this must remain the last value in this
+     * enumeration. */
+    TS_LOCALSTART
 } Telnet_Special;
 
 struct telnet_special {