Define some more function keys in the keymap: panic, lshifta, rshifta, etc.
This commit is contained in:
parent
8d8a5c1ed9
commit
52990a39d0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54380
@ -163,6 +163,13 @@ typedef struct keymap keymap_t;
|
||||
|
||||
#define STBY 0x98 /* Go into standby mode (apm) */
|
||||
#define PREV 0x99 /* switch to previous screen */
|
||||
#define PNC 0x9a /* force system panic */
|
||||
#define LSHA 0x9b /* left shift key / alt lock */
|
||||
#define RSHA 0x9c /* right shift key / alt lock */
|
||||
#define LCTRA 0x9d /* left ctrl key / alt lock */
|
||||
#define RCTRA 0x9e /* right ctrl key / alt lock */
|
||||
#define LALTA 0x9f /* left alt key / alt lock */
|
||||
#define RALTA 0xa0 /* right alt key / alt lock */
|
||||
|
||||
#define F(x) ((x)+F_FN-1)
|
||||
#define S(x) ((x)+F_SCR-1)
|
||||
|
@ -183,6 +183,20 @@ get_entry()
|
||||
return SUSP | 0x100;
|
||||
case TSPSC:
|
||||
return SPSC | 0x100;
|
||||
case TPANIC:
|
||||
return PNC | 0x100;
|
||||
case TLSHA:
|
||||
return LSHA | 0x100;
|
||||
case TRSHA:
|
||||
return RSHA | 0x100;
|
||||
case TLCTRA:
|
||||
return LCTRA | 0x100;
|
||||
case TRCTRA:
|
||||
return RCTRA | 0x100;
|
||||
case TLALTA:
|
||||
return LALTA | 0x100;
|
||||
case TRALTA:
|
||||
return RALTA | 0x100;
|
||||
case TACC:
|
||||
if (ACC(number) > L_ACC)
|
||||
return -1;
|
||||
@ -393,6 +407,27 @@ print_entry(FILE *fp, int value)
|
||||
case SPSC | 0x100:
|
||||
fprintf(fp, " saver ");
|
||||
break;
|
||||
case PNC | 0x100:
|
||||
fprintf(fp, " panic ");
|
||||
break;
|
||||
case LSHA | 0x100:
|
||||
fprintf(fp, " lshifta");
|
||||
break;
|
||||
case RSHA | 0x100:
|
||||
fprintf(fp, " rshifta");
|
||||
break;
|
||||
case LCTRA | 0x100:
|
||||
fprintf(fp, " lctrla");
|
||||
break;
|
||||
case RCTRA | 0x100:
|
||||
fprintf(fp, " rctrla");
|
||||
break;
|
||||
case LALTA | 0x100:
|
||||
fprintf(fp, " lalta ");
|
||||
break;
|
||||
case RALTA | 0x100:
|
||||
fprintf(fp, " ralta ");
|
||||
break;
|
||||
default:
|
||||
if (value & 0x100) {
|
||||
if (val >= F_FN && val <= L_FN)
|
||||
@ -565,6 +600,27 @@ dump_entry(int value)
|
||||
case SPSC:
|
||||
printf(" SPSC, ");
|
||||
break;
|
||||
case PNC:
|
||||
printf(" PNC, ");
|
||||
break;
|
||||
case LSHA:
|
||||
printf(" LSHA, ");
|
||||
break;
|
||||
case RSHA:
|
||||
printf(" RSHA, ");
|
||||
break;
|
||||
case LCTRA:
|
||||
printf("LCTRA, ");
|
||||
break;
|
||||
case RCTRA:
|
||||
printf("RCTRA, ");
|
||||
break;
|
||||
case LALTA:
|
||||
printf("LALTA, ");
|
||||
break;
|
||||
case RALTA:
|
||||
printf("RALTA, ");
|
||||
break;
|
||||
default:
|
||||
if (value >= F_FN && value <= L_FN)
|
||||
printf(" F(%2d),", value - F_FN + 1);
|
||||
|
@ -54,6 +54,13 @@
|
||||
#define TACC 279
|
||||
#define TSPSC 280
|
||||
#define TPREV 281
|
||||
#define TPANIC 282
|
||||
#define TLSHA 283
|
||||
#define TRSHA 284
|
||||
#define TLCTRA 285
|
||||
#define TRCTRA 286
|
||||
#define TLALTA 287
|
||||
#define TRALTA 288
|
||||
|
||||
extern int number;
|
||||
extern char letter;
|
||||
|
@ -61,6 +61,13 @@ boot { return TRBT; }
|
||||
debug { return TDBG; }
|
||||
susp { return TSUSP; }
|
||||
saver { return TSPSC; }
|
||||
panic { return TPANIC; }
|
||||
lshifta|shifta { return TLSHA; }
|
||||
rshifta { return TRSHA; }
|
||||
lctrla|ctrla { return TLCTRA; }
|
||||
rctrla { return TRCTRA; }
|
||||
lalta|alta { return TLALTA; }
|
||||
ralta { return TRALTA; }
|
||||
|
||||
NUL|nul { number = 0; return TNUM; }
|
||||
SOH|soh { number = 1; return TNUM; }
|
||||
|
Loading…
Reference in New Issue
Block a user