Jacob's patch to improve Close On Exit behaviour
[u/mdw/putty] / putty.h
diff --git a/putty.h b/putty.h
index 5423ae9..88774e0 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_ALWAYS,     /* Always close the window */
+    COE_NORMAL      /* Close window on "normal" (non-error) exits only */
+};
+
 typedef struct {
     char *(*init) (char *host, int port, char **realhost);
     void (*send) (char *buf, int len);
@@ -344,7 +353,7 @@ void term_invalidate(void);
 void term_blink(int set_cursor);
 void term_paste(void);
 void term_nopaste(void);
-int telnet_ldisc(int option);
+int term_ldisc(int option);
 void from_backend(int is_stderr, char *data, int len);
 void logfopen (void); 
 void logfclose (void);