Subject: bin/8103: [PATCH] Worm display fix
To: None <gnats-bugs@gnats.netbsd.org>
From: Joseph Myers <jsm28@cam.ac.uk>
List: netbsd-bugs
Date: 07/28/1999 11:12:04
>Number:         8103
>Category:       bin
>Synopsis:       [PATCH] Worm display fix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 28 10:20:03 1999
>Last-Modified:
>Originator:     Joseph S. Myers
>Organization:
Trinity College, University of Cambridge, UK
>Release:        NetBSD anoncvs of 1999-07-27
>Environment:
[
System: Linux decomino 2.2.10 #1 Mon Jun 14 07:48:53 UTC 1999 i686 unknown
Architecture: i686
]
>Description:

This patch makes worm(6) keep the cursor on the head of the worm.

>How-To-Repeat:

Play worm in an xterm with block cursor.  Observe the improvement when
the cursor is on the head of the worm.

>Fix:

diff -ruN worm/worm.c worm+/worm.c
--- worm/worm.c	Sun Sep 13 15:27:30 1998
+++ worm+/worm.c	Wed Jul 28 11:49:47 1999
@@ -283,7 +283,10 @@
 	display(nh, HEAD);
 	head = nh;
 	if (!(slow && running))
+	{
+		wmove(tv, head->y, head->x);
 		wrefresh(tv);
+	}
 	if (!running)
 		alarm(1);
 }
>Audit-Trail:
>Unformatted: