[MPlayer-cvslog] r34370 - trunk/input/input.c
reimar
subversion at mplayerhq.hu
Thu Dec 1 20:09:21 CET 2011
Author: reimar
Date: Thu Dec 1 20:09:20 2011
New Revision: 34370
Log:
Only print printable characters, not all ASCII ones.
Non-printable ASCII characters like ESC will instead be
printed as hex now.
Modified:
trunk/input/input.c
Modified: trunk/input/input.c
==============================================================================
--- trunk/input/input.c Thu Dec 1 19:34:18 2011 (r34369)
+++ trunk/input/input.c Thu Dec 1 20:09:20 2011 (r34370)
@@ -1456,7 +1456,7 @@ mp_input_get_key_name(int key) {
return key_names[i].name;
}
- if(isascii(key)) {
+ if(isprint(key)) {
snprintf(key_str,12,"%c",(char)key);
return key_str;
}
More information about the MPlayer-cvslog
mailing list