aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli.c
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-05-03 19:49:20 +0200
committerErwan Velu <erwan.velu@free.fr>2009-05-03 19:49:20 +0200
commit16da4bf8a346e3fc7abf75d0ad903a088301dccc (patch)
treece3305573e8919002a9b177d16d2dd9501f31b82 /com32/hdt/hdt-cli.c
parent3e5b7b7a03bc8264c2b68b2a3a174ec548b65f37 (diff)
downloadsyslinux-16da4bf8a346e3fc7abf75d0ad903a088301dccc.tar.gz
syslinux-16da4bf8a346e3fc7abf75d0ad903a088301dccc.tar.xz
syslinux-16da4bf8a346e3fc7abf75d0ad903a088301dccc.zip
hdt: Input cursor is now blinking
Impact: Improve user experience This commit let the cursor blinking while waiting for a keyboard input. The blinking mode seems to fails under qemu but works fine on real hardware.
Diffstat (limited to 'com32/hdt/hdt-cli.c')
-rw-r--r--com32/hdt/hdt-cli.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c
index 7e8954c8..c8d9ce8b 100644
--- a/com32/hdt/hdt-cli.c
+++ b/com32/hdt/hdt-cli.c
@@ -776,9 +776,16 @@ void start_cli_mode(struct s_hardware *hardware)
while (hdt_cli.mode != EXIT_MODE) {
- //fgets(cli_line, sizeof cli_line, stdin);
+ /* Let's put the cursor blinking until we get an input */
+ set_cursor_blink(true);
+
+ /* We wait endlessly for a keyboard input*/
current_key = get_key(stdin, 0);
+ /* We have to cancel the blinking mode to prevent
+ * input text to blink */
+ set_cursor_blink(false);
+
/* Reset autocomplete buffer unless TAB is pressed */
if (current_key != KEY_TAB)
autocomplete_destroy_list();