Also handle new 'fixterms' spec CSI codepoint;modifiers u encoding

This commit is contained in:
Paul LeoNerd Evans 2011-05-09 16:43:05 +01:00
parent e90d8f45d7
commit 41e9e0d39e
1 changed files with 6 additions and 0 deletions

View File

@ -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;