Menu

ls --color

Help
2005-10-13
2012-07-26
  • Nobody/Anonymous

    When I try to use "ls --color", the filelist appears with chars like <-[01;34m. How can I correct this to make the color appears, not the color code?

    (Command Prompt, Windows XP Sp2)

     
    • Keith Marshall

      Keith Marshall - 2005-10-14

      DEVICE=ANSI.SYS in the config.sys attached to your cmd.exe startup shortcut.

      This is a relic from MS-DOS; still works in Win2K, but don't know about WinXP. You may need to create the shortcut as a reference to an old MS-DOS program initially, to expose the config.sys feature, then change the command line.

      HTH.
      -- Keith

       
MongoDB Logo MongoDB