From: ol.sc Date: Tue, 23 Oct 2012 19:52:09 +0000 (+0000) Subject: Show cursor on entering data. X-Git-Tag: V2.14~199 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ce47ebbbf4fca14ef2c3897a5b70d5924615d329;p=cc65 Show cursor on entering data. git-svn-id: svn://svn.cc65.org/cc65/trunk@5875 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/samples/diodemo.c b/samples/diodemo.c index ba97184ac..752c2f78a 100644 --- a/samples/diodemo.c +++ b/samples/diodemo.c @@ -60,8 +60,9 @@ static unsigned char AskForDrive (const char* Name) unsigned char Drive = 0; char Char; - cprintf ("\r\n%s Drive ID ?", Name); + cprintf ("\r\n%s Drive ID ? ", Name); + cursor (1); do { Char = cgetc (); if (isdigit (Char)) { @@ -69,6 +70,7 @@ static unsigned char AskForDrive (const char* Name) Drive = Drive * 10 + Char - '0'; } } while (Char != CH_ENTER); + cursor (0); return Drive; }