27 Mar, 2016
1 commit
-
Minor change: chosen is written with one "o".
No code change here, only comment & printf.Signed-off-by: Alexander Merkle
Reviewed-by: Bin Meng
28 May, 2015
1 commit
-
Previously, if the menu activated by the 'sysboot' command gets
interrupted by a Ctrl-C, the behaviour is as if the menu timeout was
reached - i.e. boot the default menu entry. This patch fixes that
so a Ctrl-C now terminates the command as the user would expect.Signed-off-by: Tuomas Tynkkynen
Reviewed-by: Simon Glass
25 Oct, 2014
1 commit
-
Signed-off-by: Jeroen Hofstee
30 May, 2014
2 commits
-
This makes it clear where the code resides.
Signed-off-by: Simon Glass
-
Move the CLI prototypes from common.h to cli.h as part of an effort to
reduce the size of common.h.Signed-off-by: Simon Glass
24 Jul, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini
29 Mar, 2013
2 commits
-
Checking the default menu item and obtaining its data can
be useful in custom menu code. Export menu_default_choice()
function which serves this purpose.Signed-off-by: Anatolij Gustschin
-
Selecting menu items is currently done in menu_interactive_choice()
by reading the user input strings from standard input.Extend menu_interactive_choice() to support user defined function
for selecting menu items. This function and its argument can be
specified when creating the menu.Signed-off-by: Pali Rohár
Signed-off-by: Anatolij Gustschin
22 Jun, 2012
1 commit
-
Make the menu timeout apply only when prompt flag is set and after the
menu is displayed. This allows auto boot to work no matter whether prompt
is set or cleared. Use the default selection if the menu times out.This also fixes the timeout value given to readline_into_buffer to be
seconds instead of 10th of seconds.Old behavior:
if prompt
display menu and wait for choice
else
wait for timeout
if key pressed
display menu and wait for choice
else
exit commandNew behavior:
if prompt
display menu
if key pressed
wait for choice
else
boot default entry on timeout
else
boot default entrySigned-off-by: Rob Herring
12 Feb, 2012
3 commits
-
Signed-off-by: Heiko Schocher
Cc: Jason Hobbs
Acked-by: Jason Hobbs -
add the possibility to show a statusline when printing a menu
Signed-off-by: Heiko Schocher
Cc: Jason Hobbs
Cc: Mike Frysinger
Acked-by: Mike Frysinger -
add possibility to add a timeout when reading a line
into a buffer.Signed-off-by: Heiko Schocher
Cc: Mike Frysinger
Acked-by: Mike Frysinger
06 Dec, 2011
1 commit
-
Fix:
menu.c: In function 'menu_item_print':
menu.c:91: warning: passing argument 1 of 'putc' makes integer from
pointer without a castSigned-off-by: Anatolij Gustschin
Acked-by: Heiko Schocher
Tested-by: Heiko Schocher
Acked-by: Marek Vasut
29 Nov, 2011
1 commit
-
common/menu.c used printf() in a number of places to print user
provided, constant strings (like the "title" string). printf() is
dangerous here for example in case the user unwittingly embeds some
'%' caracters that printf() would interpret as formatting and then
pick up random arguments. Use puts() instead.We also omit the trailing ':' in the title line - if a user wants
this, he can provide it as part of the title string.Signed-off-by: Wolfgang Denk
18 Oct, 2011
2 commits
-
Signed-off-by: Jason Hobbs
-
This will be used first by the pxe code, but is intended to be
generic and reusable for other jobs in U-boot.Signed-off-by: Jason Hobbs