Article View: linux.debian.user
Article #538Re: beeps and other sounds
From: Vincent Lefevre
Date: Mon, 16 Nov 2026 11:40
Date: Mon, 16 Nov 2026 11:40
25 lines
2708 bytes
2708 bytes
On 2024-10-18 22:08:09 -0400, Timothy M Butterworth wrote: > I googled around and found: > > - tput bel: This command uses the tput utility to send the "bell" > control character to the terminal. > - echo -e "\a": The -e option enables interpretation of backslash > escapes, and \a represents the bell character. The -e option is not portable. For instance, with dash (/bin/sh by default): $ echo -e "\a" -e and \a is interpreted as bell anyway, but as said in the dash(1) man page, this is undefined behavior; in short, don't do that! > - printf "\a": The printf command works similarly to echo -e "\a". AFAIK, this one is portable. -- Vincent Lefรจvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)
Technical Details
Message-ID:
<O03e1-cf3m-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!news.servidellagleba.it!bofh.it!news.nic.it!robomodReferences:
<Jz190-2w6T-7@gated-at.bofh.it> <Jz74J-2ClB-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod From: Vincent Lefevre <vincent@vinc17.net> Newsgroups: linux.debian.user Subject: Re: beeps and other sounds Date: Mon, 16 Nov 2026 12:40:01 +0100 Message-ID: <O03e1-cf3m-3@gated-at.bofh.it> References: <Jz190-2w6T-7@gated-at.bofh.it> <Jz74J-2ClB-3@gated-at.bofh.it> X-Original-To: debian-user@lists.debian.org X-Mailbox-Line: From debian-user-request@lists.debian.org Mon Nov 16 11:38:16 2026 Old-Return-Path: <vincent@vinc17.net> X-Amavis-Spam-Status: No, score=-1.9 tagged_above=-10000 required=5.3 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 Mail-Followup-To: debian-user@lists.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.4.3+67 (b2844dd7) vl-188789 (2026-11-11) X-Mailing-List: <debian-user@lists.debian.org> archive/latest/832925 List-ID: <debian-user.lists.debian.org> List-URL: <https://lists.debian.org/debian-user/> List-Archive: https://lists.debian.org/msgid-search/20261116113803.GF670644@qaa.vinc17.org Approved: robomod@news.nic.it Lines: 25 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 16 Nov 2026 12:38:03 +0100 X-Original-Message-ID: <20261116113803.GF670644@qaa.vinc17.org> X-Original-References: <BYAPR12MB28083B81ACF7B2E5EB5E2368BA402@BYAPR12MB2808.namprd12.prod.outlook.com> <CAO6YxPzgFFzwO5dHGwewxiXRwBgM1=JM_fLZ0MFAr-saowao=Q@mail.gmail.com>