Renamed snprint_key() to strfkey(); provide redirection trampoline

This commit is contained in:
Paul LeoNerd Evans
2011-03-31 11:08:43 +01:00
parent 280047e745
commit 26ef76349e
4 changed files with 11 additions and 2 deletions

2
demo.c
View File

@@ -44,7 +44,7 @@ int main(int argc, char *argv[])
printf("\e[?%dhMouse mode active\n", mouse);
while((ret = termkey_waitkey(tk, &key)) != TERMKEY_RES_EOF) {
termkey_snprint_key(tk, buffer, sizeof buffer, &key, format);
termkey_strfkey(tk, buffer, sizeof buffer, &key, format);
printf("%s\n", buffer);
if(key.type == TERMKEY_TYPE_UNICODE &&