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/c6effc2bedcd
branches: trunk
changeset: 328291:c6effc2bedcd
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 5d0b0cc7c1ac -r c6effc2bedcd 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