[fpc-pascal] sysutils.beep doesn't beep under Linux?

Michael Van Canneyt michael at freepascal.org
Fri Nov 20 11:51:45 CET 2009

On Thu, 19 Nov 2009, Graeme Geldenhuys wrote:

> Bruce Bauman wrote:
>> I'm porting some code which "beeps" the console. When I use
>> sysutils.beep() it doesn't work under Linux.
> Looking at it's implementation in FPC 2.4.0-rc1 (Linux) I can indeed see
> why it doesn't beep. :-)
> --------------------------
> procedure Beep;
> begin
> end;
> --------------------------
> As David suggested, simply write #7 character to the console and it will
> beep.  I wonder if we can't use that for the Linux sysutils.beep
> implementation.

No, because you don't know if a terminal is available or whether standard
output is writable.


More information about the fpc-pascal mailing list