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

2009-11-25 Thread Jonas Maebe
On 22 Nov 2009, at 19:02, Jonas Maebe wrote: On 21 Nov 2009, at 14:20, Michael Van Canneyt wrote: I have been thinking along similar lines, and made an implementation for beep that works with a handler. It's not yet committed, as I was trying to make an LCL plugin which would work on

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

2009-11-25 Thread Michael Van Canneyt
On Wed, 25 Nov 2009, Jonas Maebe wrote: On 22 Nov 2009, at 19:02, Jonas Maebe wrote: On 21 Nov 2009, at 14:20, Michael Van Canneyt wrote: I have been thinking along similar lines, and made an implementation for beep that works with a handler. It's not yet committed, as I was trying to

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

2009-11-22 Thread Jonas Maebe
On 21 Nov 2009, at 14:20, Michael Van Canneyt wrote: I have been thinking along similar lines, and made an implementation for beep that works with a handler. It's not yet committed, as I was trying to make an LCL plugin which would work on Linux/X11. Wouldn't it be better to do nothing by

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

2009-11-21 Thread fpclist
On Saturday 21 November 2009 08:56:53 Martin Schreiber wrote: On Friday 20 November 2009 21:24:17 Jorge Aldo G. de F. Junior wrote: arent there a /dev/something device for pcspeaker ? /dev/pcspkr With X11 one can use xbell(). Martin ___

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

2009-11-21 Thread Graeme Geldenhuys
The joys of Linux. I have neither /dev/pcspkr or xbell available on my Ubuntu 9.08.2 system. :-( Graeme. On 21/11/2009, fpcl...@silvermono.co.za fpcl...@silvermono.co.za wrote: On Saturday 21 November 2009 08:56:53 Martin Schreiber wrote: On Friday 20 November 2009 21:24:17 Jorge Aldo G. de

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

2009-11-21 Thread Graeme Geldenhuys
Sorry about the typo - a slip of the hand. Make that Ubuntu 8.04.2 On 21/11/2009, Graeme Geldenhuys graemeg.li...@gmail.com wrote: The joys of Linux. I have neither /dev/pcspkr or xbell available on my Ubuntu 9.08.2 system. :-( Graeme. Regards, - Graeme -

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

2009-11-21 Thread Andrew Haines
Michael Van Canneyt wrote: By that rationale: no beep() on linux. Can beep be made a procvar? Regards, Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2009-11-21 Thread Michael Van Canneyt
On Sat, 21 Nov 2009, Andrew Haines wrote: Michael Van Canneyt wrote: By that rationale: no beep() on linux. Can beep be made a procvar? I have been thinking along similar lines, and made an implementation for beep that works with a handler. It's not yet committed, as I was trying to

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

2009-11-20 Thread Michael Van Canneyt
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. :-)

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

2009-11-20 Thread Jonas Maebe
On 20 Nov 2009, at 11:51, Michael Van Canneyt wrote: No, because you don't know if a terminal is available or whether standard output is writable. And I guess that if the crt unit is used, it would just put some strange character on the screen. Jonas

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

2009-11-20 Thread Graeme Geldenhuys
Michael Van Canneyt wrote: No, because you don't know if a terminal is available or whether standard output is writable. As far as I know stdout is always available for Linux. Even if I compile applications for X11 and launch them from a desktop icon, I can do writeln() calls without problems

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

2009-11-20 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: No, because you don't know if a terminal is available or whether standard output is writable. As far as I know stdout is always available for Linux. Even if I compile applications for X11 and launch them from a desktop icon, I can do

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

2009-11-20 Thread Michael Van Canneyt
On Fri, 20 Nov 2009, Graeme Geldenhuys wrote: Michael Van Canneyt wrote: No, because you don't know if a terminal is available or whether standard output is writable. As far as I know stdout is always available for Linux. Even if I compile applications for X11 and launch them from a

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

2009-11-20 Thread Graeme Geldenhuys
Michael Van Canneyt wrote: No, the application can (for instance almost all daemons do) close stdout. Programs that use ncurses will also be messed-up. Ah, ok. For CGI programs, stdout is also reserved for the HTML output. Imagine someone else's code doing a beep, and it ends up in your

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

2009-11-20 Thread Michael Van Canneyt
On Fri, 20 Nov 2009, Graeme Geldenhuys wrote: Michael Van Canneyt wrote: No, the application can (for instance almost all daemons do) close stdout. Programs that use ncurses will also be messed-up. Ah, ok. For CGI programs, stdout is also reserved for the HTML output. Imagine someone

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

2009-11-20 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: Possible alternatives: Maybe under Linux the system.beep() can make a sound if stdout is available, otherwise write the word beep to the console (like the old silent movies did on screen), or flash the Scroll Lock keyboard light. :-) Sure. How

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

2009-11-20 Thread Jorge Aldo G. de F. Junior
arent there a /dev/something device for pcspeaker ? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2009-11-20 Thread Martin Schreiber
On Friday 20 November 2009 21:24:17 Jorge Aldo G. de F. Junior wrote: arent there a /dev/something device for pcspeaker ? With X11 one can use xbell(). Martin ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

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

2009-11-18 Thread Bruce Bauman
I'm porting some code which beeps the console. When I use sysutils.beep() it doesn't work under Linux. What's the easiest way to accomplish this? Thanks. -- Bruce CONFIDENTIALITY NOTICE: This e-mail is confidential and intended solely for the use of the individual or entity to which it is

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

2009-11-18 Thread David Butler
Try writing Ctrl-G (#7) out to the terminal. 2009/11/18 Bruce Bauman bruce.bau...@andesaservices.com: I'm porting some code which beeps the console. When I use sysutils.beep() it doesn't work under Linux. What's the easiest way to accomplish this? Thanks. -- Bruce CONFIDENTIALITY

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

2009-11-18 Thread Graeme Geldenhuys
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;