From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Nelson Date: Wed, 12 Feb 2014 21:26:00 -0700 Subject: [U-Boot] Read line from console In-Reply-To: <20140211191940.3CDF238032B@gemini.denx.de> References: <52FA7158.8030703@boundarydevices.com> <20140211191940.3CDF238032B@gemini.denx.de> Message-ID: <52FC4958.5090008@boundarydevices.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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