xtd.console - Reference Guide  0.0.1
Modern c++17 library to manage terminal on Windows, macOS and Linux.

§ beep() [1/2]

template<class Char >
static void xtd::basic_console< Char >::beep ( )

Plays the sound of a beep through the console speaker.

By default, the beep plays at a frequency of 800 hertz for a duration of 200 milliseconds
The following example demonstrates the beep method. The example accepts a number from 1 through 9 as a command line argument, and plays the beep that number of times.