aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2011-08-25 21:12:52 +0000
committerTiago Cunha <tcunha@gmx.com>2011-08-25 21:12:52 +0000
commitc41a93d130ef339659fb4384aec13f33921f91f2 (patch)
treeaa90c496b2861404905efa78a54df66b33698b12 /tty.c
parent0a4fd0f7a428906c14bf968e15e37f87af5c7fc8 (diff)
downloadrtmux-c41a93d130ef339659fb4384aec13f33921f91f2.tar.gz
rtmux-c41a93d130ef339659fb4384aec13f33921f91f2.tar.bz2
rtmux-c41a93d130ef339659fb4384aec13f33921f91f2.zip
Sync OpenBSD patchset 949:
Add a tty_bell wrapper function, from Dylan Alex Simon.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tty.c b/tty.c
index a3cb6a31..64a33271 100644
--- a/tty.c
+++ b/tty.c
@@ -1546,3 +1546,9 @@ tty_try_88(struct tty *tty, u_char colour, const char *type)
tty_puts(tty, s);
return (0);
}
+
+void
+tty_bell(struct tty *tty)
+{
+ tty_putcode(tty, TTYC_BEL);
+}