Renamed all type names to CamelCaseNames for visual distinctness, separate from variables/functions
This commit is contained in:
6
demo.c
6
demo.c
@@ -7,15 +7,15 @@ int main(int argc, char *argv[])
|
||||
TERMKEY_CHECK_VERSION;
|
||||
|
||||
char buffer[50];
|
||||
termkey_t *tk = termkey_new(0, 0);
|
||||
TermKey *tk = termkey_new(0, 0);
|
||||
|
||||
if(!tk) {
|
||||
fprintf(stderr, "Cannot allocate termkey instance\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
termkey_result ret;
|
||||
termkey_key key;
|
||||
TermKeyResult ret;
|
||||
TermKeyKey key;
|
||||
|
||||
while((ret = termkey_waitkey(tk, &key)) != TERMKEY_RES_EOF) {
|
||||
termkey_snprint_key(tk, buffer, sizeof buffer, &key, TERMKEY_FORMAT_VIM);
|
||||
|
||||
Reference in New Issue
Block a user