[U-Boot] Read line from console

Hi all,
I have a n00b question.
Is there any facility for reading a line of text from the console, so we can prompt a user?
I feel certain there must be a way to read a string into a variable, but can't seem to find one...
Please advise,
Eric

Dear Eric,
In message 52FA7158.8030703@boundarydevices.com you wrote:
Is there any facility for reading a line of text from the console, so we can prompt a user?
Do you mean in C code, or as CLI command?
I feel certain there must be a way to read a string into a variable, but can't seem to find one...
The first would be readline(), the second "env ask" (or "askenv").
Best regards,
Wolfgang Denk

Thanks Wolfgang,
On 02/11/2014 12:19 PM, Wolfgang Denk wrote:
Dear Eric,
In message 52FA7158.8030703@boundarydevices.com you wrote:
Is there any facility for reading a line of text from the console, so we can prompt a user?
Do you mean in C code, or as CLI command?
CLI command.
I feel certain there must be a way to read a string into a variable, but can't seem to find one...
The first would be readline(), the second "env ask" (or "askenv").
Perfect.
And now that I know what I'm looking for, well documented!
Regards,
Eric
participants (2)
-
Eric Nelson
-
Wolfgang Denk