4 typedef void *Context
; /* FIXME: probably needs changing */
6 extern Backend pty_backend
;
8 /* Simple wraparound timer function */
9 unsigned long getticks(void); /* based on gettimeofday(2) */
10 #define GETTICKCOUNT getticks
11 #define TICKSPERSEC 1000000 /* gettimeofday returns microseconds */
12 #define CURSORBLINK 400000 /* FIXME: need right way to do this */
15 #define BYTE unsigned char
17 int is_dbcs_leadbyte(int codepage
, char byte
);
18 int mb_to_wc(int codepage
, int flags
, char *mbstr
, int mblen
,
19 wchar_t *wcstr
, int wclen
);
22 #define DEFAULT_CODEPAGE 0 /* FIXME: no idea how to do this */