X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=putty.h;h=7e7eca61661bba694122005d6536f30aea5a3905;hb=5176e1e9bbdc6620a115da0f92ca2282a6714721;hp=6999d3e373bbab123001c8b2da92d29f32fb55f6;hpb=5e76cd7a17e070402fe1c0a14ee887f548236c94;p=PuTTY.git diff --git a/putty.h b/putty.h index 6999d3e3..7e7eca61 100644 --- a/putty.h +++ b/putty.h @@ -62,6 +62,17 @@ GLOBAL int has_focus; GLOBAL int app_cursor_keys, app_keypad_keys; +GLOBAL int seen_key_event; +GLOBAL int seen_disp_event; + +typedef enum { + US_NONE = 0, US_KEY = 1, US_DISP = 2, US_BOTH = 3 +} Unscroll_Trigger; + +GLOBAL Unscroll_Trigger unscroll_event; + +GLOBAL char *logfile; + #define WM_NETEVENT (WM_USER + 1) typedef enum { @@ -91,15 +102,23 @@ typedef struct { GLOBAL Backend *back; +typedef struct { + void (*send) (char *buf, int len); +} Ldisc; + +GLOBAL Ldisc *ldisc; + typedef struct { /* Basic options */ char host[512]; int port; enum { PROT_RAW, PROT_TELNET, PROT_SSH } protocol; int close_on_exit; + int warn_on_close; /* SSH options */ int nopty; enum { CIPHER_3DES, CIPHER_BLOWFISH, CIPHER_DES } cipher; + int try_tis_auth; /* Telnet options */ char termtype[32]; char termspeed[32]; @@ -112,6 +131,10 @@ typedef struct { int linux_funkeys; int app_cursor; int app_keypad; + int nethack_keypad; + int alt_f4; /* is it special? */ + int alt_space; /* is it special? */ + int ldisc_term; /* Terminal options */ int savelines; int dec_om; @@ -122,6 +145,7 @@ typedef struct { char font[64]; int fontisbold; int fontheight; + int fontcharset; VT_Mode vtmode; /* Colour options */ int try_palette; @@ -130,6 +154,10 @@ typedef struct { /* Selection options */ int mouse_is_xterm; short wordness[256]; + /* russian language translation */ + int xlat_enablekoiwin; + int xlat_88592w1250; + int xlat_capslockcyr; } Config; /* @@ -147,6 +175,8 @@ GLOBAL Config cfg; GLOBAL int default_protocol; GLOBAL int default_port; +struct RSAKey; /* be a little careful of scope */ + /* * Exports from window.c. */ @@ -180,8 +210,8 @@ void random_save_seed(void); int do_config (void); int do_reconfig (HWND); void do_defaults (char *); -void lognegot (char *); -void shownegot (HWND); +void logevent (char *); +void showeventlog (HWND); void showabout (HWND); void verify_ssh_host_key(char *host, struct RSAKey *key); void get_sesslist(int allocate); @@ -209,7 +239,7 @@ void term_invalidate(void); * Exports from raw.c. */ -Backend raw_backend; +extern Backend raw_backend; /* * Exports from telnet.c. @@ -223,6 +253,12 @@ extern Backend telnet_backend; extern Backend ssh_backend; +/* + * Exports from ldisc.c. + */ + +extern Ldisc ldisc_term, ldisc_simple; + /* * Exports from sshrand.c. */ @@ -257,6 +293,19 @@ void safefree(void *); */ extern char ver[]; +/* + * Exports from sizetip.c. + */ +void UpdateSizeTip(HWND src, int cx, int cy); +void EnableSizeTip(int bEnable); + +/* + * Exports from xlat.c. + */ +unsigned char xlat_kbd2tty(unsigned char c); +unsigned char xlat_tty2scr(unsigned char c); +unsigned char xlat_latkbd2win(unsigned char c); + /* * A debug system. */