summaryrefslogtreecommitdiff
path: root/games/worm
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2014-01-28 14:30:29 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2014-01-28 14:30:29 +0000
commitad3bfb084c679ea638613cf694e40d0542187607 (patch)
tree974c3a29227ff822aee3cbf849bb10ed6db509cf /games/worm
parent6c8a9f258b718fd6c2834b0d36665df9af7b1c30 (diff)
from pjanzen:
Start with the cursor on the worm's head. ok millert
Diffstat (limited to 'games/worm')
-rw-r--r--games/worm/worm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/games/worm/worm.c b/games/worm/worm.c
index 9cbe0d4bf99..4b3a211f30a 100644
--- a/games/worm/worm.c
+++ b/games/worm/worm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: worm.c,v 1.25 2014/01/28 14:28:44 jmc Exp $ */
+/* $OpenBSD: worm.c,v 1.26 2014/01/28 14:30:28 jmc Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -126,6 +126,8 @@ main(int argc, char **argv)
wrefresh(tv);
life(); /* Create the worm */
prize(); /* Put up a goal */
+ wmove(tv, head->y, head->x); /* Leave cursor on worm */
+ wrefresh(tv);
while(1)
{
if (wantleave) {