* [U-Boot-Users] Up-arrow and Down-arrow related Query
@ 2007-01-12 13:28 Martijn de Gouw
2007-01-12 17:19 ` Timur Tabi
0 siblings, 1 reply; 6+ messages in thread
From: Martijn de Gouw @ 2007-01-12 13:28 UTC (permalink / raw)
To: u-boot
Hi,
> I need to know where the Up and Down arrow key press
> functionalities are defined.
Check common/main.c
See also this patch
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/21829/match=hist
ory
Regards,
Martijn de Gouw
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Up-arrow and Down-arrow related Query
2007-01-12 18:06 [U-Boot-Users] Up-arrow and Down-arrow related Query Kamesh K S
@ 2007-01-12 16:52 ` Wolfgang Denk
2007-02-01 10:29 ` Kamesh K S
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Denk @ 2007-01-12 16:52 UTC (permalink / raw)
To: u-boot
In message <1168625193.1678.23.camel@Kamesh> you wrote:
>
> I'm using u-boot for our custom board.
> We are customizing the Cmd Line interface of U-Boot
> to suit our needs.
Start trying to understand what's already present...
> The Up-Arrow & Down-Arrow keys don't function the way
> they do in Bash Shell prompt.
Umm... it seems you are somewhat confused about functions of the
terminal emulation running on your host computer and the imput
processing in U-Boot.
In the standard configuration, there is no such thing as "Up-Arrow"
or "Down-Arrow" keys - U-Boot is reading a character stream, and tere
is no such characters in the usedC (= ASCII) character set.
However, you can enable command completion, commandline editiong and
history functions by enabling these in your board configuration.
Then, and only then, will U-Boot respond to certain character
sequences.
> The Up-Arrow takes the cursor up the screen thru the previous
> prompt lines. Where is this Up-Arrow functionality defined ?
In the terminal emulation program running on your host system. U-Boot
is just echoing the characters in your input.
> I chkd the readline() function in common/main.c, but that does
> not take care of Up & Down arrows in Switch - Case stmts.
It does not ven know that such things might exist.
> I need to know where the Up and Down arrow key press
> functionalities are defined.
You repeat yourself.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Quote from a recent meeting: "We are going to continue having these
meetings everyday until I find out why no work is getting done."
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Up-arrow and Down-arrow related Query
2007-01-12 13:28 Martijn de Gouw
@ 2007-01-12 17:19 ` Timur Tabi
2007-01-12 17:34 ` Wolfgang Denk
0 siblings, 1 reply; 6+ messages in thread
From: Timur Tabi @ 2007-01-12 17:19 UTC (permalink / raw)
To: u-boot
Martijn de Gouw wrote:
> Hi,
>
>> I need to know where the Up and Down arrow key press
>> functionalities are defined.
>
> Check common/main.c
> See also this patch
> http://article.gmane.org/gmane.comp.boot-loaders.u-boot/21829/match=hist
> ory
Why wasn't this patch incorporated into U-Boot?
--
Timur Tabi
Linux Kernel Developer @ Freescale
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Up-arrow and Down-arrow related Query
2007-01-12 17:19 ` Timur Tabi
@ 2007-01-12 17:34 ` Wolfgang Denk
0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Denk @ 2007-01-12 17:34 UTC (permalink / raw)
To: u-boot
In message <45A7C33E.6080705@freescale.com> you wrote:
>
> > See also this patch
> > http://article.gmane.org/gmane.comp.boot-loaders.u-boot/21829/match=hist
> > ory
>
> Why wasn't this patch incorporated into U-Boot?
Because a different implementation was chosen?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Whom the gods would destroy, they first teach BASIC.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Up-arrow and Down-arrow related Query
@ 2007-01-12 18:06 Kamesh K S
2007-01-12 16:52 ` Wolfgang Denk
0 siblings, 1 reply; 6+ messages in thread
From: Kamesh K S @ 2007-01-12 18:06 UTC (permalink / raw)
To: u-boot
Hi All,
I'm using u-boot for our custom board.
We are customizing the Cmd Line interface of U-Boot
to suit our needs.
The Up-Arrow & Down-Arrow keys don't function the way
they do in Bash Shell prompt.
The Up-Arrow takes the cursor up the screen thru the previous
prompt lines. Where is this Up-Arrow functionality defined ?
Same with Down-Arrow - It takes the cursor down till u hit the
bottom of the screen ( as in a file ).
I chkd the readline() function in common/main.c, but that does
not take care of Up & Down arrows in Switch - Case stmts.
I also chkd some environment related files too, but no help.
I need to know where the Up and Down arrow key press
functionalities are defined.
Please Help !!
Rgds
Kamesh
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Up-arrow and Down-arrow related Query
2007-01-12 16:52 ` Wolfgang Denk
@ 2007-02-01 10:29 ` Kamesh K S
0 siblings, 0 replies; 6+ messages in thread
From: Kamesh K S @ 2007-02-01 10:29 UTC (permalink / raw)
To: u-boot
Hi ALL,
I went thru' the latest 1.1.6 code and found that
History command and various other command line
editing options can be enabled using the
CONFIG_CMDLINE_EDITING macro. But it does not
support command completion.
The CONFIG_AUTO_COMPLETE macro allows command
completion but that does not work in tandem with History
and other cmd line editing options(only very few cmd line
edit option work).
readline() has few cmd edit options along with command
completion.
cread_line() has many cmdline editing features available,
but command completion option is not supported.
How do we make both of them work in in u-boot environment
togather ?
Or am I missing anything ?
Thnx in Advance
Kamesh
On Fri, 2007-01-12 at 16:52, Wolfgang Denk wrote:
> In message <1168625193.1678.23.camel@Kamesh> you wrote:
> >
> > I'm using u-boot for our custom board.
> > We are customizing the Cmd Line interface of U-Boot
> > to suit our needs.
>
> Start trying to understand what's already present...
>
> > The Up-Arrow & Down-Arrow keys don't function the way
> > they do in Bash Shell prompt.
>
> Umm... it seems you are somewhat confused about functions of the
> terminal emulation running on your host computer and the imput
> processing in U-Boot.
>
> In the standard configuration, there is no such thing as "Up-Arrow"
> or "Down-Arrow" keys - U-Boot is reading a character stream, and tere
> is no such characters in the usedC (= ASCII) character set.
>
> However, you can enable command completion, commandline editiong and
> history functions by enabling these in your board configuration.
> Then, and only then, will U-Boot respond to certain character
> sequences.
>
> > The Up-Arrow takes the cursor up the screen thru the previous
> > prompt lines. Where is this Up-Arrow functionality defined ?
>
> In the terminal emulation program running on your host system. U-Boot
> is just echoing the characters in your input.
>
> > I chkd the readline() function in common/main.c, but that does
> > not take care of Up & Down arrows in Switch - Case stmts.
>
> It does not ven know that such things might exist.
>
> > I need to know where the Up and Down arrow key press
> > functionalities are defined.
>
> You repeat yourself.
>
> Best regards,
>
> Wolfgang Denk
>
> --
> Software Engineering: Embedded and Realtime Systems, Embedded Linux
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> Quote from a recent meeting: "We are going to continue having these
> meetings everyday until I find out why no work is getting done."
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-02-01 10:29 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-12 18:06 [U-Boot-Users] Up-arrow and Down-arrow related Query Kamesh K S
2007-01-12 16:52 ` Wolfgang Denk
2007-02-01 10:29 ` Kamesh K S
-- strict thread matches above, loose matches on Subject: below --
2007-01-12 13:28 Martijn de Gouw
2007-01-12 17:19 ` Timur Tabi
2007-01-12 17:34 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox