summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/mg/def.h4
-rw-r--r--usr.bin/mg/kbd.c4
-rw-r--r--usr.bin/mg/main.c8
3 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/mg/def.h b/usr.bin/mg/def.h
index 7178ec091c0..cc5d93e7a32 100644
--- a/usr.bin/mg/def.h
+++ b/usr.bin/mg/def.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: def.h,v 1.83 2006/02/25 14:40:16 otto Exp $ */
+/* $OpenBSD: def.h,v 1.84 2006/04/03 02:43:22 kjell Exp $ */
/* This file is in the public domain. */
@@ -45,7 +45,7 @@ typedef int (*PF)(int, int); /* generally useful type */
#define TRUE 1 /* True, yes, good, etc. */
#define ABORT 2 /* Death, ^G, abort, etc. */
-#define KPROMPT 2 /* keyboard prompt */
+#define KCLEAR 2 /* clear echo area */
/*
* These flag bits keep track of
diff --git a/usr.bin/mg/kbd.c b/usr.bin/mg/kbd.c
index e70e560be36..929038ae1a8 100644
--- a/usr.bin/mg/kbd.c
+++ b/usr.bin/mg/kbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kbd.c,v 1.21 2005/12/13 07:20:13 kjell Exp $ */
+/* $OpenBSD: kbd.c,v 1.22 2006/04/03 02:43:22 kjell Exp $ */
/* This file is in the public domain. */
@@ -84,7 +84,7 @@ getkey(int flag)
ewprintf("%s", prompt);
/* put the cursor back */
update();
- epresf = KPROMPT;
+ epresf = KCLEAR;
}
if (promptp > prompt)
*(promptp - 1) = ' ';
diff --git a/usr.bin/mg/main.c b/usr.bin/mg/main.c
index d306ad0844e..7ca6233e897 100644
--- a/usr.bin/mg/main.c
+++ b/usr.bin/mg/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.49 2006/02/25 14:40:16 otto Exp $ */
+/* $OpenBSD: main.c,v 1.50 2006/04/03 02:43:22 kjell Exp $ */
/* This file is in the public domain. */
@@ -135,10 +135,10 @@ notnum:
/* fake last flags */
thisflag = 0;
for (;;) {
-#ifndef NO_DPROMPT
- if (epresf == KPROMPT)
+ if (epresf == KCLEAR)
eerase();
-#endif /* !NO_DPROMPT */
+ if (epresf == TRUE)
+ epresf = KCLEAR;
if (winch_flag) {
do_redraw(0, 0, TRUE);
winch_flag = 0;