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.
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal