From ce47ebbbf4fca14ef2c3897a5b70d5924615d329 Mon Sep 17 00:00:00 2001
From: "ol.sc"
Date: Tue, 23 Oct 2012 19:52:09 +0000
Subject: [PATCH] Show cursor on entering data.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5875 b7a2c559-68d2-44c3-8de9-860c34a00d81
---
samples/diodemo.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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;
}
--
2.39.5