X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=putty.h;h=b6284d5300f716892166158a22db2d2e599a1465;hb=49d2cf19accb059b3b68d1fc2b78e606a578c3e8;hp=b08eec8147eb989e4f144743739f6b321f454b3d;hpb=09951c60786bf48d30d2dc6f19a430da0c4d7d4b;p=PuTTY.git diff --git a/putty.h b/putty.h index b08eec81..b6284d53 100644 --- a/putty.h +++ b/putty.h @@ -324,6 +324,8 @@ enum { FUNKY_SCO }; +extern const char *const ttymodes[]; + enum { /* * Network address types. Used for specifying choice of IPv4/v6 @@ -351,6 +353,8 @@ struct backend_tag { const struct telnet_special *(*get_specials) (void *handle); Socket(*socket) (void *handle); int (*exitcode) (void *handle); + /* If back->sendok() returns FALSE, data sent to it from the frontend + * may be lost. */ int (*sendok) (void *handle); int (*ldisc) (void *handle, int); void (*provide_ldisc) (void *handle, void *ldisc); @@ -430,6 +434,7 @@ struct config_tag { Filename keyfile; int sshprot; /* use v1 or v2 when both available */ int ssh2_des_cbc; /* "des-cbc" unrecommended SSH-2 cipher */ + int ssh_no_userauth; /* bypass "ssh-userauth" (SSH-2 only) */ int try_tis_auth; int try_ki_auth; int ssh_subsys; /* run a subsystem rather than a command */ @@ -438,6 +443,7 @@ struct config_tag { /* Telnet options */ char termtype[32]; char termspeed[32]; + char ttymodes[768]; /* MODE\tVvalue\0MODE\tA\0\0 */ char environmt[1024]; /* VAR\tvalue\0VAR\tvalue\0\0 */ char username[100]; char localusername[100]; @@ -647,6 +653,9 @@ void ldisc_update(void *frontend, int echo, int edit); void update_specials_menu(void *frontend); int from_backend(void *frontend, int is_stderr, const char *data, int len); void notify_remote_exit(void *frontend); +/* Get a sensible value for a tty mode. NULL return = don't set. + * Otherwise, returned value should be freed by caller. */ +char *get_ttymode(void *frontend, const char *mode); #define OPTIMISE_IS_SCROLL 1 void set_iconic(void *frontend, int iconic); @@ -741,6 +750,7 @@ void term_provide_resize_fn(Terminal *term, void *resize_ctx); void term_provide_logctx(Terminal *term, void *logctx); void term_set_focus(Terminal *term, int has_focus); +char *term_get_ttymode(Terminal *term, const char *mode); /* * Exports from logging.c.