Turned out to be pretty hard to find a decent alternative >that's free<. Take command, Powercmd (Love it how it says "free download" on the site, but then asks for a license upon running - Download is free, doing something with the download isn't -.-) both cost money, so no option.
Unfortunately these 2 are in my opinion the only 2 decent ones.
Then there's Console(2) which is praised so much. http://sourceforge.n...ojects/console/
No idea why they say "great tool for developers", "extremely useful", "awesome",... It's just as bad as cmd.exe, just a different look.
Having to navigate to a folder 5 levels deep, and I don't know the exact path. I still end up doing 'dir', CD'ing 1 folder deep. 'dir' to see the new subfolders, cd again, dir, cd, dir, cd, dir, cd to FINALLY reach the destination because the tab completion only completes depending on the current working dir and does not care what has already been typed (okay it does, if you use backslashes. I personally never use those. too hard to type on an azerty keyboard).
And for tab completion to work properly you better know at least the first letter or you end up cycling trough every single folder - and you properly tab right over the folder you were supposed to get. Meaning you can go for another lap or backspace the current suggestion out and start typing.
Anyway, So I just made my own console in Java, implementing everything that I care about.
(Screenshots improve more the lower you go in the post. This was the first implementation of console, newer versions are added lower with more features)
Autocomplete, triggered by pressing ANY key except ESC, arrow up/down, and enter:
new autocomplete gets shown after a space for passing parameters:
Tab completion: Pressing tab will take the first element of the autocomplete popup (excluding ../).
Running a bat file / exe / java / anything:
The input field remains active - any input typed when something is running will be send to the running program, NOT to the console.
Kill running processes:
You'll always see (at least) 2 processes being killed. The process you've started (bat / java /exe / ...) + in the background I use cmd.exe, so that's also killed
Input, output and errors have their own color:
Right click menu:
Tabs can be added by clicking the button on the right of the tabs.
Middle clicking a tab closes it. No middle mouse button? Though!
Right click to change the tab name.
History list on the right of the screen. Clicking or using arrow keys to set the command in the input field.
Autocomplete for parameters / arguments / options of commands
After launching for the first time a command directory with .command files is created.
If you want to add parameter autocomplete for your commands you just need to create a text file with all the parameters in it. Then name the file '<command>.command'.
Parameters / options starting with '-' will not be shown untill an '-' is actually written.
You can test this with the default built in 'mvn' command. Type 'mvn ' and you'll get autocompletes for clean, install, package, .... Type '-' and you get all the options.
Autocomplete for files on the PATH
On startup, all files on all directories specified in the PATH system variable are scanned.
When typing, use "@x" to get assistance for files on the path. (ipconfig, java, ping, are all files on the path. Which is why you don't need to 'cd' to them first.)
Since a lot of files can be on the path. (I got over 3000), you need to type at least 1 letter for the autocomplete to show.
Note: Files without extension need to be surrounded by quotes or Windows thinks it's an acutal command. This is windows default behaviour. Not Wimconsole's. If you select a path file trough autocomplete and the file has got no extension, it will be automatically surrounded with quotes. If you use the autocomplete more as guidance and you actuallly type the whole filename, then you'll need to manually add quotes or Windows will see it as command.
Since it's just a normal textPane, selecting, copying and pasting with CTRL+C and CTRL+V works like it's expected to.
Please try it if you ever use the windows console.
If you get a popup saying:
Well, pretty clear what happened then eh Next to the main jar should hopefully be the txt file. It only contains the stacktrace. Just post it as reply here plase.
An unexpected error has occured in the background. A file "Console-errors.txt" has been created. Please send it to the author.
Weird or unexpected behaviour? Post down here.
Note1: to kill a process you must press escape. Not CTRL+C like in cmd.exe. You may consider this as unexpected behaviour, but I prefer to keep it this way since CTRL+C is for copy.
Note2: There is a history using up and down arrow keys. Up and down works as followed:
if autocomplete window is open: cycle trough the options.
if it's not open: cycle trough history.
To close the autocomplete popup -> escape
(History is currently infinite, I should probably limit it)
Note3: Use double quotes for paths with spaces in it. Only 1 exception: if your command starts with 'cd ' no quotes are required. Whatever comes after 'cd ' will be seen as 1 full path.
Note4: You're quite free in using forward slashes or backward slashes. Commands like this:
cd C:/java-software\\\apache-tomcat-7.0.26\//////bin\Should be executed 'normally'
+--wimConsole.jar | +--lib | +--commons-io-2.3.jar
Run with wimConsole.jar.
I may remove the library later as of the 190kB zip file, only 33kB is actually my console. The rest is the library.
Library is removed. Just a single jar now.
Note6: The first nine, or so, screenshots were taken with 14 font size. That has been reduced to 12.
Note7: It may be almost needless to say, but this java program only works in windows mainly due to the cmd.exe requirement and the way I deal with directory locations.
Next feature(s) to be added:
Run this bat-file:
@echo off echo Hi set /P parameter=Type anything:You'll only see "Type anything" after having entered to complete the line.
Is currently fixed in my local source. But having some formatting issues now...
Running something that acts like a new console in the console. Say -for example- connecting trough mysql, or using the play! framework, or windows' ftp command. Does not work properly.
I am not receiving input, nor am I able to send to the mysql in the cmd.exe running in the background.
Not sure if I can fix this.
telnet is also weird in its behaviour. Pinging is normal.
- For ANY error / unexpected behaviour like the bug above, slam the command with CTRL+Enter and it will be executed in windows' command prompt
Jar-file: wimConsole.jar 55.51KB 156 downloads
Exe-file (Same thing - still needs java installed - just has an icon): wimConsole.zip 78.26KB 156 downloads