2 * mac.h -- macintosh-specific declarations
12 #include <MacWindows.h>
14 #include <UnicodeConverter.h>
24 long encvvers
; /* TEC version (from TECGetInfo()) */
25 long uncvattr
; /* Unicode Converter attributes (frem TECGetInfo()) */
28 extern struct mac_gestalts mac_gestalts
;
31 /* All systems that can use CFM have Color QuickDraw */
32 #define HAVE_COLOR_QD() 1
34 #define HAVE_COLOR_QD() (mac_gestalts.qdvers > gestaltOriginalQD)
38 /* Config that created this session */
40 /* Terminal emulator internal state */
43 int font_width
, font_height
;
53 /* Mac-specific elements */
59 WindowPtr settings_window
;
60 PaletteHandle palette
;
61 ControlHandle scrollbar
;
64 UnicodeToTextInfo uni_to_font
; /* Only one of uni_to_font and */
65 charset_t font_charset
; /* font_charset is used at a time. */
69 extern void mac_newsession(void);
70 extern void mac_clickdlg(WindowPtr
, EventRecord
*);
71 extern void mac_activatedlg(WindowPtr
, EventRecord
*);
73 extern void mac_opensession(void);
74 extern void mac_startsession(Session
*);
75 extern void mac_activateterm(WindowPtr
, Boolean
);
76 extern void mac_adjusttermcursor(WindowPtr
, Point
, RgnHandle
);
77 extern void mac_adjusttermmenus(WindowPtr
);
78 extern void mac_updateterm(WindowPtr
);
79 extern void mac_clickterm(WindowPtr
, EventRecord
*);
80 extern void mac_growterm(WindowPtr
, EventRecord
*);
81 extern void mac_keyterm(WindowPtr
, EventRecord
*);
82 extern void mac_menuterm(WindowPtr
, short, short);
84 extern OSErr
get_session_dir(Boolean makeit
, short *pVRefNum
, long *pDirID
);
85 extern void *open_settings_r_fsp(FSSpec
*);
87 extern void init_ucs(void);
89 extern OSErr
mactcp_init(void);
90 extern void mactcp_shutdown(void);
91 extern void mactcp_poll(void);
97 * c-file-style: "simon"