From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Tue, 11 Feb 2014 20:19:40 +0100 Subject: [U-Boot] Read line from console In-Reply-To: <52FA7158.8030703@boundarydevices.com> References: <52FA7158.8030703@boundarydevices.com> Message-ID: <20140211191940.3CDF238032B@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.