Re: Default Beep

1998-05-19 Thread Pete Harlan
> difference between my puter and everyone elses at work!).

In the interests of helping /even/ those who like to use vi in text-
only modes ;), a look at drivers/char/console.c and an strace of
setterm -blank 20 shows the following:

Set the pitch of the beep:

E[10;1000]

where 'E' is an escape, the brackets are regular square brackets, the
'10' is the command to set the beep, and '1000' is the hz of the beep
tone.

(E.g.:

% perl -e 'print "\033[10;1000]";'
% (now console has a different beep)
)

If you wish to change the duration of the beep, the command is 11
instead of 10, and its argument is the duration in milliseconds.

Happy beeping,

--
Pete Harlan
[EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: Default Beep

1998-05-19 Thread Lindsay Allen

On Mon, 18 May 1998, Chris wrote:

> 
> 
> 
> 
> On Sun, 17 May 1998, Shaleh wrote:
> 
> > There is an app that lets you do this.  I read it in one of the Debian 
> > packaged
> > howtos.  It is the same program that lets you change all kinds of low level
> > stuff.  Like console colors and what not.  
> > 
> 
> 
> Any ideas what the app was?
> 
> C.

setterm

> 
> 
> 
> 
> 
> 
> 
> 
> ---
> > Chris wrote:
> > > 
> > > I just had a weird though - is it possible to change the default beep in
> > > linux?  You know - the one you get in vi all the time ;)
> > > 
> > > Being able to ty it to a wav would be interesting - but even just changing
> > > the pitch / length would be good.
> > > 
> > > Anybody got some ideas?
> > > 
> > > Chris
> > > 
> > > --
> > > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> > 
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 
HTH
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Lindsay Allen   <[EMAIL PROTECTED]>  Perth, Western Australia
voice +61 8 9316 248632.0125S 115.8445Evk6lj  Debian Unix
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: Default Beep

1998-05-19 Thread Chris


On Mon, 18 May 1998, Pete Harlan wrote:

> > There is an app that lets you do this.  I read it in one of the
> > Debian packaged howtos.  It is the same program that lets you change
> > all kinds of low level stuff.  Like console colors and what not.
> > 
> > Chris wrote:
> > > 
> > > I just had a weird though - is it possible to change the default beep in
> > > linux?  You know - the one you get in vi all the time ;)
> 
> If you use X, you can put something like
> 
>   xset b 50 1760 20
> 
> in your .xsession or .xinitrc file.  "man xset".
> 
> If you're not using X, and your biggest complaint is the beep, then
> there's something wrong with your brain (but then you already said you
> use vi ;)
> 

I won't get into an argument about vi (except to say it's the best editor
I've ever used ;), but I'm not really worried about the beep - just
wondered if I could change the sucker (although it'll help me tell the
difference between my puter and everyone elses at work!).

Thanks,

C.




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: Default Beep

1998-05-18 Thread Pete Harlan
> There is an app that lets you do this.  I read it in one of the
> Debian packaged howtos.  It is the same program that lets you change
> all kinds of low level stuff.  Like console colors and what not.
> 
> Chris wrote:
> > 
> > I just had a weird though - is it possible to change the default beep in
> > linux?  You know - the one you get in vi all the time ;)

If you use X, you can put something like

xset b 50 1760 20

in your .xsession or .xinitrc file.  "man xset".

If you're not using X, and your biggest complaint is the beep, then
there's something wrong with your brain (but then you already said you
use vi ;)

HTH,

--
Pete Harlan
[EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: Default Beep

1998-05-17 Thread Chris




On Sun, 17 May 1998, Shaleh wrote:

> There is an app that lets you do this.  I read it in one of the Debian 
> packaged
> howtos.  It is the same program that lets you change all kinds of low level
> stuff.  Like console colors and what not.  
> 


Any ideas what the app was?

C.








---
> Chris wrote:
> > 
> > I just had a weird though - is it possible to change the default beep in
> > linux?  You know - the one you get in vi all the time ;)
> > 
> > Being able to ty it to a wav would be interesting - but even just changing
> > the pitch / length would be good.
> > 
> > Anybody got some ideas?
> > 
> > Chris
> > 
> > --
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: Default Beep

1998-05-17 Thread Shaleh
There is an app that lets you do this.  I read it in one of the Debian packaged
howtos.  It is the same program that lets you change all kinds of low level
stuff.  Like console colors and what not.  

Chris wrote:
> 
> I just had a weird though - is it possible to change the default beep in
> linux?  You know - the one you get in vi all the time ;)
> 
> Being able to ty it to a wav would be interesting - but even just changing
> the pitch / length would be good.
> 
> Anybody got some ideas?
> 
> Chris
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]