Skip to content

Audio bell does not work in integrated terminal #47711

Closed

Description

@jhpratt
  • VSCode Version: 1.22.1 (commit 950b8b0d37a9b7061b6f0d291837ccc4015f5ecd)
  • OS Version: Ubuntu 17.10

Steps to Reproduce:

  1. Open an integrated terminal
  2. Type echo "\a"

Assuming your OS is configured to allow TTY, you should hear a bell. In a normal terminal, this works fine. In code's, it does not.

Does this issue occur when all extensions are disabled?: Yes

Activity

  1. added
    terminal
    on Apr 12, 2018
  2. added
    bug
    on Apr 30, 2018
  3. Tyriar commented on Apr 30, 2018

    @Tyriar
    Contributor

    Looks like there's an issue with the bell in the packages version of VS Code (not in the dev build):

    Uncaught (in promise) DOMException: Unable to decode audio data

  4. Tyriar commented on Apr 30, 2018

    @Tyriar
    Contributor
  5. added
    electron
    on Apr 30, 2018
  6. added this to the Backlog milestone on Apr 30, 2018
  7. added
    upstream
    and removed
    electron
    on Sep 12, 2018
  8. Tyriar commented on Sep 12, 2018

    @Tyriar
    Contributor

    Not fixed in Electron 2?

  9. DrSensor commented on Mar 3, 2019

    @DrSensor

    I have the same problem with this in my machine:

    Version: 1.31.1
    Commit: 1b8e8302e405050205e69b59abb3559592bb9e60
    Date: 2019-02-12T02:19:29.629Z
    Electron: 3.1.2
    Chrome: 66.0.3359.181
    Node.js: 10.2.0
    V8: 6.6.346.32
    OS: Linux x64 4.19.13-1-MANJARO
    

    (Plan to use this ASCII to ring some task when the compilation is finish 😹)
    Maybe make the beep sound can be configured (like in KDE Konsole in my case) would fix it.

  10. kvharish commented on Apr 21, 2019

    @kvharish

    Hi, any idea when this will be fixed?

    I am trying to add a bell sound at the end of my grunt task. It works fine in default terminal but not in the vscode integrated terminal.

    Version: 1.33.1 (1.33.1)
    Commit: 51b0b28134d51361cf996d2f0a1c698247aeabd8
    Date: 2019-04-11T08:14:39.158Z
    OS - macOS High Sierra (10.13.6)

  11. jsejcksn commented on May 20, 2019

    @jsejcksn

    I can also reproduce this issue in macOS with

    echo -ne '\007'

    VS Code: 1.34.0
    macOS: 10.14.5

  12. matchu commented on Oct 7, 2019

    @matchu

    I'm seeing this too.

    Even with terminal.integrated.enableBell enabled, running printf "\a" in the VS Code Integrated Terminal triggers no sound, despite the same command triggering a sound in my OS terminal.

    MacOS 10.14.5

  13. removed this from the Backlog milestone on Oct 8, 2019
  14. 64 remaining items

  15. added
    insiders-released
    and removed
    unreleased
    on Sep 16, 2022
  16. nnWhisperer commented on Sep 16, 2022

    @nnWhisperer

    Thank you. How long would it take to have it in the main Vscode version(not insiders) ?

  17. meganrogge commented on Sep 16, 2022

    @meganrogge
    Collaborator

    we will release this version in a few weeks Baris (@nnWhisperer)

  18. added
    verification-needed
    on Sep 26, 2022
  19. added
    verified
    on Sep 27, 2022
  20. jivanpal commented on Oct 26, 2022

    @jivanpal

    Is this supposed to be resolved as of 1.72.2 (commit d045a5e)? If so, it is not working for me on macOS 10.15.7; running printf '\a' in the VSCode terminal does nothing.

  21. meganrogge commented on Oct 26, 2022

    @meganrogge
    Collaborator

    You need to opt in w the setting for it to work (it's off by default)

  22. 0xDECAFC0FFEE commented on Oct 26, 2022

    @0xDECAFC0FFEE

    The audio bell works on my computer!
    Thanks for your work - this has been a huge pain point for my workflow for years.

  23. matthewpoer commented on Oct 26, 2022

    @matthewpoer

    Found myself on Version: 1.72.2 and can confirm that enabling the setting does in fact give you a bell sound :D

    Enable with Cmd + Shift + P, search/select Preferences: Open Settings (UI), search for "bell" and check on the "Terminal > Integrated: Enable Bell" toggle.

    screenshot of settings

    Can also use

    "terminal.integrated.enableBell": true

    Moving forward printf '\a' will give you a chime.

  24. jivanpal commented on Oct 26, 2022

    @jivanpal

    Thanks all, it's working now. However, it doesn't use the alert sound I have configured on my Mac ("Glass" ding in System Sounds), and the "bloop" sound that VSCode uses is much too quiet; I have to turn my volume up to 100% for it to be at the same level as the Glass sound at 25%. Is there a way to adjust the volume level and/or the audio file that is played?

  25. denishowew commented on Oct 27, 2022

    @denishowew

    My old work-around on mac was: osascript -e "beep beep beep".

  26. FreTimmerman commented on Oct 27, 2022

    @FreTimmerman

    i can confirm printf '\a' or echo '\a' will give a chime. BUT:

    it is NOT the system chime, NOR does it bump the VSCode icon in the dock, NOR does it add a notification icon to VSCode in the dock. (terminal does all this, see icon attached)
    image

    to reproduce in terminal, you might have to test it using a sleep, so you have time to unfocus the terminal before it rings the bell:

    sleep 5 && printf '\a' and then quickly focus another app within 5 seconds

  27. jivanpal commented on Oct 27, 2022

    @jivanpal

    Denis Howe (@denishowew) For getting notified when a command/script finishes, I've been using say for some time, as suggested by others here. However, the chime/alert sound plays in many other situations, too, such as when a tab-autocomplete or history reverse-search (^R) fails.

  28. locked and limited conversation to collaborators on Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

accessibilityfeature-requestinsiders-releasedterminalverification-neededverified

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions