Set-PSReadLineOption BellStyle should have an option for an actual ASCII 7 bell #4766
Open
1 task done
Labels
Issue-Enhancement
It's a feature request.
Needs-Triage 🔍
It's a new issue that core contributor team needs to triage.
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
Description of the new feature/enhancement
Hello,
I just realized this today but, even in the latest PSReadLine 2.3.6 when I configure the "Bell notification style" in Windows Terminal to, for example,
["window", "taskbar"]
(briefly flash the console screen + taskbar icon) instead ofaudible
(make the irritating pcspeaker noise) PSReadLine does not honor this setting - it still makes a sharpblip
-like sound. I'm guessing PSReadLine does not emit an actual ASCII 0x7 BELL but rather implements its own sound playback.This is very bad because:
putchar(7);
arguably making it a code smell and unnecessary bloat?Proposed technical implementation details (optional)
I propose to add a BellStyle option that just makes PSReadLine, well, emit an actual 0x07 BELL. Also, I would very much like for this BellStyle (call it
-BellStyle ASCIIBell
or whatever) to be the new default BellStyle. Users who unironically prefer the eardrum-shattering, high-pitchedblip
of the current implementation can always change it back toAudible
.EDIT: Link to Windows Terminal BELL style configuration docs: https://learn.microsoft.com/en-us/windows/terminal/customize-settings/profile-advanced#bell-notification-style
The text was updated successfully, but these errors were encountered: