In julia-client: client.handle 'beep', -> atom.beep()
In Atom.jl: beep() = @msg beep()

That will allow you to call `Atom.beep()` from Julia. However, it's a bit
moot if the function does nothing on your system anyway.

On OS X we show system notifications when evaluations are complete, which
is very handy and I guess it's what you're going for. Unfortunately it
doesn't seem to work on Windows by default but I can put some time into
fixing that (or you're of course welcome to take a look yourself).

On Sun, 28 Feb 2016 at 10:46 FQ <[email protected]> wrote:

> No i can't show you the two-liner, because it was Mike who suggested
> that and i have no idea ^^
>
> If you don't care where the beep comes from, you could also use the
> AudioIO package and just let your normal speaker play the beep
>
> using AudioIO
> play([sin(x) for x=0:0.03*pi:441])
>
> according to the docs on github, audioio should also work on windows.
>
> Am 28.02.2016 um 06:08 schrieb Chris Rackauckas:
> > Couldn't get Atom to buzz at all with atom.beep(). print(`\a`) only
> > works in the REPL and run(`beep`) doesn't work for me at all (on the
> > Windows computer). Could you show me that 2-line Julia function?
> >
> > On Saturday, February 27, 2016 at 4:11:53 PM UTC-8, FQ wrote:
> >
> >     from normal REPL, you could do
> >     print('\a')
> >     which "prints" the bell character. i don't know how whether that
> works
> >     for your configuration though.
> >
> >     given there's the program beep available and working on your system,
> >     you
> >     could also do
> >     run(`beep`)
> >     note the backticks, see
> >
> http://docs.julialang.org/en/release-0.4/manual/running-external-programs/
> >     <
> http://docs.julialang.org/en/release-0.4/manual/running-external-programs/
> >
> >
> >
> >     Am 28.02.2016 um 00:39 schrieb Chris Rackauckas:
> >     > Hey,
> >     >   I was wondering about a quick way to make the computer beep when
> >     code
> >     > is finished. Usually there's a beep() function. The one in Julia at
> >     > Base.Terminals.beep takes as input a terminal. Where do I find this
> >     > terminal object? If it matters, I am using Juno with Atom.
> >
>
>

Reply via email to