diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-02-23 20:28:18 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-02-23 20:28:18 +0000 |
commit | 9dfd4f1116cf292d1ce6fa1d3946f41164c47f37 (patch) | |
tree | a9ea6eacf126e05d511aadec21f1e8724611af1a /termkey.c | |
parent | 46e53d124d03faedd11e99fdb0153d84ce174f99 (diff) | |
download | termo-9dfd4f1116cf292d1ce6fa1d3946f41164c47f37.tar.gz termo-9dfd4f1116cf292d1ce6fa1d3946f41164c47f37.tar.xz termo-9dfd4f1116cf292d1ce6fa1d3946f41164c47f37.zip |
Renamed describe_sym to get_keyname
Diffstat (limited to 'termkey.c')
-rw-r--r-- | termkey.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -720,17 +720,6 @@ termkey_result termkey_advisereadable(termkey_t *tk) } } -const char *termkey_describe_sym(termkey_t *tk, termkey_keysym code) -{ - if(code == TERMKEY_SYM_UNKNOWN) - return "UNKNOWN"; - - if(code < tk->nkeynames) - return tk->keynames[code]; - - return "UNKNOWN"; -} - termkey_keysym termkey_register_keyname(termkey_t *tk, termkey_keysym code, const char *name) { if(!code) @@ -752,6 +741,17 @@ termkey_keysym termkey_register_keyname(termkey_t *tk, termkey_keysym code, cons return code; } +const char *termkey_get_keyname(termkey_t *tk, termkey_keysym code) +{ + if(code == TERMKEY_SYM_UNKNOWN) + return "UNKNOWN"; + + if(code < tk->nkeynames) + return tk->keynames[code]; + + return "UNKNOWN"; +} + termkey_keysym termkey_register_c0(termkey_t *tk, termkey_keysym code, unsigned char ctrl, const char *name) { return termkey_register_c0_full(tk, code, 0, 0, ctrl, name); |