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
>`Print's.
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() { initscr(); beep(); endwin(); return 0; }
Compile/link it:
cc beep.c -o beep -lcurses
and then within Gap you can do
Exec("beep");
to produce a beep.
This beep stuff should be easy to incorporate in GAP, IMHO.
HTH,
Dmitrii Pasechnik
http://www.cs.uu.nl/staff/dima.html