On Thu, 19 Dec 2019 17:55:24 +0100
"R.Wieser" wrote:
> Using Python I printed a "\a" (which google said would generate a beep),
> but got nothing (other than displaying a "landline telephone"
> character). Is there another way to generate (a simple) sound using
> Python (other than shelling to to an external program I mean) ?
None too sure about from python but from a shell prompt:
echo ^G
should work. You type the control-G (ASCII BEL) at the command line
by first typing control-V (which prevents the CLI interpreter from mangling
the next character) then control-G. This should work from any terminal or
console in just about any unix-like environment.
--
Steve O'Hara-Smith | Directable Mirror Arrays
C:\>WIN | A better way to focus the sun
The computer obeys and wins. | licences available see
You lose and Bill collects. | http://www.sohara.org/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|