date and time created 88/10/19 15:27:18 by bostic
[unix-history] / usr / src / games / mille / misc.c
index 08dcb58..bc5694f 100644 (file)
@@ -3,15 +3,20 @@
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms are permitted
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms are permitted
- * provided that this notice is preserved and that due credit is given
- * to the University of California at Berkeley. The name of the University
- * may not be used to endorse or promote products derived from this
- * software without specific prior written permission. This software
- * is provided ``as is'' without express or implied warranty.
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)misc.c     5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)misc.c     5.4 (Berkeley) %G%";
 #endif /* not lint */
 
 #include       "mille.h"
 #endif /* not lint */
 
 #include       "mille.h"
@@ -39,7 +44,7 @@ char  *str;
        stdscr = Score;
        mvprintw(ERR_Y, ERR_X, str, arg);
        clrtoeol();
        stdscr = Score;
        mvprintw(ERR_Y, ERR_X, str, arg);
        clrtoeol();
-       putchar('\a');
+       putchar('\07');
        refresh();
        stdscr = Board;
        return FALSE;
        refresh();
        stdscr = Board;
        return FALSE;
@@ -68,7 +73,7 @@ getcard()
                        c = 0;
                        break;
                  default:
                        c = 0;
                        break;
                  default:
-                       putchar('\a');
+                       putchar('\07');
                        addch('\b');
                        if (!isprint(c))
                                addch('\b');
                        addch('\b');
                        if (!isprint(c))
                                addch('\b');
@@ -87,7 +92,7 @@ getcard()
                                        goto cont;
                                }
                                else
                                        goto cont;
                                }
                                else
-                                       write(0, "\a", 1);
+                                       write(0, "\07", 1);
                        return c;
                }
 cont:          ;
                        return c;
                }
 cont:          ;
@@ -178,7 +183,7 @@ register int        promptno; {
                  default:
                        addstr(unctrl(c));
                        refresh();
                  default:
                        addstr(unctrl(c));
                        refresh();
-                       putchar('\a');
+                       putchar('\07');
                        break;
                }
        }
                        break;
                }
        }