-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathWMEXDATA.C
309 lines (263 loc) · 8.03 KB
/
WMEXDATA.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
/*****************************************************************
* "Copyright (C) 1985, Digital Research, Inc. All Rights *
* Reserved. The Software Code contained in this listing is *
* proprietary to Digital Research Inc., Monterey, California *
* and is covered by U.S. and other copyright protection. *
* Unauthorized copying, adaptation, distribution, use or *
* display is prohibited and may be subject to civil and *
* criminal penalties. Disclosure to others is prohibited. For *
* the terms and conditions of software code use refer to the *
* appropriate Digital Research License Agreement." *
*****************************************************************/
/*===============================================================*
* Version 1.3 WMEXDATA.C *
* Configuration and Text data for WMEX.C *
* Window Manager. *
*---------------------------------------------------------------*
* VERSION DATE BY CHANGE/COMMENTS *
*---------------------------------------------------------------*
* *
* 1.3 02/11/86 ldt Modified STATUS MESSAGE window *
* descriptors mainly to allow 10 *
* lines of input to the WMEX mssg *
* pipe from a user. *
* 1.2 07/15/85 *
* *
*===============================================================*/
#include "portab.h"
#include "wmos.h"
#include "wmex.h"
/* text information */
/* name of module */
UBYTE wm0000[] =
"WMEX";
UBYTE wm0010 = 1; /* number of USRx windows to start up (1 - 6) */
/* DESK window information */
UBYTE wm0100 = 0x00; /* flags for attribute enable */
UBYTE wm0110 = ' '; /* fill value */
UBYTE wm0120 = 0x00; /* attribute value */
/* MESSAGE window text */
UBYTE wm0200[] = /* message window top border header */
"[ MESSAGE WINDOW ]";
UBYTE wm0205[] = /* no shell command, since no shell */
"";
UBYTE *wm0210[] = { /* array of HEADER lines */
"",
" Message from %1 on Screen %2:",
""
};
UBYTE wm0220[] = /* info line format string */
"%1";
UBYTE *wm0230[] = { /* array of MORE lines */
"" /* minimum is 1 line */
};
UBYTE *wm0240[] = { /* array of PROMPT lines */
"" /* NOTE: This is a placeholder, wm0260 CMD prompts used instead */
};
UBYTE *wm0250[] = { /* array of HELP lines */
"",
" Press <WINDOW> to delay answer."
};
UBYTE *wm0260[] = { /* array of CMD prompts */
" Enter response: ",
" Press Enter to acknowledge: "
};
UBYTE *wm0270[] = { /* array of CMD help info */
" An invalid command was selected."
};
UBYTE wm0299[] =
" %1 - - Active Message Window";
/* STATUS window text */
UBYTE wm0300[] = /* status window top border header */
"[ STATUS WINDOW ]";
UBYTE wm0305[] = /* no shell command, since no shell */
"";
UBYTE *wm0310[] = { /* array of HEADER lines */
"",
" WNDW# FMYID PROCESS ID COMMAND LINE ",
" ===== ===== ========== =================="
};
UBYTE wm0320[] = /* info line format string */
" %1 %2 %3 %4";
UBYTE *wm0330[] = { /* array of MORE lines */
" ... more ... (type M to see more)"
};
UBYTE *wm0340[] = { /* array of PROMPT lines */
"Command ? ",
};
UBYTE *wm0350[] = { /* array of HELP lines */
"=========================================\
========================================",
"",
" Commands:",
" C - CREATE Screen",
" D - DELETE Screen",
" <HELP> - HELP INFORMATION",
" <number> - Screen number to select",
""
};
UBYTE *wm0360[] = { /* array of CMD prompts */
"", /* general */
"", /* number */
"", /* create */
"Select a Window Number to Delete: ", /* delete */
"", /* more */
"", /* help */
"", /* previous */
"" /* next */
};
UBYTE *wm0370[] = { /* array of CMD help info */
"An invalid command was selected.",
"The screen number was out of range, or not active.",
"The maximum numbers of screens have been created.",
"The screen number was out of range, or not active.",
"",
"The Message window already contains an active message.",
"",
""
};
/* USR1 window information */
UBYTE wm0400[] =
"[ USER SCREEN #1 ]";
UBYTE wm0405[] = /* shell command line */
"home:autoexec.bat";
/* USR2 window information */
UBYTE wm0500[] =
"[ USER SCREEN #2 ]";
UBYTE wm0505[] = /* shell command line */
"home:autoexec.bat";
/* USR3 window information */
UBYTE wm0600[] =
"[ USER SCREEN #3 ]";
UBYTE wm0605[] = /* shell command line */
"home:autoexec.bat";
/* USR4 window information */
UBYTE wm0700[] =
"[ USER SCREEN #4 ]";
UBYTE wm0705[] = /* shell command line */
"home:autoexec.bat";
/* USR5 window information */
UBYTE wm0800[] =
"[ USER SCREEN #5 ]";
UBYTE wm0805[] = /* shell command line */
"home:autoexec.bat";
/* USR6 window information */
UBYTE wm0900[] =
"[ USER SCREEN #6 ]";
UBYTE wm0905[] = /* shell command line */
"home:autoexec.bat";
/* Error help prompt */
UBYTE wm1000[] =
"Press any key to continue: ";
/* STAT window HELP info */
UBYTE wm2000 = 7; /* number of lines of HELP info */
UBYTE *wm2001[] = {
"\r\n",
" After selecting a window, the <PREV>, <NEXT>\r\n",
" and <WINDOW> keys can be used as follows:\r\n",
"\r\n",
" <PREV> select the next lower Window Number\r\n",
" <NEXT> select the next higher Window Number\r\n",
" <WINDOW> return to the Status Window\r\n"
};
/* configuration data */
/* descriptor for MESSAGE window */
WNDWDESC wd_mssg =
{
19, 40, 21, 0, 0, 0,
(W_BORDERS|W_INTERNF|W_PMPTHLP),
' ', '=', '=', '#', '#',
0x00, 0x00,
wm0200, wm0205
};
/* descriptor for STATUS window */
WNDWDESC wd_stat =
{
19, 40, 21, 0, 0, 0,
(W_BORDERS|W_INTERNF),
' ', '=', '=', '#', '#',
0x00, 0x00,
wm0300, wm0305
};
/* descriptor for USR1 window */
WNDWDESC wd_usr1 =
{
1, 1, 0, 0, 0, 0,
0,
' ', ' ', ' ', ' ', ' ',
0, 0,
wm0400, wm0405
};
/* descriptor for USR2 window */
WNDWDESC wd_usr2 =
{
1, 1, 0, 0, 0, 0,
0,
' ', ' ', ' ', ' ', ' ',
0, 0,
wm0500, wm0505
};
/* descriptor for USR3 window */
WNDWDESC wd_usr3 =
{
1, 1, 0, 0, 0, 0,
0,
' ', ' ', ' ', ' ', ' ',
0, 0,
wm0600, wm0605
};
/* descriptor for USR4 window */
WNDWDESC wd_usr4 =
{
1, 1, 0, 0, 0, 0,
0,
' ', ' ', ' ', ' ', ' ',
0, 0,
wm0700, wm0705
};
/* descriptor for USR5 window */
WNDWDESC wd_usr5 =
{
1, 1, 0, 0, 0, 0,
0,
' ', ' ', ' ', ' ', ' ',
0, 0,
wm0800, wm0805
};
/* descriptor for USR6 window */
WNDWDESC wd_usr6 =
{
1, 1, 0, 0, 0, 0,
0,
' ', ' ', ' ', ' ', ' ',
0, 0,
wm0900, wm0905
};
/* SPECial items for defined windows */
/* NOTE: numbers in 1st column below should total the RMIN */
/* value in the associated WNDWDESC table. If BORDERS are */
/* enabled for this window then add two (2) more to total */
/* below to account for them. */
/* descriptor for MESSAGE window */
WNDWSPEC ws_mssg =
{
3, wm0210,
10, 0, wm0220,
1, wm0230,
1, wm0240,
2, wm0250,
wm0260,
wm0270
};
/* descriptor for STATUS window */
WNDWSPEC ws_stat =
{
3, wm0310,
4, 0, wm0320,
1, wm0330,
1, wm0340,
8, wm0350,
wm0360,
wm0370
};
/* */