X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/b1549e9eff25e5e63c904e12e12c6522e7ec025b..4ba9b64bfae2a77b1c8376d027f26e172ec1412d:/putty.h diff --git a/putty.h b/putty.h index 0d1c932f..08f1d60b 100644 --- a/putty.h +++ b/putty.h @@ -140,6 +140,7 @@ typedef struct { /* SSH options */ char remote_cmd[512]; int nopty; + int compression; int agentfwd; enum { CIPHER_3DES, CIPHER_BLOWFISH, CIPHER_DES } cipher; char keyfile[FILENAME_MAX]; @@ -156,7 +157,8 @@ typedef struct { int bksp_is_delete; int rxvt_homeend; int funky_type; - int no_applic; /* totally disable application modes */ + int no_applic_c; /* totally disable app cursor keys */ + int no_applic_k; /* totally disable app keypad */ int app_cursor; int app_keypad; int nethack_keypad; @@ -164,6 +166,7 @@ typedef struct { int alt_space; /* is it special? */ int alt_only; /* is it special? */ int ldisc_term; + int alwaysontop; int scroll_on_key; int scroll_on_disp; int compose_key; @@ -398,28 +401,9 @@ void crypto_wrapup(); void agent_query(void *in, int inlen, void **out, int *outlen); int agent_exists(void); -/* - * A debug system. - */ #ifdef DEBUG -#include +void dprintf(char *fmt, ...); #define debug(x) (dprintf x) -static void dprintf(char *fmt, ...) { - char buf[2048]; - DWORD dw; - va_list ap; - static int gotconsole = 0; - - if (!gotconsole) { - AllocConsole(); - gotconsole = 1; - } - - va_start(ap, fmt); - vsprintf(buf, fmt, ap); - WriteFile (GetStdHandle(STD_OUTPUT_HANDLE), buf, strlen(buf), &dw, NULL); - va_end(ap); -} #else #define debug(x) #endif