summaryrefslogtreecommitdiff
path: root/fbcon.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2006-10-03 03:32:52 +0000
committerRich Felker <dalias@aerifal.cx>2006-10-03 03:32:52 +0000
commit52acab855e8ab1d668e03bd03e371904b0fc232c (patch)
tree66df118b90be5e0dc39b85b7296caf3bc789429b /fbcon.c
parent0fe28fd69dd15006ccd684d563699420aadde61a (diff)
make alt+special keys work
Diffstat (limited to 'fbcon.c')
-rw-r--r--fbcon.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fbcon.c b/fbcon.c
index 6d6bfa9..dd6a074 100644
--- a/fbcon.c
+++ b/fbcon.c
@@ -106,6 +106,7 @@ static int mapkey(unsigned *m, unsigned k, unsigned char *s)
int i = 0;
k &= 0x7f;
+ if (*m & 4) s[i++] = '\033';
if (k < sizeof(keymap)) {
c = keymap[k];
if (c-0200 < 6) {
@@ -121,9 +122,6 @@ static int mapkey(unsigned *m, unsigned k, unsigned char *s)
//if (c >= '@') c &= 0x1f;
//else if (keymap_sh[k] >= '@') c = keymap_sh[k] & 0x1f;
}
- if (*m & 4) {
- s[i++] = '\033';
- }
s[i++] = c;
return i;
}