VOGONS


First post, by lc

User metadata
Rank Newbie
Rank
Newbie

I have a C program using "putchar(\a)" to make a beep under dos.

but under Dos bos it doent work.

any ideas to solve it

I thank you in advance

Reply 1 of 13, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

One topic is enough please.

BEL is not supported. Use some small program that deploys the pcspeaker
if you really have a need for that.

Reply 2 of 13, by lc

User metadata
Rank Newbie
Rank
Newbie

I thank you for you quick responce,
wath do you means about "deploys the pcspeaker"?

is it the same issue for putchar(\0x07);

best regards
Laurent

Reply 3 of 13, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

is it the same issue for putchar(\0x07);

Yes, this is the same character.

wath do you means about "deploys the pcspeaker"?

Write some program that turns on the pcspeaker, waits for a short
while, then turns the pcspeaker off. Then you can just execute that
program instead of your putchar() thing.

Reply 4 of 13, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Or just make a patch for DOSBox 😀

1+1=10

Reply 5 of 13, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

[note to self: kill hal by times] 😜

Can't think of any use for it at the moment though (the BEL thing, that it).

Reply 6 of 13, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I didn't say anywhere he should bother you to put it in CVS 😘

1+1=10

Reply 7 of 13, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

no but patches++

Reply 8 of 13, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Come and get me 😜

1+1=10

Reply 9 of 13, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Gotcha, but everytime i beat you you produce a *beep* how odd.

Reply 10 of 13, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I'm afraid you don't do enough damage...

(I like this one as it makes w95 shut down gracefully instead of lock or crash when told to restart)

1+1=10

Reply 11 of 13, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

there is an int 10 string printfunction as well. Saves a few calls 😉

Water flows down the stream
How to ask questions the smart way!

Reply 12 of 13, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

ah=13h?

I'd have to mess with guest memory though

1+1=10

Reply 13 of 13, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

ah yes. true. Stick with the loop then

Water flows down the stream
How to ask questions the smart way!