]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - mac_res.r
Rebranch some files on 'ben-mac-port' from trunk.
[PuTTY.git] / mac_res.r
index e9b8358210fd51457461084dd467af9e7eeb6bc3..d6183a122b676d7b8c3f7bc571f6c7a965206e21 100644 (file)
--- a/mac_res.r
+++ b/mac_res.r
@@ -1,4 +1,30 @@
-/* $Id: mac_res.r,v 1.1.2.5 1999/02/28 02:38:40 ben Exp $ */
+/* $Id: mac_res.r,v 1.1.2.17 1999/04/02 12:58:02 ben Exp $ */
+/*
+ * Copyright (c) 1999 Ben Harris
+ * All rights reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person
+ * obtaining a copy of this software and associated documentation
+ * files (the "Software"), to deal in the Software without
+ * restriction, including without limitation the rights to use,
+ * copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following
+ * conditions:
+ * 
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
 /* PuTTY resources */
 
 #include "Types.r"
@@ -20,15 +46,6 @@ resource 'pTTY' (0, purgeable) {
     "PuTTY experimental Mac port"
 };
 
-resource 'vers' (1, purgeable) {
-    0x00, 0x45,                /* Major and minor (BCD) */
-    development, 0,    /* Status and pre-release */
-    2,                 /* Region code (2 = UK) */
-    "Mac exp",         /* Short version (list views) */
-    "Mac experimental version.  "
-    "Copyright Simon Tatham 1997-9",   /* Long version (get info) */
-};
-
 resource 'SIZE' (-1) {
     reserved,
     ignoreSuspendResumeEvents,
@@ -93,19 +110,89 @@ resource 'ICN#' (128, purgeable) {
                $"00180201 7FA00C7D 801F1001 9FE22001"
                $"A00CDFFE AA892002 A0123FFE A82C0000"
                $"A0520000 AA6A0000 A00A0000 9FF20000"
-               $"80020000 80020000 80FA0000 80020000"
+               $"80020000 80020000 90FA0000 80020000"
                $"80020000 7FFC0000 40040000 7FFC",
                /* [2] */
-               $"00003FFE 00007FFF 0000 7FFF 00007FFF"
-               $"00007FFF 00007FFF 0000 7FFF 00007FFF"
-               $"00007FFF 00007FFF 0000 7FFF 00007FFF"
-               $"00007FFF 7FFC7FFF FFFE 7FFF FFFE7FFF"
-               $"FFFE3FFE FFFE3FFE FFFE 3FFE FFFE0000"
-               $"FFFE0000 FFFE0000 FFFE 0000 FFFE0000"
-               $"FFFE0000 FFFE0000 FFFE 0000 FFFE0000"
-               $"FFFE0000 7FFC0000 7FFC 0000 7FFC"
+               $"00003FFE 00007FFF 00007FFF 00007FFF"
+               $"00007FFF 00007FFF 00007FFF 00007FFF"
+               $"00007FFF 0001FFFF 0003FFFF 0007FFFF"
+               $"001FFFFF 7FFFFFFF FFFFFFFF FFFFFFFF"
+               $"FFFFFFFE FFFF3FFE FFFE3FFE FFFE0000"
+               $"FFFE0000 FFFE0000 FFFE0000 FFFE0000"
+               $"FFFE0000 FFFE0000 FFFE0000 FFFE0000"
+               $"FFFE0000 7FFC0000 7FFC0000 7FFC"
        }
 };
+
+resource 'icl4' (128, purgeable) {
+       $"000000000000000000FFFFFFFFFFFFF0"
+       $"00000000000000000FCCCCCCCCCCCCCF"
+       $"00000000000000000FCEEEEEEEEEEECF"
+       $"00000000000000000FCE0D0D0D0D0CCF"
+       $"00000000000000000FCED0FFD0D0D0CF"
+       $"00000000000000000FCE0F1F0D0D0CCF"
+       $"00000000000000000FCFF1F0D0D0D0CF"
+       $"00000000000000000FF11F0D0D0D0CCF"
+       $"00000000000000000F11F0D0D0D0D0CF"
+       $"000000000000000FF11F0D0D0D0D0CCF"
+       $"00000000000000F111FEC0C0C0C0C0CF"
+       $"0000000000000F111FFFFFCCCCCCCCCF"
+       $"00000000000FF111111111FCCCCCCCCF"
+       $"0FFFFFFFFFF111111111FFCCCFFFFFCF"
+       $"FCCCCCCCCCCFFFFF111F3CCCCCCCCCCF"
+       $"FCEEEEEEEEEEECF111FCCCCCCCCCCCCF"
+       $"FCE0D0D0D0D0FF11FFFFFFFFFFFFFFF0"
+       $"FCED0D0D0D0DF11F00FCCCDDDEEEEAF0"
+       $"FCE0D0D0D0DF11F000FFFFFFFFFFFFF0"
+       $"FCED0D0D0DF1FFF00000000000000000"
+       $"FCE0D0D0DF1FCCF00000000000000000"
+       $"FCED0D0D0FFD0CF00000000000000000"
+       $"FCE0D0D0D0D0CCF00000000000000000"
+       $"FCEC0C0C0C0C0CF00000000000000000"
+       $"FCCCCCCCCCCCCCF00000000000000000"
+       $"FCCCCCCCCCCCCCF00000000000000000"
+       $"FC88CCCCFFFFFCF00000000000000000"
+       $"FC33CCCCCCCCCCF00000000000000000"
+       $"FCCCCCCCCCCCCCF00000000000000000"
+       $"0FFFFFFFFFFFFF000000000000000000"
+       $"0FCCCDDDEEEEAF000000000000000000"
+       $"0FFFFFFFFFFFFF"
+};
+
+resource 'icl8' (128, purgeable) {
+       $"000000000000000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFF00"
+       $"0000000000000000000000000000000000FF2B2B2B2B2B2B2B2B2B2B2B2B2BFF"
+       $"0000000000000000000000000000000000FF2BFCFCFCFCFCFCFCFCFCFCFC2BFF"
+       $"0000000000000000000000000000000000FF2BFC2A2A2A2A2A2A2A2A2A002BFF"
+       $"0000000000000000000000000000000000FF2BFC2A2AFFFF2A2A2A2A2A002BFF"
+       $"0000000000000000000000000000000000FF2BFC2AFF05FF2A2A2A2A2A002BFF"
+       $"0000000000000000000000000000000000FF2BFFFF05FF2A2A2A2A2A2A002BFF"
+       $"0000000000000000000000000000000000FFFF0505FF2A2A2A2A2A2A2A002BFF"
+       $"0000000000000000000000000000000000FF0505FF2A2A2A2A2A2A2A2A002BFF"
+       $"000000000000000000000000000000FFFF0505FF2A2A2A2A2A2A2A2A2A002BFF"
+       $"0000000000000000000000000000FF050505FFFC000000000000000000002BFF"
+       $"00000000000000000000000000FF050505FFFFFFFFFF2B2B2B2B2B2B2B2B2BFF"
+       $"0000000000000000000000FFFF050505050505050505FF2B2B2B2B2B2B2B2BFF"
+       $"00FFFFFFFFFFFFFFFFFFFF050505050505050505FFFF2B2B2BFFFFFFFFFF2BFF"
+       $"FF2B2B2B2B2B2B2B2B2B2BFFFFFFFFFF050505FFD82B2B2B2B2B2B2B2B2B2BFF"
+       $"FF2BFCFCFCFCFCFCFCFCFCFCFC2BFF050505FF2B2B2B2B2B2B2B2B2B2B2B2BFF"
+       $"FF2BFC2A2A2A2A2A2A2A2A2AFFFF0505FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00"
+       $"FF2BFC2A2A2A2A2A2A2A2A2AFF0505FF0000FF2BF7F8F9FAFAFBFBFCFCFDFF00"
+       $"FF2BFC2A2A2A2A2A2A2A2AFF0505FF000000FFFFFFFFFFFFFFFFFFFFFFFFFF00"
+       $"FF2BFC2A2A2A2A2A2A2AFF05FFFFFF0000000000000000000000000000000000"
+       $"FF2BFC2A2A2A2A2A2AFF05FF002BFF0000000000000000000000000000000000"
+       $"FF2BFC2A2A2A2A2A2AFFFF2A002BFF0000000000000000000000000000000000"
+       $"FF2BFC2A2A2A2A2A2A2A2A2A002BFF0000000000000000000000000000000000"
+       $"FF2BFC000000000000000000002BFF0000000000000000000000000000000000"
+       $"FF2B2B2B2B2B2B2B2B2B2B2B2B2BFF0000000000000000000000000000000000"
+       $"FF2B2B2B2B2B2B2B2B2B2B2B2B2BFF0000000000000000000000000000000000"
+       $"FF2BE3E32B2B2B2BFFFFFFFFFF2BFF0000000000000000000000000000000000"
+       $"FF2BD8D82B2B2B2B2B2B2B2B2B2BFF0000000000000000000000000000000000"
+       $"FF2B2B2B2B2B2B2B2B2B2B2B2B2BFF0000000000000000000000000000000000"
+       $"00FFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000000000000000"
+       $"00FF2BF7F8F9FAFAFBFBFCFCFDFF000000000000000000000000000000000000"
+       $"00FFFFFFFFFFFFFFFFFFFFFFFFFF"
+};
 resource 'ics#' (128, purgeable) {
        {       /* array: 2 elements */
                /* [1] */
@@ -218,7 +305,7 @@ resource 'icl8' (130, purgeable) {
 /* Menu bar */
 
 resource 'MBAR' (MBAR_Main, preload) {
-    { mApple, mFile }
+    { mApple, mFile, mEdit }
 };
 
 resource 'MENU' (mApple, preload) {
@@ -247,6 +334,23 @@ resource 'MENU' (mFile, preload) {
     }
 };
 
+resource 'MENU' (mEdit, preload) {
+    mEdit,
+    textMenuProc,
+    0b11111111111111111111111111111101,
+    enabled,
+    "Edit",
+    {
+       "Undo",                 noicon, "Z",   nomark, plain,
+       "-",                    noicon, nokey, nomark, plain,
+       "Cut",                  noicon, "X",   nomark, plain,
+       "Copy",                 noicon, "C",   nomark, plain,
+       "Paste",                noicon, "V",   nomark, plain,
+       "Clear",                noicon, nokey, nomark, plain,
+       "Select All",           noicon, "A",   nomark, plain,
+    }
+};
+
 /* Fatal error box.  Stolen from the Finder. */
 
 resource 'ALRT' (wFatal, "fatalbox", purgeable) {
@@ -300,9 +404,9 @@ resource 'CNTL' (cVScroll, "vscroll", purgeable) {
 /* "About" box */
 
 resource 'DLOG' (wAbout, "about", purgeable) {
-    { 0, 0, 120, 186 },
+    { 0, 0, 120, 240 },
     noGrowDocProc,
-    visible,
+    invisible,
     goAway,
     wAbout,            /* RefCon -- identifies the window to PuTTY */
     wAbout,            /* DITL ID */
@@ -318,13 +422,13 @@ resource 'dlgx' (wAbout, "about", purgeable) {
 
 resource 'DITL' (wAbout, "about", purgeable) {
     {
-       { 87, 13, 107, 173 },
+       { 87, 13, 107, 227 },
        Button { enabled, "View Licence" },
-       { 13, 13, 29, 173 },
+       { 13, 13, 29, 227 },
        StaticText { disabled, "PuTTY"},
-       { 42, 13, 74, 173 },
-       StaticText { disabled, "Experimental Mac Port\n"
-                              "© 1997-9 Simon Tatham"},
+       { 42, 13, 74, 227 },
+       StaticText { disabled, "Some version or other\n"
+                              "Copyright © 1997-9 Simon Tatham"},
     }
 };
 
@@ -346,8 +450,10 @@ type 'TEXT' {
 
 resource 'TEXT' (wLicence, "licence", purgeable) {
     "Copyright © 1997-9 Simon Tatham\n"
-    "Portions copyright Gary S. Brown and Eric Young\n\n"
-    
+    "Portions copyright © 1999 Ben Harris\n"
+    "Portions copyright © 1993 Eric Young\n"
+    "Portions copyright © 1986 Gary S. Brown\n"
+    "\n"    
     "Permission is hereby granted, free of charge, to any person "
     "obtaining a copy of this software and associated documentation "
     "files (the \"Software\"), to deal in the Software without "
@@ -412,6 +518,9 @@ type 'pSET' {
     /* Colour options */
     boolean bold_font, bold_colour;
     align long;
+    /* Selection options */
+    boolean no_implicit_copy, implicit_copy;
+    align long;
     /* Non-boolean options */
     integer; integer;          /* host */
     longint;                   /* port */
@@ -427,6 +536,7 @@ type 'pSET' {
     longint;                   /* font_height */
     integer;                   /* 'pltt' for colours */
     integer;                   /* 'wORD' for wordness */
+    integer;                   /* meta modifiers */
 };
 
 resource 'pSET' (PREF_settings, "settings", purgeable) {
@@ -442,7 +552,8 @@ resource 'pSET' (PREF_settings, "settings", purgeable) {
     auto_wrap,
     no_auto_cr,
     use_icon_name,
-    bold_colour,
+    bold_font,
+    no_implicit_copy,
 #define PREF_strings 1024
     PREF_strings, 1,           /* host 'STR#' */
     23, prot_telnet,           /* port, protocol */
@@ -457,6 +568,7 @@ resource 'pSET' (PREF_settings, "settings", purgeable) {
     PREF_pltt,                 /* colours 'pltt' */
 #define PREF_wordness 1024
     PREF_wordness,             /* wordness 'wORD */
+    0x900,                     /* meta modifiers (cmd+option) */
 };
 
 resource 'STR#' (PREF_strings, "strings", purgeable) {
@@ -540,10 +652,21 @@ resource 'TMPL' (128, "pSET") {
        "", 'BBIT',
        "", 'BBIT',
        "", 'ALNG',
+       "Implicit copy", 'BBIT',
+       "", 'BBIT',
+       "", 'BBIT',
+       "", 'BBIT',
+       "", 'BBIT',
+       "", 'BBIT',
+       "", 'BBIT',
+       "", 'BBIT',
+       "", 'ALNG',
        "Host STR# ID", 'DWRD',
        "Host STR# index", 'DWRD',
        "Port", 'DLNG',
        "Protocol", 'DLNG',
+       "Termtype STR# ID", 'DWRD',
+       "Termtype STR# index", 'DWRD',
        "Termspeed STR# ID", 'DWRD',
        "Termspeed STR# index", 'DWRD',
        "Environ STR# ID", 'DWRD',
@@ -558,35 +681,78 @@ resource 'TMPL' (128, "pSET") {
        "Font size", 'DLNG',
        "pltt ID", 'DWRD',
        "wORD ID", 'DWRD',
+       "meta modifiers", 'HWRD',
     };
 };
 
+
+/*
+ * *mutter*  It might be nice if Apple could actually put all the flags in
+ * Palettes.r.
+ */
+
+#define pmCourteous    0x0000
+#define pmDithered     0x0001
+#define pmTolerant     0x0002
+#define pmAnimated     0x0004
+#define pmExplicit     0x0008
+#define pmWhite                0x0010
+#define pmBlack                0x0020
+#define pmInhibitG2    0x0100
+#define pmInhibitC2    0x0200
+#define pmInhibitG4    0x0400
+#define pmInhibitC4    0x0800
+#define pmInhibitG8    0x1000
+#define pmInhibitC8    0x2000
+
+#define PM_BASIC (pmTolerant | pmInhibitG4 | pmInhibitG8)
+#define PM_NORMAL (PM_BASIC | pmInhibitG2 | pmInhibitC2)
+
 resource 'pltt' (PREF_pltt, purgeable) {
     {
-       0x0000, 0x0000, 0x0000, pmTolerant, 0x2000,     /* black */
-       0x5555, 0x5555, 0x5555, pmTolerant, 0x2000,     /* bright black */
-       0xbbbb, 0x0000, 0x0000, pmTolerant, 0x2000,     /* red */
-       0xffff, 0x5555, 0x5555, pmTolerant, 0x2000,     /* bright red */
-       0x0000, 0xbbbb, 0x0000, pmTolerant, 0x2000,     /* green */
-       0x5555, 0xffff, 0x5555, pmTolerant, 0x2000,     /* bright green */
-       0xbbbb, 0xbbbb, 0x0000, pmTolerant, 0x2000,     /* yellow */
-       0xffff, 0xffff, 0x0000, pmTolerant, 0x2000,     /* bright yellow */
-       0x0000, 0x0000, 0xbbbb, pmTolerant, 0x2000,     /* blue */
-       0x5555, 0x5555, 0xffff, pmTolerant, 0x2000,     /* bright blue */
-       0xbbbb, 0x0000, 0xbbbb, pmTolerant, 0x2000,     /* magenta */
-       0xffff, 0x5555, 0xffff, pmTolerant, 0x2000,     /* bright magenta */
-       0x0000, 0xbbbb, 0xbbbb, pmTolerant, 0x2000,     /* cyan */
-       0x5555, 0xffff, 0xffff, pmTolerant, 0x2000,     /* bright cyan */
-       0xbbbb, 0xbbbb, 0xbbbb, pmTolerant, 0x2000,     /* white */
-       0xffff, 0xffff, 0xffff, pmTolerant, 0x2000,     /* bright white */
-       0xbbbb, 0xbbbb, 0xbbbb, pmTolerant, 0x2000,     /* default fg */
-       0xffff, 0xffff, 0xffff, pmTolerant, 0x2000,     /* default bold fg */
-       0x0000, 0x0000, 0x0000, pmTolerant, 0x2000,     /* default bg */
-       0x5555, 0x5555, 0x5555, pmTolerant, 0x2000,     /* default bold bg */
-       0x0000, 0x0000, 0x0000, pmTolerant, 0x2000,     /* cursor bg */
-       0x0000, 0x0000, 0x0000, pmTolerant, 0x2000,     /* bold cursor bg */
-       0x0000, 0xffff, 0x0000, pmTolerant, 0x2000,     /* cursor fg */
-       0x0000, 0xffff, 0x0000, pmTolerant, 0x2000,     /* bold cursor fg */
+       0x0000, 0x0000, 0x0000, PM_NORMAL, 0x2000,      /* black */
+       0x5555, 0x5555, 0x5555, PM_NORMAL, 0x2000,      /* bright black */
+       0xbbbb, 0x0000, 0x0000, PM_NORMAL, 0x2000,      /* red */
+       0xffff, 0x5555, 0x5555, PM_NORMAL, 0x2000,      /* bright red */
+       0x0000, 0xbbbb, 0x0000, PM_NORMAL, 0x2000,      /* green */
+       0x5555, 0xffff, 0x5555, PM_NORMAL, 0x2000,      /* bright green */
+       0xbbbb, 0xbbbb, 0x0000, PM_NORMAL, 0x2000,      /* yellow */
+       0xffff, 0xffff, 0x0000, PM_NORMAL, 0x2000,      /* bright yellow */
+       0x0000, 0x0000, 0xbbbb, PM_NORMAL, 0x2000,      /* blue */
+       0x5555, 0x5555, 0xffff, PM_NORMAL, 0x2000,      /* bright blue */
+       0xbbbb, 0x0000, 0xbbbb, PM_NORMAL, 0x2000,      /* magenta */
+       0xffff, 0x5555, 0xffff, PM_NORMAL, 0x2000,      /* bright magenta */
+       0x0000, 0xbbbb, 0xbbbb, PM_NORMAL, 0x2000,      /* cyan */
+       0x5555, 0xffff, 0xffff, PM_NORMAL, 0x2000,      /* bright cyan */
+       0xbbbb, 0xbbbb, 0xbbbb, PM_NORMAL, 0x2000,      /* white */
+       0xffff, 0xffff, 0xffff, PM_NORMAL, 0x2000,      /* bright white */
+       0xbbbb, 0xbbbb, 0xbbbb, PM_BASIC,  0x2000,      /* default fg */
+       0xffff, 0xffff, 0xffff, PM_BASIC,  0x2000,      /* default bold fg */
+       0x0000, 0x0000, 0x0000, PM_BASIC,  0x2000,      /* default bg */
+       0x5555, 0x5555, 0x5555, PM_NORMAL, 0x2000,      /* default bold bg */
+       0x0000, 0x0000, 0x0000, PM_NORMAL, 0x2000,      /* cursor bg */
+       0x0000, 0x0000, 0x0000, PM_NORMAL, 0x2000,      /* bold cursor bg */
+       0x0000, 0xffff, 0x0000, PM_BASIC,  0x2000,      /* cursor fg */
+       0x0000, 0xffff, 0x0000, PM_NORMAL, 0x2000,      /* bold cursor fg */
     }
 };
 
+read 'pTST' (128, "test data", purgeable) "fragment";
+
+type 'pMAP' {
+    hex string;
+};
+
+resource 'pMAP' (128, "Latin-1 G1 -> Mac OS Roman") {
+    $"20 c1 a2 a3 db b4 00 a4 ac a9 bb c7 c2 00 a8 f8"
+    $"a1 b1 00 00 ab b5 a6 e1 fc 00 bc c8 00 00 00 c0"
+    $"cb e7 e5 cc 80 81 ae 82 e9 83 e6 e8 ed ea eb ec"
+    $"00 84 f1 ee ef cd 85 00 af f4 f2 f3 86 00 00 a7"
+    $"88 87 89 8b 8a 8c be 8d 8f 8e 90 91 93 92 94 95"
+    $"00 96 98 97 99 9b 9a d6 bf 9d 9c 9e 9f 00 00 D8"
+};
+
+resource 'pMAP' (129, "DEC line drawing -> Mac OS VT100") {
+    $"d7 bd 09 0c 0d 0a a1 b1 00 0b d2 d3 d4 d5 da e2"
+    $"e3 e4 f5 f6 f7 f8 f9 fa fb b2 b3 b9 ad a3 e1"
+};
\ No newline at end of file