SSH port forwarding! How cool is that?
[sgt/putty] / putty.h
diff --git a/putty.h b/putty.h
index cb77ac9..f2c9cc6 100644 (file)
--- a/putty.h
+++ b/putty.h
@@ -78,7 +78,7 @@
 #define ATTR_DEFAULT 0x00980000UL
 #define ATTR_DEFFG   0x00080000UL
 #define ATTR_DEFBG   0x00900000UL
-#define ERASE_CHAR   (ATTR_DEFAULT | ' ')
+#define ERASE_CHAR   (ATTR_DEFAULT | ATTR_ASCII | ' ')
 #define ATTR_MASK    0xFFFFFF00UL
 #define CHAR_MASK    0x000000FFUL
 
@@ -127,6 +127,7 @@ GLOBAL WCHAR unitab_font[256];
 GLOBAL WCHAR unitab_xterm[256];
 GLOBAL WCHAR unitab_oemcp[256];
 GLOBAL unsigned char unitab_ctrl[256];
+#define in_utf (utf || line_codepage==CP_UTF8)
 
 #define LGXF_OVR  1                   /* existing logfile overwrite */
 #define LGXF_APN  0                   /* existing logfile append */
@@ -312,6 +313,9 @@ typedef struct {
     /* X11 forwarding */
     int x11_forward;
     char x11_display[128];
+    /* port forwarding */
+    int lport_acceptall; /* accepts connection from hosts other than localhost */
+    char portfwd[1024]; /* [LR]localport\thost:port\000[LR]localport\thost:port\000\000 */
 } Config;
 
 /*