From de4d1a52a2092219d32f0f0b88b2f3efa7cee540 Mon Sep 17 00:00:00 2001 From: christos Date: Fri, 27 Aug 2004 09:07:08 +0000 Subject: - sleep a little in autobot mode so that we can see what is happening. - use refresh() instead of wrefresh() --- robots/move.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'robots') diff --git a/robots/move.c b/robots/move.c index d224b650..7edaae35 100644 --- a/robots/move.c +++ b/robots/move.c @@ -1,4 +1,4 @@ -/* $NetBSD: move.c,v 1.11 2003/08/07 09:37:36 agc Exp $ */ +/* $NetBSD: move.c,v 1.12 2004/08/27 09:07:08 christos Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: move.c,v 1.11 2003/08/07 09:37:36 agc Exp $"); +__RCSID("$NetBSD: move.c,v 1.12 2004/08/27 09:07:08 christos Exp $"); #endif #endif /* not lint */ @@ -90,9 +90,13 @@ get_move() #endif else { over: - if (Auto_bot) + if (Auto_bot) { c = automove(); - else + if (!Jump) { + usleep(10000); + refresh(); + } + } else c = getchar(); if (isdigit(c)) { Count = (c - '0'); @@ -181,7 +185,7 @@ teleport: flush_in(); goto ret; case CTRL('L'): - wrefresh(curscr); + refresh(); break; case EOF: break; -- cgit v1.2.3-56-ge451