-/* $OpenBSD: dired.c,v 1.100 2021/05/02 14:13:17 lum Exp $ */
+/* $OpenBSD: dired.c,v 1.101 2022/10/15 17:01:14 op Exp $ */
/* This file is in the public domain. */
ewprintf("File not found %s", fname);
return (FALSE);
} else {
- ewprintf("");
+ eerase();
return (TRUE);
}
}
-/* $OpenBSD: echo.c,v 1.68 2021/03/02 15:03:35 lum Exp $ */
+/* $OpenBSD: echo.c,v 1.69 2022/10/15 17:01:14 op Exp $ */
/* This file is in the public domain. */
for (;;) {
s = getkey(FALSE);
if (s == 'y' || s == 'Y' || s == ' ') {
- ewprintf("");
+ eerase();
return (TRUE);
}
if (s == 'n' || s == 'N' || s == CCHR('M')) {
- ewprintf("");
+ eerase();
return (FALSE);
}
if (s == CCHR('G')) {
- ewprintf("");
+ eerase();
return (ctrlg(FFRAND, 1));
}
ewprintf("Please answer y or n. %s? (y or n) ", sp);
for (;;) {
s = getkey(FALSE);
if (s == 'y' || s == 'Y' || s == ' ') {
- ewprintf("");
+ eerase();
return (TRUE);
}
if (s == 'n' || s == 'N' || s == CCHR('M')) {
- ewprintf("");
+ eerase();
return (FALSE);
}
if (s == 'r' || s == 'R') {
- ewprintf("");
+ eerase();
return (REVERT);
}
if (s == CCHR('G')) {
- ewprintf("");
+ eerase();
return (ctrlg(FFRAND, 1));
}
ewprintf("Please answer y, n or r.");
EFNUL | EFNEW | EFCR, sp);
for (;;) {
if (rep == NULL) {
- ewprintf("");
+ eerase();
return (ABORT);
}
if (rep[0] != '\0') {
free(lp);
}
if (strcasecmp(rep, "yes") == 0) {
- ewprintf("");
+ eerase();
return (TRUE);
}
if (strcasecmp(rep, "no") == 0) {
- ewprintf("");
+ eerase();
return (FALSE);
}
}