From f673749e491684614e9f9a63114b342f2164d658 Mon Sep 17 00:00:00 2001 From: hubertf Date: Wed, 28 Jul 1999 23:09:45 +0000 Subject: This patch makes worm(6) keep the cursor on the head of the worm. Submitted by Joseph Myers in PR 8103. --- worm/worm.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'worm') 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); } -- cgit v1.2.3-56-ge451