[Android Q&A, Help & Troubleshooting] rocketero:
hello, I need some assistance regarding a strange characters when using ADB commands from MSDOS window.

In my tablet that is running Android ICS 4.0.4, and is rooted, I replaced most of the commands that TOOLBOX was assign to issue in /system/bin. I replaced them with BUSYBOX commands, and everything works fine from the standpoint of the tablet.

But somehow I started to get some weird characters when using the LS command in ADB shell from a PC. so it happened right away after the replacement.

So I did a listing of the root files and folders in the tablet form my PC with the command:

adb shell ls -la /

and this is what I got:

C:\Windows\system32>adb shell ls -la /

total 285

drwxr-xr-x 16 root root 0 Sep 12 11:59 ←[1;34m.←[0m

drwxr-xr-x 16 root root 0 Sep 12 11:59 ←[1;34m..←[0m

drwxr-xr-x 3 root root 0 Sep 12 11:59 ←[1;34macct←[0m

drwxrwx--- 4 system cache 4096 Sep 12 13:01 ←[1;34mcache←[0m

dr-x------ 2 root root 0 Sep 12 11:59 ←[1;34mconfig←[0m

lrwxrwxrwx 1 root root 17 Sep 12 11:59 ←[1;36md←[0m -> ←[1;34m/sys/kernel/debug←[0m

drwxrwx--x 25 system system 4096 Sep 6 23:22 ←[1;34mdata←[0m

-rw-r--r-- 1 root root 89 Dec 31 1969 ←[0;0mdefault.prop←[0m

drwxr-xr-x 12 root root 14240 Sep 12 12:09 ←[1;34mdev←[0m

lrwxrwxrwx 1 root root 11 Sep 12 11:59 ←[1;36metc←[0m -> ←[1;34m/system/etc←[0m

drwxrwxrwx 3 root root 16384 Dec 31 1969 ←[1;34mfirmware←[0m

-rwxr-x--- 1 root root 98736 Dec 31 1969 ←[1;32minit←[0m

-rwxr-x--- 1 root root 2344 Dec 31 1969 ←[1;32minit.goldfish.rc←[0m

-rwxr-x--- 1 root root 15813 Dec 31 1969 ←[1;32minit.qcom.rc←[0m

-rwxr-x--- 1 root root 11014 Dec 31 1969 ←[1;32minit.qcom.sh←[0m

-rwxr-x--- 1 root root 30858 Dec 31 1969 ←[1;32minit.qcom.usb.rc←[0m

-rwxr-x--- 1 root root 8786 Dec 31 1969 ←[1;32minit.qcom.usb.sh←[0m

-rwxr-x--- 1 root root 19420 Dec 31 1969 ←[1;32minit.rc←[0m

-rwxr-x--- 1 root root 3491 Dec 31 1969 ←[1;32minit.target.rc←[0m

-rwxr-x--- 1 root root 12760 Dec 31 1969 ←[1;32minitlogo.rle←[0m

drwxrwxr-x 6 root system 0 Sep 12 11:59 ←[1;34mmnt←[0m

drwxrwx--x 4 system system 1024 Jul 19 22:25 ←[1;34mpersist←[0m

dr-xr-xr-x 900 root root 0 Dec 31 1969 ←[1;34mproc←[0m

drwx------ 2 root root 0 Jun 27 05:47 ←[1;34mroot←[0m

drwxr-x--- 2 root root 0 Dec 31 1969 ←[1;34msbin←[0m

lrwxrwxrwx 1 root root 11 Sep 12 11:59 ←[1;36msdcard←[0m -> ←[1;34m/mnt/sdcard←[0m

drwxr-xr-x 12 root root 0 Sep 12 11:59 ←[1;34msys←[0m

drwxr-xr-x 14 root root 4096 Sep 6 23:20 ←[1;34msystem←[0m

drwxr-xr-x 5 root root 4096 Jul 19 22:25 ←[1;34mtombstones←[0m

-rw-r--r-- 1 root root 272 Dec 31 1969 ←[0;0mueventd.goldfish.rc←[0m

-rw-r--r-- 1 root root 8338 Dec 31 1969 ←[0;0mueventd.rc←[0m

lrwxrwxrwx 1 root root 14 Sep 12 11:59 ←[1;36mvendor←[0m -> ←[1;34m/system/vendor←[0m

But from the tablet when I issue the command ls -la / i get the normal listing but in shows in COLOR, so I''m guessing that <-[1;36m in ADB represents a color ([0,0m for white, [1;34m for dark blue, etc), but how do I go to show color listing in ADB shell in my PC ?

Before when TOOLBOX was handing the LS command there was not color in the listing, but now with BUSYBOX handling the LS command I get nice different colors for files/folders/scripts, etc.

Any way I can fix this from the standpoint of the Widows PC MSDOS window with ADB shell listing files with LS in also in color ???

much appreciated, regards.

UPDATE:

I found out that I can list with ADB shell without those strange characters (in other words with NO COLOR) with the following command:

adb shell ls -la --color=never /

but it would be nice not to have to type --color=never every time I want a listing and better find a way to list it with color from PC in MSDOS window.