Terminal control/Ringing the terminal bell

Terminal control/Ringing the terminal bell
You are encouraged to solve this task according to the task description, using any language you may know.

Task

Make the terminal running the program ring its "bell".

On modern terminal emulators, this may be done by playing some other sound which might or might not be configurable, or by flashing the title bar or inverting the colors of the screen, but was classically a physical bell within the terminal. It is usually used to indicate a problem where a wrong character has been typed.

In most terminals, if the Bell character (ASCII code 7, \a in C) is printed by the program, it will cause the terminal to ring its bell. This is a function of the terminal, and is independent of the programming language of the program, other than the ability to print a particular character to standard out.

// the simple version:System.Console.Write("\a");// will beepSystem.Threading.Thread.Sleep(1000);// will wait for 1 secondSystem.Console.Beep();// will beep a second timeSystem.Threading.Thread.Sleep(1000);

M2000 Environment has own console (not the one provided from system). Console used for graphics, and has 32 layers for text or and graphics and as sprites too. We can alter the console by code, moving to any monitor, changing font, font size and, line space. Also there is a split function, where the lower part can scroll, and the upper part used as header (we can write/draw in the upper part also, but CLS - clear screen- statement clear only the lower part).

say bell /*sound the bell on the terminal. */saycopies(bell, 20)/*as above, but much more annoying. */

/*╔═══════════════════════════════════════════════════════════════╗ ║ ║ ║ Some REXX interpreters have a built-in function (BIF) to ║ ║ to produce a sound on the PC speaker, the sound is specified ║ ║ by frequency and an optional duration. ║ ║ ║ ╚═══════════════════════════════════════════════════════════════╝*/