aboutsummaryrefslogtreecommitdiff
path: root/termkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'termkey.c')
-rw-r--r--termkey.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/termkey.c b/termkey.c
index bfd577f..81b5133 100644
--- a/termkey.c
+++ b/termkey.c
@@ -935,8 +935,14 @@ static TermKeySym register_c0_full(TermKey *tk, TermKeySym sym, int modifier_set
return sym;
}
+/* Previous name for this function */
size_t termkey_snprint_key(TermKey *tk, char *buffer, size_t len, TermKeyKey *key, TermKeyFormat format)
{
+ return termkey_strfkey(tk, buffer, len, key, format);
+}
+
+size_t termkey_strfkey(TermKey *tk, char *buffer, size_t len, TermKeyKey *key, TermKeyFormat format)
+{
size_t pos = 0;
size_t l = 0;