delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/19/09:27:28

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem under Win98 DOS box
Date: 19 Feb 2001 14:10:36 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 27
Message-ID: <96r9gs$qiu$1@nets3.rz.RWTH-Aachen.DE>
References: <3A9011DC DOT 4CF3CC5F AT tin DOT it>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 982591836 27230 137.226.32.75 (19 Feb 2001 14:10:36 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 19 Feb 2001 14:10:36 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Vincenzo Morello <morellov AT tin DOT it> wrote:
> I use:
> 	putchar('\07');

That had better be

	putchar('\a');

in programs meant to be portable. On most platforms, '\a' is actually
'\07', the BEL character defined in the ASCII charset. But there are
others...

> to emit a beep under DJGPP+GRX.

> When calling this function under Windows 98 DOS box, the graphic screen often
> locks and further graphics output will not be drawn correctly.

I've no idea what might cause that.

> Is there an alternate way to play a beep in DJGPP ?

Yes: the libc function pair sound() and nosound(). They'll even let
you control the frequency and duration of the beep. I.e. you can
boooooop instead of beep, if you want to.
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019