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

Graeme Geldenhuys graeme at mastermaths.co.za
Thu Nov 19 08:11:21 CET 2009


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.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/




More information about the fpc-pascal mailing list