Beep on Ctrl+Z regardless of bellStyle #20917

Closed
opened 2026-01-31 07:27:42 +00:00 by claunia · 2 comments
Owner

Originally created by @JVimes on GitHub (Nov 29, 2023).

Windows Terminal version

1.19.3172.0

Windows build number

10.0.19045.0

Other Software

No response

Steps to reproduce

  • Open Windows Terminal with default settings (shell is PowerShell 7.3.10, for me).
  • Press Ctrl+Z

Expected Behavior

It doesn't beep.

Actual Behavior

It beeps.

Originally created by @JVimes on GitHub (Nov 29, 2023). ### Windows Terminal version 1.19.3172.0 ### Windows build number 10.0.19045.0 ### Other Software _No response_ ### Steps to reproduce - Open Windows Terminal with default settings (shell is PowerShell 7.3.10, for me). - Press Ctrl+Z ### Expected Behavior It doesn't beep. ### Actual Behavior It beeps.
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 07:27:42 +00:00
Author
Owner

@DHowett commented on GitHub (Nov 29, 2023):

Unfortunately, in this case, PowerShell is going behind our backs and calling the Windows OS Beep() function directly. ☹️

@DHowett commented on GitHub (Nov 29, 2023): Unfortunately, in this case, PowerShell is going behind our backs and calling the Windows OS `Beep()` function directly. ☹️
Author
Owner

@JVimes commented on GitHub (Nov 29, 2023):

Ah, you're right!

Putting this in my profile seems to fix it:

Set-PSReadlineOption -BellStyle None
@JVimes commented on GitHub (Nov 29, 2023): Ah, you're right! Putting this in my profile seems to fix it: ```pwsh Set-PSReadlineOption -BellStyle None ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20917