aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-05-09 16:43:05 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-05-09 16:43:05 +0100
commit41e9e0d39ef00e651cf79e9be9832c099fbad5d8 (patch)
treead061610c4200ffb16e033e519c88ff9bab868de
parente90d8f45d7133270c26c6cb8be7403966396ffbe (diff)
downloadtermo-41e9e0d39ef00e651cf79e9be9832c099fbad5d8.tar.gz
termo-41e9e0d39ef00e651cf79e9be9832c099fbad5d8.tar.xz
termo-41e9e0d39ef00e651cf79e9be9832c099fbad5d8.zip
Also handle new 'fixterms' spec CSI codepoint;modifiers u encoding
-rw-r--r--driver-csi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/driver-csi.c b/driver-csi.c
index e1f63b2..05019cc 100644
--- a/driver-csi.c
+++ b/driver-csi.c
@@ -235,6 +235,12 @@ static TermKeyResult peekkey_csi(TermKey *tk, TermKeyCsi *csi, size_t introlen,
return TERMKEY_RES_NONE;
}
}
+ else if(cmd == 'u') {
+ int mod = key->modifiers;
+ key->type = TERMKEY_TYPE_KEYSYM;
+ (*tk->method.emit_codepoint)(tk, arg[0], key);
+ key->modifiers |= mod;
+ }
else if(cmd == 'M') {
size_t csi_len = csi_end + 1;