diff options
author | Tiago Cunha <tcunha@gmx.com> | 2011-08-25 21:12:52 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2011-08-25 21:12:52 +0000 |
commit | c41a93d130ef339659fb4384aec13f33921f91f2 (patch) | |
tree | aa90c496b2861404905efa78a54df66b33698b12 /server-window.c | |
parent | 0a4fd0f7a428906c14bf968e15e37f87af5c7fc8 (diff) | |
download | rtmux-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 'server-window.c')
-rw-r--r-- | server-window.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server-window.c b/server-window.c index d3735a76..48be2c3b 100644 --- a/server-window.c +++ b/server-window.c @@ -86,7 +86,7 @@ server_window_check_bell(struct session *s, struct winlink *wl) if (c == NULL || c->session != s) continue; if (!visual) { - tty_putcode(&c->tty, TTYC_BEL); + tty_bell(&c->tty); continue; } if (c->session->curw->window == w) { @@ -108,7 +108,7 @@ server_window_check_bell(struct session *s, struct winlink *wl) if (c->session->curw->window != w) continue; if (!visual) { - tty_putcode(&c->tty, TTYC_BEL); + tty_bell(&c->tty); continue; } status_message_set(c, "Bell in current window"); @@ -254,6 +254,6 @@ ring_bell(struct session *s) for (i = 0; i < ARRAY_LENGTH(&clients); i++) { c = ARRAY_ITEM(&clients, i); if (c != NULL && c->session == s) - tty_putcode(&c->tty, TTYC_BEL); + tty_bell(&c->tty); } } |