[BusyBox] Re:Problem with ECHO -en
Jonas Holmberg
jonas.holmberg at axis.com
Wed Feb 20 02:16:03 UTC 2002
> Normally with regular Red Hat installed the following will change the
> text to red:
> echo -ne "\\033[1;31m"
> It will also leave the cursor on the same line.
> According to Busybox help, this can be done as well.
> However in practice you can't get the -n and the -e to work together.
> Only separate:
> echo -e "\\033[1;31m"
> Successful at changing color
> echo -n "Stay on this line: "
> Successful at staying put
> but if you do this:
> echo -ne "\\033[1;31m"
> -ne \033[1;31m
> echo -n -e "\\033[1;31m"
> -e \033[1;31m#
> echo -e -n "\\033[1;31m"
> Success at color change but puts a -n on the screen
Are you sure that you are using busybox echo? Try "/bin/echo" or
"busybox echo". Maybe you are using an echo builtin in your shell?
/Jonas
More information about the busybox
mailing list