Hey guys,
thanks for your answers. it helped a lot!
here is what I did:
1st i used putty as a terminal.
As for the uClinux distribution i included the minix shell (msh) and cttyhack.
in Busybox Settings --- Busybox Library Tuning i added all the
options i desired (like Command line editing, history, Tab
completion,...)
basically the answer is in this link (thanks Domingos Goncalves):
http://www.mail-archive.com/uclinux-dev@uclinux.org/msg08513.html
the problem (described in the link) is that the shell is run on
/dev/console (to see where shell is running enter tty) but you want
it to run on /dev/ttySx in order to have a controlling terminal
provided.
enter setsid cttyhack msh.
this command will automatically reopen stdio to /dev/ttyS0 and start
the msh shell. now commandline history, tab completion, etc should
work.
hope this helped.
Best Regards,
Philipp Brejcha
On Mon, Aug 8, 2011 at 5:15 PM, Alex Eremeenkov a.eremeen...@gmail.com wrote:
Hello Philipp,
You could use any busybox shell and tune it with configuration like
below(grep from my config):
#
# Busybox Library Tuning
#
CONFIG_PASSWORD_MINLEN=6
CONFIG_MD5_SIZE_VS_SPEED=2
# CONFIG_FEATURE_FAST_TOP is not set
# CONFIG_FEATURE_ETC_NETWORKS is not set
CONFIG_FEATURE_EDITING=y
CONFIG_FEATURE_EDITING_MAX_LEN=512
# CONFIG_FEATURE_EDITING_VI is not set
CONFIG_FEATURE_EDITING_HISTORY=100
# CONFIG_FEATURE_EDITING_SAVEHISTORY is not set
CONFIG_FEATURE_TAB_COMPLETION=y
CONFIG_FEATURE_USERNAME_COMPLETION=y
CONFIG_FEATURE_EDITING_FANCY_PROMPT=y
CONFIG_FEATURE_VERBOSE_CP_MESSAGE=y
CONFIG_FEATURE_COPYBUF_KB=4
CONFIG_MONOTONIC_SYSCALL=y
CONFIG_IOCTL_HEX2STR_ERROR=y
08.08.2011 17:42, Philipp Brejcha writes:
Hi all,
I am trying to get the ctrl-c command and the commandline history working in
uClinux.
I think the msh shell is the easiest way to get this working.
Do you have any hints, links, instructions how to get a commandline history
and the ctrl-c command working?
I use the version uClinux-dist-20070130 and the Kernel 2.6.x. and I would
like to compile the distribution for an LPC2478 ARM7-TDMI-S board from
Embedded Artists (LPC2478-Developers Kit).
Looking forward to hear from you guys.
Best Regards,
Philipp
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev