Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/hunt/hunt Use the curses beep function instead of writ...



details:   https://anonhg.NetBSD.org/src/rev/86b8faecd0e4
branches:  trunk
changeset: 795031:86b8faecd0e4
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Mar 30 05:48:35 2014 +0000

description:
Use the curses beep function instead of writing a beep to stdout.

diffstat:

 games/hunt/hunt/playit.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b8120cf03d4a -r 86b8faecd0e4 games/hunt/hunt/playit.c
--- a/games/hunt/hunt/playit.c  Sun Mar 30 05:46:54 2014 +0000
+++ b/games/hunt/hunt/playit.c  Sun Mar 30 05:48:35 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: playit.c,v 1.24 2014/03/30 05:44:55 dholland Exp $     */
+/*     $NetBSD: playit.c,v 1.25 2014/03/30 05:48:35 dholland Exp $     */
 /*
  * Copyright (c) 1983-2003, Regents of the University of California.
  * All rights reserved.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: playit.c,v 1.24 2014/03/30 05:44:55 dholland Exp $");
+__RCSID("$NetBSD: playit.c,v 1.25 2014/03/30 05:48:35 dholland Exp $");
 #endif /* not lint */
 
 #include <sys/file.h>
@@ -247,7 +247,7 @@
        if (count <= 0)
                return;
        if (nchar_send <= 0 && !no_beep) {
-               (void) write(1, "\7", 1);       /* CTRL('G') */
+               (void) beep();
                return;
        }
 



Home | Main Index | Thread Index | Old Index