Mostly Mathias Leinmueller's PuTTYgen documentation, modified slightly
[u/mdw/putty] / putty.h
diff --git a/putty.h b/putty.h
index a06ed7d..2e72b56 100644 (file)
--- a/putty.h
+++ b/putty.h
@@ -130,6 +130,15 @@ enum {
     LD_ECHO                            /* local echo */
 };
 
+enum {
+    /*
+     * Close On Exit behaviours. (cfg.close_on_exit)
+     */
+    COE_NEVER,      /* Never close the window */
+    COE_NORMAL,     /* Close window on "normal" (non-error) exits only */
+    COE_ALWAYS      /* Always close the window */
+};
+
 typedef struct {
     char *(*init) (char *host, int port, char **realhost);
     void (*send) (char *buf, int len);