All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Read line from console
@ 2014-02-11 18:52 Eric Nelson
  2014-02-11 19:19 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Nelson @ 2014-02-11 18:52 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Read line from console
  2014-02-11 18:52 [U-Boot] Read line from console Eric Nelson
@ 2014-02-11 19:19 ` Wolfgang Denk
  2014-02-13  4:26   ` Eric Nelson
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2014-02-11 19:19 UTC (permalink / raw)
  To: u-boot

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

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Hindsight is an exact science.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Read line from console
  2014-02-11 19:19 ` Wolfgang Denk
@ 2014-02-13  4:26   ` Eric Nelson
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Nelson @ 2014-02-13  4:26 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-13  4:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-11 18:52 [U-Boot] Read line from console Eric Nelson
2014-02-11 19:19 ` Wolfgang Denk
2014-02-13  4:26   ` Eric Nelson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.