Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for the terminal bell #681

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jguzman-tech
Copy link

This code adds ding calls for the terminal bell. By default this will be the audible bell that I was looking for when I made issue #580. The bell is useful in terminal emulators, because some applications use it as an indicator (such as when bash completion fails, or when you've reached the end of a file in vim).

A user could effectively disable ding calls in vterm by putting this in their init file:

; disable dings (in vterm mode only)
(defun disable-vterm-bell ()
  (setq-local ring-bell-function (lambda () nil)))
(add-hook 'vterm-mode-hook 'disable-vterm-bell)

The key was setting the bell function pointer of the VTermScreenCallbacks struct provided by vterm.h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant