summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alerts.c4
-rw-r--r--tmux.h1
-rw-r--r--tty.c6
3 files changed, 2 insertions, 9 deletions
diff --git a/alerts.c b/alerts.c
index cfdd30e3..5d52f7ad 100644
--- a/alerts.c
+++ b/alerts.c
@@ -174,7 +174,7 @@ alerts_check_bell(struct session *s, struct winlink *wl)
(action == BELL_OTHER &&
c->session->curw->window != w) ||
action == BELL_ANY)
- tty_bell(&c->tty);
+ tty_putcode(&c->tty, TTYC_BEL);
continue;
}
if (action == BELL_CURRENT && c->session->curw->window == w)
@@ -258,6 +258,6 @@ alerts_ring_bell(struct session *s)
TAILQ_FOREACH(c, &clients, entry) {
if (c->session == s && !(c->flags & CLIENT_CONTROL))
- tty_bell(&c->tty);
+ tty_putcode(&c->tty, TTYC_BEL);
}
}
diff --git a/tmux.h b/tmux.h
index 9e028194..0223d857 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1596,7 +1596,6 @@ void tty_cmd_utf8character(struct tty *, const struct tty_ctx *);
void tty_cmd_reverseindex(struct tty *, const struct tty_ctx *);
void tty_cmd_setselection(struct tty *, const struct tty_ctx *);
void tty_cmd_rawstring(struct tty *, const struct tty_ctx *);
-void tty_bell(struct tty *);
/* tty-term.c */
extern struct tty_terms tty_terms;
diff --git a/tty.c b/tty.c
index 105a24ed..c4dfde1d 100644
--- a/tty.c
+++ b/tty.c
@@ -1712,9 +1712,3 @@ tty_default_colours(struct grid_cell *gc, const struct window_pane *wp)
}
}
}
-
-void
-tty_bell(struct tty *tty)
-{
- tty_putcode(tty, TTYC_BEL);
-}