Swordfish90 / cool-retro-term

A good looking terminal emulator which mimics the old cathode display...
21.85k stars 836 forks source link

Bell sound & notifications #511

Open subraizada3 opened 5 years ago

subraizada3 commented 5 years ago

Hi, Thanks for making CRT, it is awesome!

Konsole allows one to configure the behaviour of the terminal bell (show menu bar with ctrl-shift-m, then settings => configure notifications). Aside from playing a sound whenever there is a bell, it also allows for a system notification to pop up when a BEL is emitted in an inactive (nonfocused) terminal.

This allows for

$ long-running-command; tput bel

As a simple way to get a beep + a GUI notification when long-running-command finishes.

Would it be possible to get something like that in CRT?

Thanks!

konsole_bell

BRFud commented 4 years ago

I am running some old software that uses BEL via terminal for notifications. Currently using minicom on Linux which does emit a crude beep when the BEL is received. It would be great to also have a simple BEL sound when using CRT (focused session or otherwise)! Perhaps a user-configurable WAV, in addition to a default? Cheers for making this awesome opensource software available.

jwbrase commented 2 years ago

I don't know what the situation is on Mac, but on Linux, most terminal emulators just pass ^G/BEL to X, and from there it gets handled by the desktop environment, and most DEs these days have broken bell handling. Konsole allows you to set a sound to be played on BEL, but if another BEL comes in while the first is still playing, only one will be played. In a lot of the retrocomputing I do, systems will send a single bell for user attention, and a triple bell for "this is important". Having a terminal, any terminal, that recognizes BEL and also properly handles multiple BELs would be amazing.