summaryrefslogtreecommitdiffstats
path: root/lib/readkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/readkey.c')
-rw-r--r--lib/readkey.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/readkey.c b/lib/readkey.c
index 2073a732f4..2870a5a9fe 100644
--- a/lib/readkey.c
+++ b/lib/readkey.c
@@ -53,15 +53,15 @@ int read_key(void)
{
char c;
char esc[5];
- c = getc();
+ c = getchar();
if (c == 27) {
int i = 0;
- esc[i++] = getc();
- esc[i++] = getc();
+ esc[i++] = getchar();
+ esc[i++] = getchar();
if (isdigit(esc[1])) {
while(1) {
- esc[i] = getc();
+ esc[i] = getchar();
if (esc[i++] == '~')
break;
if (i == ARRAY_SIZE(esc))