6 typedef void *Context
; /* FIXME: probably needs changing */
8 extern Backend pty_backend
;
11 * Under GTK, we send MA_CLICK _and_ MA_2CLK, or MA_CLICK _and_
12 * MA_3CLK, when a button is pressed for the second or third time.
14 #define MULTICLICK_ONLY_EVENT 0
17 * Under X, selection data must not be NUL-terminated.
19 #define SELECTION_NUL_TERMINATED 0
22 * Under X, copying to the clipboard terminates lines with just LF.
26 /* Simple wraparound timer function */
27 unsigned long getticks(void); /* based on gettimeofday(2) */
28 #define GETTICKCOUNT getticks
29 #define TICKSPERSEC 1000000 /* gettimeofday returns microseconds */
30 #define CURSORBLINK 450000 /* no standard way to set this */
33 #define BYTE unsigned char
37 /* Things pty.c needs from pterm.c */
38 char *get_x_display(void *frontend
);
39 int font_dimension(void *frontend
, int which
);/* 0 for width, 1 for height */
41 /* Things uxstore.c needs from pterm.c */
42 char *x_get_default(char *key
);
44 /* Things uxstore.c provides to pterm.c */
45 void provide_xrm_string(char *string
);
47 /* Things uxnet.c provides to the front end */
48 int select_result(int fd
, int event
);
49 int first_socket(int *state
, int *rwx
);
50 int next_socket(int *state
, int *rwx
);
53 * In the Unix Unicode layer, DEFAULT_CODEPAGE is a special value
54 * which causes mb_to_wc and wc_to_mb to call _libc_ rather than
55 * libcharset. That way, we can interface the various charsets
56 * supported by libcharset with the one supported by mbstowcs and
57 * wcstombs (which will be the character set in which stuff read
58 * from the command line or config files is assumed to be encoded).
60 #define DEFAULT_CODEPAGE 0xFFFF
61 #define CP_UTF8 CS_UTF8 /* from libcharset */
63 #define strnicmp strncasecmp
64 #define stricmp strcasecmp
66 /* BSD-semantics version of signal() */
67 void (*putty_signal(int sig
, void (*func
)(int)))(int);
70 * Exports from unicode.c.
72 void init_ucs(int font_charset
);