Bell not silent despite bellStyle being set to "none" #22289

Closed
opened 2026-01-31 08:08:56 +00:00 by claunia · 2 comments
Owner

Originally created by @sharpless on GitHub (Sep 17, 2024).

Windows Terminal version

1.21.2361.0

Windows build number

10.0.22631.0

Other Software

PSReadline
oh-my-posh

Steps to reproduce

  1. Set "bellStyle": "none"
  2. Set Set-PSReadlineKeyHandler -Key Tab -Function Complete
  3. Try to use tab completion on a file/folder name where there are multiple options

Expected Behavior

Silence

Actual Behavior

An audible bell

Adding settings.json and PS profile
[Microsoft.PowerShell_profile.ps1.txt](https://github.com/use
settings.json
r-attachments/files/17023965/Microsoft.PowerShell_profile.ps1.txt)

Originally created by @sharpless on GitHub (Sep 17, 2024). ### Windows Terminal version 1.21.2361.0 ### Windows build number 10.0.22631.0 ### Other Software PSReadline oh-my-posh ### Steps to reproduce 1. Set `"bellStyle": "none"` 2. Set `Set-PSReadlineKeyHandler -Key Tab -Function Complete` 3. Try to use tab completion on a file/folder name where there are multiple options ### Expected Behavior Silence ### Actual Behavior An audible bell Adding settings.json and PS profile [Microsoft.PowerShell_profile.ps1.txt](https://github.com/use [settings.json](https://github.com/user-attachments/files/17023966/settings.json) r-attachments/files/17023965/Microsoft.PowerShell_profile.ps1.txt)
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:08:56 +00:00
Author
Owner

@j4james commented on GitHub (Sep 17, 2024):

I believe this is because PowerShell doesn't use a terminal beep control, but instead makes a direct call the Windows Beep() API. There is apparently a PS option you can set to disable that. See https://github.com/microsoft/terminal/issues/16393#issuecomment-1832683264.

@j4james commented on GitHub (Sep 17, 2024): I believe this is because PowerShell doesn't use a terminal beep control, but instead makes a direct call the Windows `Beep()` API. There is apparently a PS option you can set to disable that. See https://github.com/microsoft/terminal/issues/16393#issuecomment-1832683264.
Author
Owner

@sharpless commented on GitHub (Sep 17, 2024):

Thanks, that was the issue

@sharpless commented on GitHub (Sep 17, 2024): Thanks, that was the issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22289