summaryrefslogtreecommitdiff
path: root/usr.bin/mg/bell.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/mg/bell.c')
-rw-r--r--usr.bin/mg/bell.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/usr.bin/mg/bell.c b/usr.bin/mg/bell.c
index 7c1753d797c..8cec1258e82 100644
--- a/usr.bin/mg/bell.c
+++ b/usr.bin/mg/bell.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bell.c,v 1.4 2016/01/03 19:37:08 lum Exp $ */
+/* $OpenBSD: bell.c,v 1.5 2019/07/17 18:18:37 lum Exp $ */
/*
* This file is in the public domain.
@@ -26,6 +26,22 @@ bellinit(void)
dovisiblebell = 0;
}
+int
+dobeep_msgs(const char *msg, const char *s)
+{
+ ewprintf("%s %s", msg, s);
+ dobeep();
+ return (FALSE);
+}
+
+int
+dobeep_msg(const char *msg)
+{
+ ewprintf("%s", msg);
+ dobeep();
+ return (FALSE);
+}
+
void
dobeep(void)
{