comparison scripts/io/beep.m @ 21634:96518f623c91

Backed out changeset dcf8922b724b
author Mike Miller <mtmiller@octave.org>
date Wed, 20 Apr 2016 11:06:03 -0700
parents dcf8922b724b
children bac0d6f07a3e
comparison
equal deleted inserted replaced
21633:dcf8922b724b 21634:96518f623c91
21 ## Produce a beep from the speaker (or visual bell). 21 ## Produce a beep from the speaker (or visual bell).
22 ## 22 ##
23 ## This function sends the alarm character @qcode{"@xbackslashchar{}a"} to 23 ## This function sends the alarm character @qcode{"@xbackslashchar{}a"} to
24 ## the terminal. Depending on the user's configuration this may produce an 24 ## the terminal. Depending on the user's configuration this may produce an
25 ## audible beep, a visual bell, or nothing at all. 25 ## audible beep, a visual bell, or nothing at all.
26 ## @seealso{fputs, fprintf} 26 ## @seealso{puts, fputs, printf, fprintf}
27 ## @end deftypefn 27 ## @end deftypefn
28 28
29 ## Author: jwe 29 ## Author: jwe
30 30
31 function beep () 31 function beep ()
32 32
33 if (nargin != 0) 33 if (nargin != 0)
34 print_usage (); 34 print_usage ();
35 endif 35 endif
36 36
37 fputs ("\a"); 37 puts ("\a");
38 38
39 endfunction 39 endfunction
40 40
41 41
42 %!error (beep (1)) 42 %!error (beep (1))
43