From 04017c25bb719c31bb18d43b4bcb96c4736f8d91 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 25 Jan 2025 11:22:32 +0900 Subject: Add 'bell' action to ring the terminal bell --- src/tui/tcell.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tui/tcell.go') diff --git a/src/tui/tcell.go b/src/tui/tcell.go index 0bf160c4..3c3e13fc 100644 --- a/src/tui/tcell.go +++ b/src/tui/tcell.go @@ -100,6 +100,10 @@ const ( BoldForce = Attr(1 << 10) ) +func (r *FullscreenRenderer) Bell() { + _screen.Beep() +} + func (r *FullscreenRenderer) PassThrough(str string) { // No-op // https://github.com/gdamore/tcell/pull/650#issuecomment-1806442846 -- cgit v1.2.3