4 typedef void *Context
; /* FIXME: probably needs changing */
6 extern Backend pty_backend
;
9 * Under GTK, we send MA_CLICK _and_ MA_2CLK, or MA_CLICK _and_
10 * MA_3CLK, when a button is pressed for the second or third time.
12 #define MULTICLICK_ONLY_EVENT 0
15 * Under X, selection data must not be NUL-terminated.
17 #define SELECTION_NUL_TERMINATED 0
20 * Under X, copying to the clipboard terminates lines with just LF.
24 /* Simple wraparound timer function */
25 unsigned long getticks(void); /* based on gettimeofday(2) */
26 #define GETTICKCOUNT getticks
27 #define TICKSPERSEC 1000000 /* gettimeofday returns microseconds */
28 #define CURSORBLINK 450000 /* no standard way to set this */
31 #define BYTE unsigned char
33 int is_dbcs_leadbyte(int codepage
, char byte
);
34 int mb_to_wc(int codepage
, int flags
, char *mbstr
, int mblen
,
35 wchar_t *wcstr
, int wclen
);
36 int wc_to_mb(int codepage
, int flags
, wchar_t *wcstr
, int wclen
,
37 char *mbstr
, int mblen
, char *defchr
, int *defused
);
40 /* Things pty.c needs from pterm.c */
41 char *get_x_display(void);
42 int font_dimension(int which
); /* 0 for width, 1 for height */
44 /* Things uxstore.c needs from pterm.c */
45 char *app_name
; /* for doing resource lookups */
47 /* Things uxstore.c provides to pterm.c */
48 void provide_xrm_string(char *string
);
50 #define DEFAULT_CODEPAGE 0 /* FIXME: no idea how to do this */