#endif
typedef struct config_tag Config;
+typedef struct backend_tag Backend;
#include "puttyps.h"
#include "network.h"
#define ATTR_CUR_AND (~(ATTR_BOLD|ATTR_REVERSE|ATTR_BLINK|ATTR_COLOURS))
#define ATTR_CUR_XOR 0x00BA0000UL
-#define SEL_NL { 13, 10 }
-
GLOBAL int rows, cols, savelines;
GLOBAL int has_focus;
GLOBAL char *help_path;
GLOBAL int help_has_contents;
+GLOBAL int nsessions;
+GLOBAL char **sessions;
+
GLOBAL int utf;
GLOBAL int dbcs_screenfont;
GLOBAL int font_codepage;
#define LGTYP_ASCII 1 /* logmode: pure ascii */
#define LGTYP_DEBUG 2 /* logmode: all chars of traffic */
#define LGTYP_PACKETS 3 /* logmode: SSH data packets */
-GLOBAL char *logfile;
typedef enum {
TS_AYT, TS_BRK, TS_SYNCH, TS_EC, TS_EL, TS_GA, TS_NOP, TS_ABORT,
COE_ALWAYS /* Always close the window */
};
-typedef struct {
+struct backend_tag {
char *(*init) (char *host, int port, char **realhost, int nodelay);
/* back->send() returns the current amount of buffered data. */
int (*send) (char *buf, int len);
*/
void (*unthrottle) (int);
int default_port;
-} Backend;
+};
GLOBAL Backend *back;
Mouse_Button translate_button(Mouse_Button b);
void connection_fatal(char *, ...);
void fatalbox(char *, ...);
+void modalfatalbox(char *, ...);
void beep(int);
void begin_session(void);
void sys_cursor(int x, int y);
+void request_paste(void);
#define OPTIMISE_IS_SCROLL 1
void set_iconic(int iconic);
void save_settings(char *section, int do_host, Config * cfg);
void load_settings(char *section, int do_host, Config * cfg);
void get_sesslist(int allocate);
+void do_defaults(char *, Config *);
+void registry_cleanup(void);
/*
* Exports from terminal.c.
int wc_unescape(char *output, const char *wildcard);
/*
+ * Exports from windlg.c
+ */
+void logevent(char *);
+void verify_ssh_host_key(char *host, int port, char *keytype,
+ char *keystr, char *fingerprint);
+void askcipher(char *ciphername, int cs);
+int askappend(char *filename);
+
+/*
* Exports from console.c (that aren't equivalents to things in
* windlg.c).
*/