[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: [OT] beep without terminal ?
From: Oswald Buddenhagen <ossi () kde ! org>
Date: 2003-03-06 16:55:34
[Download RAW message or body]
On Thu, Mar 06, 2003 at 09:11:11AM +0100, Wolfgang Rohdewald wrote:
> On 05.03.2003 23:24, Alexander Neundorf wrote:
> > Hi,
> >
> > how can I make the pc speaker beep without terminal (i.e. minicli)
> > ? echo -e \\a needs a terminal,
> > print("\\a"); too.
> > How can I do it ?
>
> it only beeps for ^a because this is illegal input. Better use ^g,
> the official beep character.
>
sorry, but that's utter crap. rtfm.
> try in konsole
>
> echo '^G'
>
hey, great. inserting control characters into scripts is certainly
always a good idea. ;-)
> echo '^G' >/dev/tty1
>
oh, it gets even better. requiring write permission to an arbitrary tty
is undoubtedly brilliant.
> for me, they sound different.
>
yes, because the one in the xterm causes an XBell() (or whatever the
terminal emulator chooses to do), while the one to the "real" tty causes
a beep by the kernel.
> The second variant should always beep, even from crontab.
>
yes, if it's root's crontab ...
> Untested by me.
>
obviously.
sorry for the harsh tone, i just felt the urge to dwarf somebody - i'm so
frustrated about my own incompetence. :))))
greetings
--
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic