diff options
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/kbdcontrol/kbdcontrol.c | 16 | ||||
-rw-r--r-- | usr.sbin/kbdcontrol/lex.h | 2 | ||||
-rw-r--r-- | usr.sbin/kbdcontrol/lex.l | 2 |
3 files changed, 20 insertions, 0 deletions
diff --git a/usr.sbin/kbdcontrol/kbdcontrol.c b/usr.sbin/kbdcontrol/kbdcontrol.c index efe4c07..1349686 100644 --- a/usr.sbin/kbdcontrol/kbdcontrol.c +++ b/usr.sbin/kbdcontrol/kbdcontrol.c @@ -197,6 +197,10 @@ get_entry() return LALTA | 0x100; case TRALTA: return RALTA | 0x100; + case THALT: + return HALT | 0x100; + case TPDWN: + return PDWN | 0x100; case TACC: if (ACC(number) > L_ACC) return -1; @@ -428,6 +432,12 @@ print_entry(FILE *fp, int value) case RALTA | 0x100: fprintf(fp, " ralta "); break; + case HALT | 0x100: + fprintf(fp, " halt "); + break; + case PDWN | 0x100: + fprintf(fp, " pdwn "); + break; default: if (value & 0x100) { if (val >= F_FN && val <= L_FN) @@ -621,6 +631,12 @@ dump_entry(int value) case RALTA: printf("RALTA, "); break; + case HALT: + printf(" HALT, "); + break; + case PDWN: + printf(" PDWN, "); + break; default: if (value >= F_FN && value <= L_FN) printf(" F(%2d),", value - F_FN + 1); diff --git a/usr.sbin/kbdcontrol/lex.h b/usr.sbin/kbdcontrol/lex.h index 251b1c9..f3dff10 100644 --- a/usr.sbin/kbdcontrol/lex.h +++ b/usr.sbin/kbdcontrol/lex.h @@ -61,6 +61,8 @@ #define TRCTRA 286 #define TLALTA 287 #define TRALTA 288 +#define THALT 289 +#define TPDWN 290 extern int number; extern char letter; diff --git a/usr.sbin/kbdcontrol/lex.l b/usr.sbin/kbdcontrol/lex.l index db37658..81314d4 100644 --- a/usr.sbin/kbdcontrol/lex.l +++ b/usr.sbin/kbdcontrol/lex.l @@ -68,6 +68,8 @@ lctrla|ctrla { return TLCTRA; } rctrla { return TRCTRA; } lalta|alta { return TLALTA; } ralta { return TRALTA; } +halt { return THALT; } +pdwn { return TPDWN; } NUL|nul { number = 0; return TNUM; } SOH|soh { number = 1; return TNUM; } |