gpt4 book ai didi

ascii - 当一个人在任何编程语言中使用 "ACSII BEL"字符即 '\a' 时?

转载 作者:行者123 更新时间:2023-12-02 01:03:28 24 4
gpt4 key购买 nike

我在一本书中偶然发现了花哨的 ASCII BEL。然后我(简要地)阅读了维基百科上关于 ASCII BEl 的文章,并且确实知道它会产生噪音(警报噪音)。

在 python(3) 中尝试过,在 C 中尝试过,但没有用。可能现在人们不需要铃铛什么的。

最佳答案

现在很少用了,很多主机都不支持。如果你对它的历史感兴趣,我从微软找到了这个:

A long time ago, all PC computers shared a common 8254 programable interval timer chip for the generation of primitive sounds. The Beep function was written specifically to emit a beep on that piece of hardware.

On these older systems, muting and volume controls have no effect on Beep; you would still hear the tone. To silence the tone, you used the following commands:

net stop beep
sc config beep start= disabled

Since then, sound cards have become standard equipment on almost all PC computers. As sound cards became more common, manufacturers began to remove the old timer chip from computers. The chips were also excluded from the design of server computers. The result is that Beep did not work on all computers without the chip. This was okay because most developers had moved on to calling the MessageBeep function that uses whatever is the default sound device instead of the 8254 chip.

Eventually because of the lack of hardware to communicate with, support for Beep was dropped in Windows Vista and Windows XP 64-Bit Edition.

关于ascii - 当一个人在任何编程语言中使用 "ACSII BEL"字符即 '\a' 时?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49071465/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com