summaryrefslogtreecommitdiffstats
path: root/mbbsd/stuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/stuff.c')
-rw-r--r--mbbsd/stuff.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c
index 00c307fb..28388960 100644
--- a/mbbsd/stuff.c
+++ b/mbbsd/stuff.c
@@ -434,6 +434,17 @@ char getans(char *prompt)
}
int
+getkey(const char *fmt,...)
+{
+ char msg[256] = "\033[1;36;44m กป ", i;
+ va_list ap;
+ va_start(ap, fmt);
+ i = vsnprintf(msg + 14, 100, fmt, ap);
+ va_end(ap);
+ return vmsg_lines(b_lines, msg);
+}
+
+int
vmsg(const char *fmt,...)
{
char msg[256] = "\033[1;36;44m กป ", i;