The ASCII character CHAR(7) is the bell, i.e. a beep sound.
When I print it, there is no sound. How come, and how do I
get that sound from a Fortran program?
You might check to see if your audio is muted, or the level turned down low.
The ASCII character CHAR(7) is the bell, i.e. a beep sound.
When I print it, there is no sound. How come, and how do I
get that sound from a Fortran program?
On Tuesday, September 28, 2021 at 6:09:05 PM UTC+2, gah4 wrote:
You might check to see if your audio is muted, or the level turned down
low.
I tried this on a Windows machine in the standard command window (and
the loudspeaker on - which I normally don't have). A program writing a
single BEL character (achar(7)) to standard output does produce a bell
sound. I tried with both gfortran and Intel Fortran oneAPI and the
result was the same.
Regards,
Arjen
On Wed, 29 Sep 2021 07:36:40 -0700, Arjen Markus wrote:
On Tuesday, September 28, 2021 at 6:09:05 PM UTC+2, gah4 wrote:
You might check to see if your audio is muted, or the level turned down
low.
I tried this on a Windows machine in the standard command window (and
the loudspeaker on - which I normally don't have). A program writing a single BEL character (achar(7)) to standard output does produce a bell sound. I tried with both gfortran and Intel Fortran oneAPI and the
result was the same.
Regards,
Arjen
Thanks. It doesn't work on my laptop. I tried ACHAR(7) and put on head phones, but no beep, The alptop can make them, and I often get noises
to indicate errors of various sorts, but it seems, not from a Fortran
program with print. I'll have to live without it.
I want this for a program that warns me of imminent birthdays and appointments when I turn on the console, to remind me to read what it
outputs on the screen.
The ASCII character CHAR(7) is the bell, i.e. a beep sound.
When I print it, there is no sound. How come, and how do I
get that sound from a Fortran program?
On Tue, 28 Sep 2021, Dieter Britz wrote:
The ASCII character CHAR(7) is the bell, i.e. a beep sound.
When I print it, there is no sound. How come, and how do I
get that sound from a Fortran program?
This is not a Fortran question, the actual generation of the sound
depends on your hardware and operating system.
On Thursday, October 21, 2021 at 4:18:39 AM UTC-7, LC's No-Spam Newsreading account wrote:
On Tue, 28 Sep 2021, Dieter Britz wrote:
The ASCII character CHAR(7) is the bell, i.e. a beep sound.
When I print it, there is no sound. How come, and how do I
get that sound from a Fortran program?
This is not a Fortran question, the actual generation of the sound
depends on your hardware and operating system.
There might be some I/O libraries that block some control characters.
I believe that is rare now, but maybe not always.
When microprocessor controlled terminals were first introduced, they
often had many interesting features activated by control characters.
There were many fun tricks you could play one someone, and many
people did use those tricks.
But yes, the usual Fortran systems now pass control characters,
and it is up to the users (real or emulated) terminal to process them.
But yes, the usual Fortran systems now pass control characters,
and it is up to the users (real or emulated) terminal to process them.
There isn't actually a terminal in most cases now, just a terminal
emulator that has in some cases been dumbed down over time.
This is not a Fortran question, the actual generation of the sound
depends on your hardware and operating system.
But yes, the usual Fortran systems now pass control characters,
and it is up to the users (real or emulated) terminal to process them.
There isn't actually a terminal in most cases now, just a terminal
emulator that has in some cases been dumbed down over time.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 159 |
Nodes: | 16 (0 / 16) |
Uptime: | 100:02:13 |
Calls: | 3,209 |
Files: | 10,563 |
Messages: | 3,009,979 |