From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Read line from console
Date: Tue, 11 Feb 2014 20:19:40 +0100 [thread overview]
Message-ID: <20140211191940.3CDF238032B@gemini.denx.de> (raw)
In-Reply-To: <52FA7158.8030703@boundarydevices.com>
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.
next prev parent reply other threads:[~2014-02-11 19:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-11 18:52 [U-Boot] Read line from console Eric Nelson
2014-02-11 19:19 ` Wolfgang Denk [this message]
2014-02-13 4:26 ` Eric Nelson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140211191940.3CDF238032B@gemini.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox