1 /* $Id: mac_res.r,v 1.1.2.5 1999/02/28 02:38:40 ben Exp $ */
8 /* Get resource IDs we share with C code */
12 * Finder-related resources
15 /* 'pTTY' is now registered with Apple as PuTTY's signature */
17 type 'pTTY' as 'STR ';
19 resource 'pTTY' (0, purgeable) {
20 "PuTTY experimental Mac port"
23 resource 'vers' (1, purgeable) {
24 0x00, 0x45, /* Major and minor (BCD) */
25 development, 0, /* Status and pre-release */
26 2, /* Region code (2 = UK) */
27 "Mac exp", /* Short version (list views) */
28 "Mac experimental version. "
29 "Copyright Simon Tatham 1997-9", /* Long version (get info) */
32 resource 'SIZE' (-1) {
34 ignoreSuspendResumeEvents,
37 needsActivateOnFGSwitch,
38 backgroundAndForeground,
42 notHighLevelEventAware,
49 1024 * 1024, /* Minimum size */
50 1024 * 1024, /* Preferred size */
53 resource 'FREF' (128, purgeable) {
54 /* The application itself */
58 resource 'FREF' (129, purgeable) {
63 resource 'FREF' (130, purgeable) {
64 /* SSH host keys database */
68 resource 'BNDL' (128, purgeable) {
84 /* Icons, courtesy of DeRez */
86 /* Application icon */
87 resource 'ICN#' (128, purgeable) {
88 { /* array: 2 elements */
90 $"00003FFE 00004001 00004FF9 00005005"
91 $"00005355 00004505 00005A05 00002405"
92 $"00004A85 00019005 000223F9 00047C01"
93 $"00180201 7FA00C7D 801F1001 9FE22001"
94 $"A00CDFFE AA892002 A0123FFE A82C0000"
95 $"A0520000 AA6A0000 A00A0000 9FF20000"
96 $"80020000 80020000 80FA0000 80020000"
97 $"80020000 7FFC0000 40040000 7FFC",
99 $"00003FFE 00007FFF 0000 7FFF 00007FFF"
100 $"00007FFF 00007FFF 0000 7FFF 00007FFF"
101 $"00007FFF 00007FFF 0000 7FFF 00007FFF"
102 $"00007FFF 7FFC7FFF FFFE 7FFF FFFE7FFF"
103 $"FFFE3FFE FFFE3FFE FFFE 3FFE FFFE0000"
104 $"FFFE0000 FFFE0000 FFFE 0000 FFFE0000"
105 $"FFFE0000 FFFE0000 FFFE 0000 FFFE0000"
106 $"FFFE0000 7FFC0000 7FFC 0000 7FFC"
109 resource 'ics#' (128, purgeable) {
110 { /* array: 2 elements */
112 $"00FF 0081 00BD 00A5 00A5 00BD FF81 818D"
113 $"BD81 A57E A500 BD00 8100 8D00 8100 7E",
115 $"00FF 00FF 00FF 00FF 00FF 00FF FFFF FFFF"
116 $"FFFF FF7E FF00 FF00 FF00 FF00 FF00 7E"
120 /* Known hosts icon */
121 resource 'ICN#' (130, purgeable) {
122 { /* array: 2 elements */
124 $"1FFFFC00 10000600 10000500 1FFFFC80"
125 $"10000440 10000420 1FFFFFF0 10000010"
126 $"13FC0F90 1C03F0F0 15FA8090 150A8090"
127 $"1D0B80F0 150A8050 15FA8050 1C038070"
128 $"143A8050 14028050 1FFFABF0 12048110"
129 $"13FCFF10 1AAAAAB0 10000010 17FFFFD0"
130 $"14000050 15252250 15555550 15252250"
131 $"14000050 17FFFFD0 10000010 1FFFFFF0",
133 $"1FFFFC00 1FFFFE00 1FFFFF00 1FFFFF80"
134 $"1FFFFFC0 1FFFFFE0 1FFFFFF0 1FFFFFF0"
135 $"1FFFFFF0 1FFFFFF0 1FFFFFF0 1FFFFFF0"
136 $"1FFFFFF0 1FFFFFF0 1FFFFFF0 1FFFFFF0"
137 $"1FFFFFF0 1FFFFFF0 1FFFFFF0 1FFFFFF0"
138 $"1FFFFFF0 1FFFFFF0 1FFFFFF0 1FFFFFF0"
139 $"1FFFFFF0 1FFFFFF0 1FFFFFF0 1FFFFFF0"
140 $"1FFFFFF0 1FFFFFF0 1FFFFFF0 1FFFFFF0"
144 resource 'icl4' (130, purgeable) {
145 $"000FFFFFFFFFFFFFFFFFFF0000000000"
146 $"000F00000000000000000FF000000000"
147 $"000F00000000000000000FCF00000000"
148 $"000FFFFFFFFFFFFFFFFFFFCCF0000000"
149 $"000F00000000000000000FCCCF000000"
150 $"000F00000000000000000FCCCCF00000"
151 $"000FFFFFFFFFFFFFFFFFFFFFFFFF0000"
152 $"000F00000000000000000000000F0000"
153 $"000F00FFFFFFFF000000FFFFF00F0000"
154 $"000FFFCCCCCCCCFFFFFFCCCCFFFF0000"
155 $"000F0FCEEEEECCF0FCCCCCCCF00F0000"
156 $"000F0FCE0D0D0CF0FCCCCCCCF00F0000"
157 $"000FFFCED0D0CCFFFCCCCCCCFFFF0000"
158 $"000F0FCE0D0D0CF0FCCCCCCCCF0F0000"
159 $"000F0FCCC0C0CCF0FCCCCCCCCF0F0000"
160 $"000FFFCCCCCCCCFFFCCCCCCCCFFF0000"
161 $"000F0FCCCCFFFCF0FCCCCCCCCF0F0000"
162 $"000F0FCCCCCCCCF0FCCCCCCCCF0F0000"
163 $"000FFFFFFFFFFFFFFDDDDDDFFFFF0000"
164 $"000F00FCCDDEEF00FDDDDDDF000F0000"
165 $"000F00FFFFFFFF00FFFFFFFF000F0000"
166 $"000F0C0C0C0C0C0C0C0C0C0C0C0F0000"
167 $"000FC0C0C0C0C0C0C0C0C0C0C0CF0000"
168 $"000F0FFFFFFFFFFFFFFFFFFFFF0F0000"
169 $"000FCF0000000000000000000FCF0000"
170 $"000F0F0F00F00F0F00F000F00F0F0000"
171 $"000FCF0F0F0F0F0F0F0F0F0F0FCF0000"
172 $"000F0F0F00F00F0F00F000F00F0F0000"
173 $"000FCF0000000000000000000FCF0000"
174 $"000F0FFFFFFFFFFFFFFFFFFFFF0F0000"
175 $"000FC0C0C0C0C0C0C0C0C0C0C0CF0000"
176 $"000FFFFFFFFFFFFFFFFFFFFFFFFF"
178 resource 'icl8' (130, purgeable) {
179 $"000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000000000000000"
180 $"000000FF0000000000000000000000000000000000FFFF000000000000000000"
181 $"000000FF0000000000000000000000000000000000FFF6FF0000000000000000"
182 $"000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6F6FF00000000000000"
183 $"000000FF0000000000000000000000000000000000FFF6F6F6FF000000000000"
184 $"000000FF0000000000000000000000000000000000FFF6F6F6F6FF0000000000"
185 $"000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000"
186 $"000000FF0000000000000000000000000000000000000000000000FF00000000"
187 $"000000FF0000FFFFFFFFFFFFFFFF000000000000FFFFFFFFFF0000FF00000000"
188 $"000000FFFFFF2B2B2B2B2B2B2B2BFFFFFFFFFFFF2B2B2B2BFFFFFFFF00000000"
189 $"000000FF00FF2BFCFCFCFCFCF82BFF00FF2B2B2B2B2B2B2BFF0000FF00000000"
190 $"000000FF00FF2BFC2A2A2A2A002BFF00FF2B2B2B2B2B2B2BFF0000FF00000000"
191 $"000000FFFFFF2BFC2A2A2A2A002BFFFFFF2B2B2B2B2B2B2BFFFFFFFF00000000"
192 $"000000FF00FF2BFC2A2A2A2A002BFF00FF2B2B2B2B2B2B2B2BFF00FF00000000"
193 $"000000FF00FF2BF800000000002BFF00FF2B2B2B2B2B2B2B2BFF00FF00000000"
194 $"000000FFFFFF2B2B2B2B2B2B2B2BFFFFFF2B2B2B2B2B2B2B2BFFFFFF00000000"
195 $"000000FF00FF2B2B2B2BFFFFFF2BFF00FF2B2B2B2B2B2B2B2BFF00FF00000000"
196 $"000000FF00FF2B2B2B2B2B2B2B2BFF00FF2B2B2B2B2B2B2B2BFF00FF00000000"
197 $"000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFF9F9F9F9F9F9FFFFFFFFFF00000000"
198 $"000000FF0000FFF7F8F9FAFBFCFF0000FFF9F9F9F9F9F9FF000000FF00000000"
199 $"000000FF0000FFFFFFFFFFFFFFFF0000FFFFFFFFFFFFFFFF000000FF00000000"
200 $"000000FFF5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5FF00000000"
201 $"000000FFF5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5FF00000000"
202 $"000000FFF5FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5FF00000000"
203 $"000000FFF5FF00000000000000000000000000000000000000FFF5FF00000000"
204 $"000000FFF5FF00FF0000FF0000FF00FF0000FF000000FF0000FFF5FF00000000"
205 $"000000FFF5FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FFF5FF00000000"
206 $"000000FFF5FF00FF0000FF0000FF00FF0000FF000000FF0000FFF5FF00000000"
207 $"000000FFF5FF00000000000000000000000000000000000000FFF5FF00000000"
208 $"000000FFF5FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5FF00000000"
209 $"000000FFF5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5F5FF00000000"
210 $"000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
220 resource 'MBAR' (MBAR_Main, preload) {
224 resource 'MENU' (mApple, preload) {
227 0b11111111111111111111111111111101,
231 "About PuTTYÉ", noicon, nokey, nomark, plain,
232 "-", noicon, nokey, nomark, plain,
236 resource 'MENU' (mFile, preload) {
239 0b11111111111111111111111111111011,
243 "New Session", noicon, "N", nomark, plain,
244 "Close", noicon, "W", nomark, plain,
245 "-", noicon, nokey, nomark, plain,
246 "Quit", noicon, "Q", nomark, plain,
250 /* Fatal error box. Stolen from the Finder. */
252 resource 'ALRT' (wFatal, "fatalbox", purgeable) {
256 alertPositionMainScreen
259 resource 'DITL' (wFatal, "fatalbox", purgeable) {
260 { /* array DITLarray: 3 elements */
282 /* Terminal window */
284 resource 'WIND' (wTerminal, "terminal", purgeable) {
291 staggerParentWindowScreen
294 resource 'CNTL' (cVScroll, "vscroll", purgeable) {
302 resource 'DLOG' (wAbout, "about", purgeable) {
307 wAbout, /* RefCon -- identifies the window to PuTTY */
308 wAbout, /* DITL ID */
310 alertPositionMainScreen
313 resource 'dlgx' (wAbout, "about", purgeable) {
315 kDialogFlagsUseThemeBackground | kDialogFlagsUseThemeControls
319 resource 'DITL' (wAbout, "about", purgeable) {
321 { 87, 13, 107, 173 },
322 Button { enabled, "View Licence" },
324 StaticText { disabled, "PuTTY"},
326 StaticText { disabled, "Experimental Mac Port\n"
327 "© 1997-9 Simon Tatham"},
333 resource 'WIND' (wLicence, "licence", purgeable) {
340 alertPositionParentWindowScreen
347 resource 'TEXT' (wLicence, "licence", purgeable) {
348 "Copyright © 1997-9 Simon Tatham\n"
349 "Portions copyright Gary S. Brown and Eric Young\n\n"
351 "Permission is hereby granted, free of charge, to any person "
352 "obtaining a copy of this software and associated documentation "
353 "files (the \"Software\"), to deal in the Software without "
354 "restriction, including without limitation the rights to use, "
355 "copy, modify, merge, publish, distribute, sublicense, and/or "
356 "sell copies of the Software, and to permit persons to whom the "
357 "Software is furnished to do so, subject to the following "
360 "The above copyright notice and this permission notice shall be "
361 "included in all copies or substantial portions of the Software.\n\n"
363 "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, "
364 "EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF "
365 "MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND "
366 "NONINFRINGEMENT. IN NO EVENT SHALL SIMON TATHAM BE LIABLE FOR "
367 "ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF "
368 "CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN "
369 "CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE "
373 /* Default Preferences */
375 type PREF_wordness_type {
382 * This resource collects together the various short settings we need.
383 * Each area of the system gets its own longword for flags, and then
384 * we have the other settings. Strings are stored as two shorts --
385 * the id of a STR# or STR resource, and the index if it's a STR# (0
390 /* Basic boolean options */
391 boolean dont_close_on_exit, close_on_exit;
394 boolean use_pty, no_pty;
397 boolean bsd_environ, rfc_environ;
399 /* Keyboard options */
400 boolean backspace, delete;
401 boolean std_home_end, rxvt_home_end;
402 boolean std_funkeys, linux_funkeys;
403 boolean normal_cursor, app_cursor;
404 boolean normal_keypad, app_keypad;
406 /* Terminal options */
407 boolean no_dec_om, dec_om;
408 boolean no_auto_wrap, auto_wrap;
409 boolean no_auto_cr, auto_cr;
410 boolean use_icon_name, win_name_always;
413 boolean bold_font, bold_colour;
415 /* Non-boolean options */
416 integer; integer; /* host */
418 longint prot_telnet = 0, prot_ssh = 1; /* protocol */
419 integer; integer; /* termtype */
420 integer; integer; /* termspeed */
421 integer; integer; /* environmt */
422 integer; integer; /* username */
424 longint; /* height */
425 longint; /* save_lines */
426 integer; unsigned integer; /* font */
427 longint; /* font_height */
428 integer; /* 'pltt' for colours */
429 integer; /* 'wORD' for wordness */
432 resource 'pSET' (PREF_settings, "settings", purgeable) {
446 #define PREF_strings 1024
447 PREF_strings, 1, /* host 'STR#' */
448 23, prot_telnet, /* port, protocol */
449 PREF_strings, 2, /* termtype 'STR#' */
450 PREF_strings, 3, /* termspeed 'STR#' */
451 PREF_strings, 4, /* environmt 'STR#' */
452 PREF_strings, 5, /* username */
453 80, 24, 200, /* width, height, save_lines */
454 PREF_strings, 6, /* font 'STR#' */
456 #define PREF_pltt 1024
457 PREF_pltt, /* colours 'pltt' */
458 #define PREF_wordness 1024
459 PREF_wordness, /* wordness 'wORD */
462 resource 'STR#' (PREF_strings, "strings", purgeable) {
464 "nowhere.loopback.edu",
473 resource PREF_wordness_type (PREF_wordness, "wordness", purgeable) {
475 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
476 0,1,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,
477 1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,2,
478 1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,
479 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
480 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
481 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,
482 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2
487 * and _why_ isn't this provided for us?
491 pstring; /* Item name */
492 literal longint; /* Item type */
496 resource 'TMPL' (128, "pSET") {
498 "Close on exit", 'BBIT',
499 "", 'BBIT', /* Must pad to a multiple of 8 */
516 "RFC OLD-ENVIRON", 'BBIT',
525 "Delete key sends delete", 'BBIT',
526 "rxvt home/end", 'BBIT',
527 "Linux function keys", 'BBIT',
528 "Application cursor keys", 'BBIT',
529 "Application keypad", 'BBIT',
534 "Use colour for bold", 'BBIT',
543 "Host STR# ID", 'DWRD',
544 "Host STR# index", 'DWRD',
547 "Termspeed STR# ID", 'DWRD',
548 "Termspeed STR# index", 'DWRD',
549 "Environ STR# ID", 'DWRD',
550 "Environ STR# index", 'DWRD',
551 "Username STR# ID", 'DWRD',
552 "Username STR# index", 'DWRD',
553 "Terminal width", 'DLNG',
554 "Terminal height", 'DLNG',
555 "Save lines", 'DLNG',
556 "Font STR# ID", 'DWRD',
557 "Font STR# index", 'DWRD',
564 resource 'pltt' (PREF_pltt, purgeable) {
566 0x0000, 0x0000, 0x0000, pmTolerant, 0x2000, /* black */
567 0x5555, 0x5555, 0x5555, pmTolerant, 0x2000, /* bright black */
568 0xbbbb, 0x0000, 0x0000, pmTolerant, 0x2000, /* red */
569 0xffff, 0x5555, 0x5555, pmTolerant, 0x2000, /* bright red */
570 0x0000, 0xbbbb, 0x0000, pmTolerant, 0x2000, /* green */
571 0x5555, 0xffff, 0x5555, pmTolerant, 0x2000, /* bright green */
572 0xbbbb, 0xbbbb, 0x0000, pmTolerant, 0x2000, /* yellow */
573 0xffff, 0xffff, 0x0000, pmTolerant, 0x2000, /* bright yellow */
574 0x0000, 0x0000, 0xbbbb, pmTolerant, 0x2000, /* blue */
575 0x5555, 0x5555, 0xffff, pmTolerant, 0x2000, /* bright blue */
576 0xbbbb, 0x0000, 0xbbbb, pmTolerant, 0x2000, /* magenta */
577 0xffff, 0x5555, 0xffff, pmTolerant, 0x2000, /* bright magenta */
578 0x0000, 0xbbbb, 0xbbbb, pmTolerant, 0x2000, /* cyan */
579 0x5555, 0xffff, 0xffff, pmTolerant, 0x2000, /* bright cyan */
580 0xbbbb, 0xbbbb, 0xbbbb, pmTolerant, 0x2000, /* white */
581 0xffff, 0xffff, 0xffff, pmTolerant, 0x2000, /* bright white */
582 0xbbbb, 0xbbbb, 0xbbbb, pmTolerant, 0x2000, /* default fg */
583 0xffff, 0xffff, 0xffff, pmTolerant, 0x2000, /* default bold fg */
584 0x0000, 0x0000, 0x0000, pmTolerant, 0x2000, /* default bg */
585 0x5555, 0x5555, 0x5555, pmTolerant, 0x2000, /* default bold bg */
586 0x0000, 0x0000, 0x0000, pmTolerant, 0x2000, /* cursor bg */
587 0x0000, 0x0000, 0x0000, pmTolerant, 0x2000, /* bold cursor bg */
588 0x0000, 0xffff, 0x0000, pmTolerant, 0x2000, /* cursor fg */
589 0x0000, 0xffff, 0x0000, pmTolerant, 0x2000, /* bold cursor fg */