I often write consoles for various things (and I've made my own library - but it's quite limited), I do this mainly because the Windows command line sucks. Is there an open source library I can use for writing such command line applications? By console, I mean a command prompt with auto-complete (tab) and copy/paste.
Update:
Please do not recommend that I use something other than cmd.exe (e.g. PowerShell), since PowerShell may not always be available. Also, I'm looking for a library that makes my application behave like a command line interpreter; I'm not looking for a library that helps me parse command arguments.