diff options
author | hubertf <hubertf@NetBSD.org> | 1999-07-28 23:09:45 +0000 |
---|---|---|
committer | hubertf <hubertf@NetBSD.org> | 1999-07-28 23:09:45 +0000 |
commit | f673749e491684614e9f9a63114b342f2164d658 (patch) | |
tree | b6c9894cb84343c2bc7c1dc9aab1542f4733c16f /worm | |
parent | 5cf4f7dc5b8648a5c814912f06ae67d589e8717d (diff) | |
download | bsdgames-darwin-f673749e491684614e9f9a63114b342f2164d658.tar.gz bsdgames-darwin-f673749e491684614e9f9a63114b342f2164d658.tar.zst bsdgames-darwin-f673749e491684614e9f9a63114b342f2164d658.zip |
This patch makes worm(6) keep the cursor on the head of the worm.
Submitted by Joseph Myers <jsm28@cam.ac.uk> in PR 8103.
Diffstat (limited to 'worm')
-rw-r--r-- | worm/worm.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/worm/worm.c b/worm/worm.c index 57e0f2dc..1d7e187f 100644 --- a/worm/worm.c +++ b/worm/worm.c @@ -1,4 +1,4 @@ -/* $NetBSD: worm.c,v 1.9 1998/09/13 15:27:30 hubertf Exp $ */ +/* $NetBSD: worm.c,v 1.10 1999/07/28 23:09:45 hubertf Exp $ */ /* * Copyright (c) 1980, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)worm.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: worm.c,v 1.9 1998/09/13 15:27:30 hubertf Exp $"); +__RCSID("$NetBSD: worm.c,v 1.10 1999/07/28 23:09:45 hubertf Exp $"); #endif #endif /* not lint */ @@ -283,7 +283,10 @@ process(ch) display(nh, HEAD); head = nh; if (!(slow && running)) + { + wmove(tv, head->y, head->x); wrefresh(tv); + } if (!running) alarm(1); } |