From 75fdfed80be41ca471c5a34184eeaf5b68bf42c0 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 21 Mar 2016 06:54:26 +0000 Subject: [PATCH] Add TS_LOCALSTART for session-specific 'Telnet' specials. Now I can invent codes that vary per session. --- putty.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/putty.h b/putty.h index 78c4220f..bdef6142 100644 --- 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 {