changeset 34282:6edabf4151e9

Only print printable characters, not all ASCII ones. Non-printable ASCII characters like ESC will instead be printed as hex now.
author reimar
date Thu, 01 Dec 2011 19:09:20 +0000
parents 52d927f2b563
children 3a4adac4e9a5
files input/input.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/input/input.c	Thu Dec 01 18:34:18 2011 +0000
+++ b/input/input.c	Thu Dec 01 19:09:20 2011 +0000
@@ -1456,7 +1456,7 @@
       return key_names[i].name;
   }
 
-  if(isascii(key)) {
+  if(isprint(key)) {
     snprintf(key_str,12,"%c",(char)key);
     return key_str;
   }