From c284092a5320b9671afe85ce2d6548ab40175681 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sun, 7 Feb 2010 21:43:03 +0000 Subject: [PATCH] - Set cursor in ctk_draw_init() to top left corner as it is called for re-initialization on Contiki exit. --- core/ctk/ctk-conio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/ctk/ctk-conio.c b/core/ctk/ctk-conio.c index c953f1695..efdb11c68 100644 --- a/core/ctk/ctk-conio.c +++ b/core/ctk/ctk-conio.c @@ -29,7 +29,7 @@ * * This file is part of the "ctk" console GUI toolkit for cc65 * - * $Id: ctk-conio.c,v 1.12 2010/02/07 21:38:01 oliverschmidt Exp $ + * $Id: ctk-conio.c,v 1.13 2010/02/07 21:43:03 oliverschmidt Exp $ * */ @@ -77,6 +77,7 @@ ctk_draw_init(void) (void)textcolor(WINDOWCOLOR_FOCUS); screensize(&sizex, &sizey); ctk_draw_clear(0, sizey); + gotoxy(0, 0); } /*-----------------------------------------------------------------------------------*/ static void