annotate lisp/term/pc-win.el @ 15899:4ee67c1476f4

Generate src/paths.h here.
author Richard M. Stallman <rms@gnu.org>
date Thu, 22 Aug 1996 19:29:12 +0000
parents f95592fcdb1c
children 734b72203ac5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
1 ;; pc-win.el -- setup support for `PC windows' (whatever that is).
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
2
14734
20f4c4a078b2 Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 14520
diff changeset
3 ;; Copyright (C) 1994, 1996 Free Software Foundation, Inc.
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
4
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
5 ;; Author: Morten Welinder <terra@diku.dk>
14734
20f4c4a078b2 Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 14520
diff changeset
6 ;; Maintainer: FSF
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
7
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
8 ;; This file is part of GNU Emacs.
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
9
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
13 ;; any later version.
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
14
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
18 ;; GNU General Public License for more details.
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
19
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
14170
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 14040
diff changeset
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 14040
diff changeset
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 14040
diff changeset
23 ;; Boston, MA 02111-1307, USA.
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 14040
diff changeset
24
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 14040
diff changeset
25 ;;; Code:
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 14040
diff changeset
26
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
27 (load "term/internal" nil t)
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
28
15315
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
29 ;; Color translation -- doesn't really need to be fast.
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
30 ;; Colors listed here do not include the "light-",
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
31 ;; "medium-" and "dark-" prefixes that are accounted for
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
32 ;; by `msdos-color-translate', which see below).
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
33
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
34 (defvar msdos-color-aliases
15315
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
35 '(("snow" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
36 ("ghost white" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
37 ("ghostwhite" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
38 ("white smoke" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
39 ("whitesmoke" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
40 ("gainsboro" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
41 ("floral white" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
42 ("floralwhite" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
43 ("old lace" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
44 ("oldlace" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
45 ("linen" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
46 ("antique white" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
47 ("antiquewhite" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
48 ("papaya whip" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
49 ("papayawhip" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
50 ("blanched almond" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
51 ("blanchedalmond" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
52 ("bisque" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
53 ("peach puff" . "lightred")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
54 ("peachpuff" . "lightred")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
55 ("navajo white" . "lightred")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
56 ("navajowhite" . "lightred")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
57 ("moccasin" . "lightred")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
58 ("cornsilk" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
59 ("ivory" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
60 ("lemon chiffon" . "yellow")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
61 ("lemonchiffon" . "yellow")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
62 ("seashell" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
63 ("honeydew" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
64 ("mint cream" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
65 ("mintcream" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
66 ("azure" . "lightcyan")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
67 ("alice blue" . "lightcyan")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
68 ("aliceblue" . "lightcyan")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
69 ("lavender" . "lightcyan")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
70 ("lavender blush" . "lightcyan")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
71 ("lavenderblush" . "lightcyan")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
72 ("misty rose" . "lightred")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
73 ("mistyrose" . "lightred")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
74 ("aquamarine" . "blue")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
75 ("cadet blue" . "blue")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
76 ("cadetblue" . "blue")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
77 ("cornflower blue" . "lightblue")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
78 ("cornflowerblue" . "lightblue")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
79 ("midnight blue" . "blue")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
80 ("midnightblue" . "blue")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
81 ("navy blue" . "cyan")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
82 ("navyblue" . "cyan")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
83 ("navy" . "cyan")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
84 ("sky blue" . "lightblue")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
85 ("skyblue" . "lightblue")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
86 ("dodger blue" . "blue")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
87 ("dodgerblue" . "blue")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
88 ("powder blue" . "lightblue")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
89 ("powderblue" . "lightblue")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
90 ("slate blue" . "cyan")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
91 ("slateblue" . "cyan")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
92 ("steel blue" . "blue")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
93 ("steelblue" . "blue")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
94 ("coral" . "lightred")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
95 ("firebrick" . "red")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
96 ("gold" . "yellow")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
97 ("goldenrod" . "yellow")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
98 ("pale goldenrod" . "yellow")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
99 ("palegoldenrod" . "yellow")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
100 ("olive green" . "lightgreen")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
101 ("olivegreen" . "lightgreen")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
102 ("olive drab" . "green")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
103 ("olivedrab" . "green")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
104 ("forest green" . "green")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
105 ("forestgreen" . "green")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
106 ("lime green" . "lightgreen")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
107 ("limegreen" . "lightgreen")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
108 ("sea green" . "lightcyan")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
109 ("seagreen" . "lightcyan")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
110 ("spring green" . "green")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
111 ("springgreen" . "green")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
112 ("pale green" . "lightgreen")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
113 ("palegreen" . "lightgreen")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
114 ("lawn green" . "lightgreen")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
115 ("lawngreen" . "lightgreen")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
116 ("chartreuse" . "yellow")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
117 ("yellow green" . "lightgreen")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
118 ("yellowgreen" . "lightgreen")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
119 ("green yellow" . "lightgreen")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
120 ("greenyellow" . "lightgreen")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
121 ("slate grey" . "lightgray")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
122 ("slategrey" . "lightgray")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
123 ("slate gray" . "lightgray")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
124 ("slategray" . "lightgray")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
125 ("dim grey" . "darkgray")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
126 ("dimgrey" . "darkgray")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
127 ("dim gray" . "darkgray")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
128 ("dimgray" . "darkgray")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
129 ("light grey" . "lightgray")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
130 ("lightgrey" . "lightgray")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
131 ("light gray" . "lightgray")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
132 ("gray" . "darkgray")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
133 ("grey" . "darkgray")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
134 ("gray80" . "darkgray")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
135 ("gray50" . "black")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
136 ("gray90" . "darkgray")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
137 ("khaki" . "green")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
138 ("maroon" . "red")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
139 ("orange" . "brown")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
140 ("orchid" . "brown")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
141 ("saddle brown" . "red")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
142 ("saddlebrown" . "red")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
143 ("sienna" . "red")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
144 ("peru" . "red")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
145 ("pink" . "lightred")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
146 ("plum" . "magenta")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
147 ("indian red" . "red")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
148 ("indianred" . "red")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
149 ("violet red" . "magenta")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
150 ("violetred" . "magenta")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
151 ("orange red" . "red")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
152 ("orangered" . "red")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
153 ("salmon" . "lightred")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
154 ("sienna" . "lightred")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
155 ("tan" . "lightred")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
156 ("thistle" . "magenta")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
157 ("turquoise" . "lightgreen")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
158 ("pale turquoise" . "cyan")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
159 ("paleturquoise" . "cyan")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
160 ("violet" . "magenta")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
161 ("blue violet" . "lightmagenta")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
162 ("blueviolet" . "lightmagenta")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
163 ("wheat" . "white")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
164 ("green yellow" . "yellow")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
165 ("greenyellow" . "yellow")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
166 ("purple" . "magenta")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
167 ("royalblue" . "blue")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
168 ("grey40" . "darkgray")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
169 ("rosybrown" . "brown")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
170 ("rosy brown" . "brown")
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
171 ("beige" . "brown"))
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
172 "List of alternate names for colors.")
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
173
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
174 (defun msdos-color-translate (name)
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
175 (setq name (downcase name))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
176 (let* ((len (length name))
13924
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
177 (val (- (length x-colors)
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
178 (length (member name x-colors))))
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
179 (try))
13924
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
180 (if (or (< val 0) (>= val (length x-colors))) (setq val nil))
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
181 (or val
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
182 (and (setq try (cdr (assoc name msdos-color-aliases)))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
183 (msdos-color-translate try))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
184 (and (> len 5)
15315
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
185 (string= "light" (substring name 0 5))
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
186 (setq try (msdos-color-translate (substring name 5)))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
187 (logior try 8))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
188 (and (> len 6)
15315
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
189 (string= "light " (substring name 0 6))
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
190 (setq try (msdos-color-translate (substring name 6)))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
191 (logior try 8))
15315
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
192 (and (> len 6)
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
193 (string= "medium" (substring name 0 6))
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
194 (msdos-color-translate (substring name 6)))
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
195 (and (> len 7)
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
196 (string= "medium " (substring name 0 7))
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
197 (msdos-color-translate (substring name 7)))
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
198 (and (> len 4)
15315
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
199 (string= "dark" (substring name 0 4))
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
200 (msdos-color-translate (substring name 4)))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
201 (and (> len 5)
15315
d46311cef590 (msdos-color-aliases): Define more colors. (msdos-color-translate):
Richard M. Stallman <rms@gnu.org>
parents: 14734
diff changeset
202 (string= "dark " (substring name 0 5))
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
203 (msdos-color-translate (substring name 5))))))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
204 ;; ---------------------------------------------------------------------------
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
205 ;; We want to delay setting frame parameters until the faces are setup
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
206 (defvar default-frame-alist nil)
15397
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
207 (modify-frame-parameters terminal-frame default-frame-alist)
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
208
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
209 (defun msdos-face-setup ()
15397
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
210 (modify-frame-parameters terminal-frame default-frame-alist)
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
211
15397
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
212 (set-face-foreground 'bold "yellow" terminal-frame)
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
213 (set-face-foreground 'italic "red" terminal-frame)
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
214 (set-face-foreground 'bold-italic "lightred" terminal-frame)
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
215 (set-face-foreground 'underline "white" terminal-frame)
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
216 (set-face-background 'region "green" terminal-frame)
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
217
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
218 (make-face 'msdos-menu-active-face)
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
219 (make-face 'msdos-menu-passive-face)
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
220 (make-face 'msdos-menu-select-face)
15397
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
221 (set-face-foreground 'msdos-menu-active-face "white" terminal-frame)
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
222 (set-face-foreground 'msdos-menu-passive-face "lightgray" terminal-frame)
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
223 (set-face-background 'msdos-menu-active-face "blue" terminal-frame)
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
224 (set-face-background 'msdos-menu-passive-face "blue" terminal-frame)
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
225 (set-face-background 'msdos-menu-select-face "red" terminal-frame))
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
226
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
227 ;; We have only one font, so...
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
228 (add-hook 'before-init-hook 'msdos-face-setup)
15397
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
229
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
230 ;; We create frames as if we were a terminal, but with a twist.
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
231 (defun make-msdos-frame (&optional parameters)
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
232 (let ((parms
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
233 (append initial-frame-alist default-frame-alist parameters nil)))
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
234 (make-terminal-frame parms)))
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
235
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
236 (setq frame-creation-function 'make-msdos-frame)
f95592fcdb1c (msdos-face-setup): Use `terminal-frame' for initial frame setup.
Richard M. Stallman <rms@gnu.org>
parents: 15315
diff changeset
237
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
238 ;; ---------------------------------------------------------------------------
14040
187735b53d52 Comment fixes.
Karl Heuer <kwzh@gnu.org>
parents: 13924
diff changeset
239 ;; More or less useful imitations of certain X-functions. A lot of the
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
240 ;; values returned are questionable, but usually only the form of the
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
241 ;; returned value matters. Also, by the way, recall that `ignore' is
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
242 ;; a useful function for returning 'nil regardless of argument.
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
243
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
244 ;; From src/xfns.c
13484
be831ed47a75 (x-display-color-p): Accept optional arg.
Richard M. Stallman <rms@gnu.org>
parents: 9571
diff changeset
245 (defun x-display-color-p (&optional display) 't)
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
246 (defun x-list-fonts (pattern &optional face frame) (list "default"))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
247 (defun x-color-defined-p (color) (numberp (msdos-color-translate color)))
14520
e46b1e676418 (x-display-pixel-height, x-display-pixel-width):
Richard M. Stallman <rms@gnu.org>
parents: 14170
diff changeset
248 (defun x-display-pixel-width (&optional frame) (frame-width frame))
e46b1e676418 (x-display-pixel-height, x-display-pixel-width):
Richard M. Stallman <rms@gnu.org>
parents: 14170
diff changeset
249 (defun x-display-pixel-height (&optional frame) (frame-height frame))
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
250 (defun x-display-planes (&optional frame) 4) ; 3 for background, actually
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
251 (defun x-display-color-cells (&optional frame) 16) ; ???
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
252 (defun x-server-max-request-size (&optional frame) 1000000) ; ???
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
253 (defun x-server-vendor (&optional frame) t "GNU")
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
254 (defun x-server-version (&optional frame) '(1 0 0))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
255 (defun x-display-screens (&optional frame) 1)
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
256 (defun x-display-mm-height (&optional frame) 200) ; Guess the size of my
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
257 (defun x-display-mm-width (&optional frame) 253) ; monitor, MW...
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
258 (defun x-display-backing-store (&optional frame) 'not-useful)
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
259 (defun x-display-visual-class (&optional frame) 'static-color)
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
260 (fset 'x-display-save-under 'ignore)
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
261 (fset 'x-get-resource 'ignore)
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
262
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
263 ;; From lisp/term/x-win.el
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
264 (setq x-display-name "pc")
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
265 (setq split-window-keep-point t)
13924
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
266 (defvar x-colors '("black"
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
267 "blue"
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
268 "green"
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
269 "cyan"
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
270 "red"
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
271 "magenta"
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
272 "brown"
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
273 "lightgray"
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
274 "darkgray"
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
275 "lightblue"
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
276 "lightgreen"
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
277 "lightcyan"
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
278 "lightred"
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
279 "lightmagenta"
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
280 "yellow"
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
281 "white")
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
282 "The list of colors available on a PC display under MS-DOS.")
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
283 (defun x-defined-colors (&optional frame)
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
284 "Return a list of colors supported for a particular frame.
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
285 The argument FRAME specifies which frame to try.
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
286 The value may be different for frames on different X displays."
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
287 x-colors)
36aa12b0ea6a (x-colors): New variable, a list of colors
Richard M. Stallman <rms@gnu.org>
parents: 13628
diff changeset
288 ;
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
289 ;; From lisp/select.el
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
290 (defun x-get-selection (&rest rest) "")
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
291 (fset 'x-set-selection 'ignore)
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
292
13628
6da84b713ae7 (msdos-color-aliases): Add more aliases.
Richard M. Stallman <rms@gnu.org>
parents: 13484
diff changeset
293 ;; From lisp/faces.el: we only have one font, so always return
6da84b713ae7 (msdos-color-aliases): Add more aliases.
Richard M. Stallman <rms@gnu.org>
parents: 13484
diff changeset
294 ;; it, no matter which variety they've asked for.
6da84b713ae7 (msdos-color-aliases): Add more aliases.
Richard M. Stallman <rms@gnu.org>
parents: 13484
diff changeset
295 (defun x-frob-font-slant (font which)
6da84b713ae7 (msdos-color-aliases): Add more aliases.
Richard M. Stallman <rms@gnu.org>
parents: 13484
diff changeset
296 font)
6da84b713ae7 (msdos-color-aliases): Add more aliases.
Richard M. Stallman <rms@gnu.org>
parents: 13484
diff changeset
297
9571
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
298 ;; From lisp/frame.el
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
299 (fset 'set-default-font 'ignore)
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
300 (fset 'set-mouse-color 'ignore) ; We cannot, I think.
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
301 (fset 'set-cursor-color 'ignore) ; Hardware determined by char under.
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
302 (fset 'set-border-color 'ignore) ; Not useful.
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
303 ;; ---------------------------------------------------------------------------
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
304 ;; Handle the X-like command line parameters "-fg" and "-bg"
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
305 (defun msdos-handle-args (args)
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
306 (let ((rest nil))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
307 (while args
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
308 (let ((this (car args)))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
309 (setq args (cdr args))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
310 (cond ((or (string= this "-fg") (string= this "-foreground"))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
311 (if args
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
312 (setq default-frame-alist
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
313 (cons (cons 'foreground-color (car args))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
314 default-frame-alist)
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
315 args (cdr args))))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
316 ((or (string= this "-bg") (string= this "-background"))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
317 (if args
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
318 (setq default-frame-alist
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
319 (cons (cons 'background-color (car args))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
320 default-frame-alist)
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
321 args (cdr args))))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
322 (t (setq rest (cons this rest))))))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
323 (nreverse rest)))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
324
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
325 (setq command-line-args (msdos-handle-args command-line-args))
b37425ecb3f0 Initial revision
Morten Welinder <terra@diku.dk>
parents:
diff changeset
326 ;; ---------------------------------------------------------------------------