summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-05-03 17:53:49 (GMT)
committerErwan Velu <erwan.velu@free.fr>2009-05-03 17:53:49 (GMT)
commitb7817ae596d1f9b79d027210f0e7958da3516cb6 (patch)
tree12b12a250213c6ab8f0aa875030cb14d30dcba49
parent16da4bf8a346e3fc7abf75d0ad903a088301dccc (diff)
downloadhdt-b7817ae596d1f9b79d027210f0e7958da3516cb6.zip
hdt-b7817ae596d1f9b79d027210f0e7958da3516cb6.tar.gz
hdt-b7817ae596d1f9b79d027210f0e7958da3516cb6.tar.bz2
hdt-b7817ae596d1f9b79d027210f0e7958da3516cb6.tar.xz
hdt: fixing cursor disapearing
Impact: Improve user experience After some commands, the cursor was disapearing. That could confuse users. This commit resolve this weird cases.
-rw-r--r--com32/hdt/hdt-cli.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c
index c8d9ce8..030757d 100644
--- a/com32/hdt/hdt-cli.c
+++ b/com32/hdt/hdt-cli.c
@@ -769,13 +769,13 @@ void start_cli_mode(struct s_hardware *hardware)
printf("Entering CLI mode\n");
- /* Display the cursor */
- display_cursor(true);
-
reset_prompt();
while (hdt_cli.mode != EXIT_MODE) {
+ /* Display the cursor */
+ display_cursor(true);
+
/* Let's put the cursor blinking until we get an input */
set_cursor_blink(true);