> < ^ Date: Thu, 13 Apr 2000 21:39:15 +0200 (MET DST)
> < ^ From: Dmitrii Pasechnik <d.pasechnik@twi.tudelft.nl >
^ Subject: Re: beep

Dear Gap-Forum,

On Thu, 13 Apr 2000, Alexander Hulpke wrote:
>Alexander Konovalov asked:
>> 1. Is there a way in GAP to generate sound signal ?
>Printing CTRL-G from within a string might produce a beep, depending on your
>type of machine and operating system (but this is not a supported feature).
>To get a longer beep you'll have to use for-llops for delay between several

On most Unix systems (System V, at least, i.e. Linux, *BSD, SunOS, etc), a
Curses library is available to control
terminals. The following short C program would make a beep:

/* file    beep.c                 */
#include <curses.h>
int main() {
  return 0;

Compile/link it:
cc beep.c -o beep -lcurses

and then within Gap you can do
to produce a beep.

This beep stuff should be easy to incorporate in GAP, IMHO.


Dmitrii Pasechnik

> < [top]