diff options
author | dholland <dholland@NetBSD.org> | 2014-03-30 05:48:35 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2014-03-30 05:48:35 +0000 |
commit | f9de6e942c437f08e341e81a1bfb965c89112787 (patch) | |
tree | 2fc066739ce7c82f0a103644a0edffb7cdbaf6f6 /hunt | |
parent | ad6d847b30dcf46c622d27dd69e4fd39630a831b (diff) | |
download | bsdgames-darwin-f9de6e942c437f08e341e81a1bfb965c89112787.tar.gz bsdgames-darwin-f9de6e942c437f08e341e81a1bfb965c89112787.tar.zst bsdgames-darwin-f9de6e942c437f08e341e81a1bfb965c89112787.zip |
Use the curses beep function instead of writing a beep to stdout.
Diffstat (limited to 'hunt')
-rw-r--r-- | hunt/hunt/playit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hunt/hunt/playit.c b/hunt/hunt/playit.c index 0b364e01..be0d5a21 100644 --- a/hunt/hunt/playit.c +++ b/hunt/hunt/playit.c @@ -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 @@ send_stuff(void) if (count <= 0) return; if (nchar_send <= 0 && !no_beep) { - (void) write(1, "\7", 1); /* CTRL('G') */ + (void) beep(); return; } |