14 lines
298 B
Diff
14 lines
298 B
Diff
diff --git a/keyboard.c b/keyboard.c
|
|
index 8dc090c..3afd490 100644
|
|
--- a/keyboard.c
|
|
+++ b/keyboard.c
|
|
@@ -90,7 +90,7 @@ static bool
|
|
is_ascii(const char str[])
|
|
{
|
|
for (int i = 0; str[i] != '\0'; i++) {
|
|
- if (str[i] < 0) {
|
|
+ if (!isprint(str[i]) && !iscntrl(str[i])) {
|
|
return false;
|
|
}
|
|
}
|