mirror of
https://github.com/cc65/cc65.git
synced 2025-02-11 00:31:06 +00:00
Show cursor on entering data.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5875 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
46f1085e2d
commit
ce47ebbbf4
@ -60,8 +60,9 @@ static unsigned char AskForDrive (const char* Name)
|
|||||||
unsigned char Drive = 0;
|
unsigned char Drive = 0;
|
||||||
char Char;
|
char Char;
|
||||||
|
|
||||||
cprintf ("\r\n%s Drive ID ?", Name);
|
cprintf ("\r\n%s Drive ID ? ", Name);
|
||||||
|
|
||||||
|
cursor (1);
|
||||||
do {
|
do {
|
||||||
Char = cgetc ();
|
Char = cgetc ();
|
||||||
if (isdigit (Char)) {
|
if (isdigit (Char)) {
|
||||||
@ -69,6 +70,7 @@ static unsigned char AskForDrive (const char* Name)
|
|||||||
Drive = Drive * 10 + Char - '0';
|
Drive = Drive * 10 + Char - '0';
|
||||||
}
|
}
|
||||||
} while (Char != CH_ENTER);
|
} while (Char != CH_ENTER);
|
||||||
|
cursor (0);
|
||||||
|
|
||||||
return Drive;
|
return Drive;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user