|
@@ -192,101 +192,9 @@ extern unsigned short _LINES;
|
192
|
192
|
#define COLORS COLOURS
|
193
|
193
|
|
194
|
194
|
/*
|
195
|
|
- * KEY code constants
|
|
195
|
+ * KEY code constants are define in gpxe/keys.h
|
196
|
196
|
*/
|
197
|
|
-#define KEY_MIN 0401 /**< Minimum special key */
|
198
|
|
-#define KEY_BREAK 0401 /**< Break key */
|
199
|
|
-#define KEY_DOWN 0402 /**< down-arrow key */
|
200
|
|
-#define KEY_UP 0403 /**< up-arrow key */
|
201
|
|
-#define KEY_LEFT 0404 /**< left-arrow key */
|
202
|
|
-#define KEY_RIGHT 0405 /**< right-arrow key */
|
203
|
|
-#define KEY_HOME 0406 /**< home key */
|
204
|
|
-#define KEY_BACKSPACE 0407 /**< backspace key */
|
205
|
|
-#define KEY_F0 0410 /**< Function keys. Space for 64 */
|
206
|
|
-#define KEY_F(n) (KEY_F0+(n)) /**< Value of function key n */
|
207
|
|
-#define KEY_DL 0510 /**< delete-line key */
|
208
|
|
-#define KEY_IL 0511 /**< insert-line key */
|
209
|
|
-#define KEY_DC 0512 /**< delete-character key */
|
210
|
|
-#define KEY_IC 0513 /**< insert-character key */
|
211
|
|
-#define KEY_EIC 0514 /**< sent by rmir or smir in insert mode */
|
212
|
|
-#define KEY_CLEAR 0515 /**< clear-screen or erase key */
|
213
|
|
-#define KEY_EOS 0516 /**< clear-to-end-of-screen key */
|
214
|
|
-#define KEY_EOL 0517 /**< clear-to-end-of-line key */
|
215
|
|
-#define KEY_SF 0520 /**< scroll-forward key */
|
216
|
|
-#define KEY_SR 0521 /**< scroll-backward key */
|
217
|
|
-#define KEY_NPAGE 0522 /**< next-page key */
|
218
|
|
-#define KEY_PPAGE 0523 /**< previous-page key */
|
219
|
|
-#define KEY_STAB 0524 /**< set-tab key */
|
220
|
|
-#define KEY_CTAB 0525 /**< clear-tab key */
|
221
|
|
-#define KEY_CATAB 0526 /**< clear-all-tabs key */
|
222
|
|
-#define KEY_ENTER 0527 /**< enter/send key */
|
223
|
|
-#define KEY_PRINT 0532 /**< print key */
|
224
|
|
-#define KEY_LL 0533 /**< lower-left key (home down) */
|
225
|
|
-#define KEY_A1 0534 /**< upper left of keypad */
|
226
|
|
-#define KEY_A3 0535 /**< upper right of keypad */
|
227
|
|
-#define KEY_B2 0536 /**< center of keypad */
|
228
|
|
-#define KEY_C1 0537 /**< lower left of keypad */
|
229
|
|
-#define KEY_C3 0540 /**< lower right of keypad */
|
230
|
|
-#define KEY_BTAB 0541 /**< back-tab key */
|
231
|
|
-#define KEY_BEG 0542 /**< begin key */
|
232
|
|
-#define KEY_CANCEL 0543 /**< cancel key */
|
233
|
|
-#define KEY_CLOSE 0544 /**< close key */
|
234
|
|
-#define KEY_COMMAND 0545 /**< command key */
|
235
|
|
-#define KEY_COPY 0546 /**< copy key */
|
236
|
|
-#define KEY_CREATE 0547 /**< create key */
|
237
|
|
-#define KEY_END 0550 /**< end key */
|
238
|
|
-#define KEY_EXIT 0551 /**< exit key */
|
239
|
|
-#define KEY_FIND 0552 /**< find key */
|
240
|
|
-#define KEY_HELP 0553 /**< help key */
|
241
|
|
-#define KEY_MARK 0554 /**< mark key */
|
242
|
|
-#define KEY_MESSAGE 0555 /**< message key */
|
243
|
|
-#define KEY_MOVE 0556 /**< move key */
|
244
|
|
-#define KEY_NEXT 0557 /**< next key */
|
245
|
|
-#define KEY_OPEN 0560 /**< open key */
|
246
|
|
-#define KEY_OPTIONS 0561 /**< options key */
|
247
|
|
-#define KEY_PREVIOUS 0562 /**< previous key */
|
248
|
|
-#define KEY_REDO 0563 /**< redo key */
|
249
|
|
-#define KEY_REFERENCE 0564 /**< reference key */
|
250
|
|
-#define KEY_REFRESH 0565 /**< refresh key */
|
251
|
|
-#define KEY_REPLACE 0566 /**< replace key */
|
252
|
|
-#define KEY_RESTART 0567 /**< restart key */
|
253
|
|
-#define KEY_RESUME 0570 /**< resume key */
|
254
|
|
-#define KEY_SAVE 0571 /**< save key */
|
255
|
|
-#define KEY_SBEG 0572 /**< shifted begin key */
|
256
|
|
-#define KEY_SCANCEL 0573 /**< shifted cancel key */
|
257
|
|
-#define KEY_SCOMMAND 0574 /**< shifted command key */
|
258
|
|
-#define KEY_SCOPY 0575 /**< shifted copy key */
|
259
|
|
-#define KEY_SCREATE 0576 /**< shifted create key */
|
260
|
|
-#define KEY_SDC 0577 /**< shifted delete-character key */
|
261
|
|
-#define KEY_SDL 0600 /**< shifted delete-line key */
|
262
|
|
-#define KEY_SELECT 0601 /**< select key */
|
263
|
|
-#define KEY_SEND 0602 /**< shifted end key */
|
264
|
|
-#define KEY_SEOL 0603 /**< shifted clear-to-end-of-line key */
|
265
|
|
-#define KEY_SEXIT 0604 /**< shifted exit key */
|
266
|
|
-#define KEY_SFIND 0605 /**< shifted find key */
|
267
|
|
-#define KEY_SHELP 0606 /**< shifted help key */
|
268
|
|
-#define KEY_SHOME 0607 /**< shifted home key */
|
269
|
|
-#define KEY_SIC 0610 /**< shifted insert-character key */
|
270
|
|
-#define KEY_SLEFT 0611 /**< shifted left-arrow key */
|
271
|
|
-#define KEY_SMESSAGE 0612 /**< shifted message key */
|
272
|
|
-#define KEY_SMOVE 0613 /**< shifted move key */
|
273
|
|
-#define KEY_SNEXT 0614 /**< shifted next key */
|
274
|
|
-#define KEY_SOPTIONS 0615 /**< shifted options key */
|
275
|
|
-#define KEY_SPREVIOUS 0616 /**< shifted previous key */
|
276
|
|
-#define KEY_SPRINT 0617 /**< shifted print key */
|
277
|
|
-#define KEY_SREDO 0620 /**< shifted redo key */
|
278
|
|
-#define KEY_SREPLACE 0621 /**< shifted replace key */
|
279
|
|
-#define KEY_SRIGHT 0622 /**< shifted right-arrow key */
|
280
|
|
-#define KEY_SRSUME 0623 /**< shifted resume key */
|
281
|
|
-#define KEY_SSAVE 0624 /**< shifted save key */
|
282
|
|
-#define KEY_SSUSPEND 0625 /**< shifted suspend key */
|
283
|
|
-#define KEY_SUNDO 0626 /**< shifted undo key */
|
284
|
|
-#define KEY_SUSPEND 0627 /**< suspend key */
|
285
|
|
-#define KEY_UNDO 0630 /**< undo key */
|
286
|
|
-#define KEY_RESIZE 0632 /**< Terminal resize event */
|
287
|
|
-#define KEY_EVENT 0633 /**< We were interrupted by an event */
|
288
|
|
-
|
289
|
|
-#define KEY_MAX 0777 /* Maximum key value is 0633 */
|
|
197
|
+#include <gpxe/keys.h>
|
290
|
198
|
|
291
|
199
|
//extern int addch ( const chtype * );
|
292
|
200
|
//extern int addchnstr ( const chtype *, int );
|