Replace getch with readch

This commit is contained in:
Night Kaly 2024-11-17 18:38:22 +00:00
parent 1116bfbcce
commit c12d5056a3
Signed by: night0721
SSH key fingerprint: SHA256:B/hgVwUoBpx5vdNsXl9w8XwZljA9766uk6T4ubZp5HM

2
ccc.c
View file

@ -1016,7 +1016,7 @@ void toggle_executable(void)
struct stat st; struct stat st;
if (stat(f.path, &st) == -1) { if (stat(f.path, &st) == -1) {
wpprintw("stat failed: %s (Press any key to continue)", strerror(errno)); wpprintw("stat failed: %s (Press any key to continue)", strerror(errno));
getch(); readch();
return; return;
} }
if (f.type == DRY) if (f.type == DRY)