StillOn98 Posted March 9, 2008 Posted March 9, 2008 (edited) Hello, I’m looking for how to add a scrollbar to the program “command.com” (or similar program with a scrollbar)I need this feature to view errors messages generated on the execution of my java code, I tried to make a redirection of stdout to a file but it doesn't work. Edited April 1, 2008 by StillOn98
j7n Posted March 9, 2008 Posted March 9, 2008 Maybe this will display the data one screen at a time?your command | more
StillOn98 Posted March 9, 2008 Author Posted March 9, 2008 Thank you for replying, but it doesn't work.I found this programme, but it’s a shareware WinOne
Mijzelf Posted March 9, 2008 Posted March 9, 2008 I tried to make a redirection of stdin to a file but it doesn’t work. I suppose you mean stdout. Did you try '| more'?
jaclaz Posted March 9, 2008 Posted March 9, 2008 Well, if the program has been written "properly" it will output errors to STD_ERR, rather than STD_OUT. Read here:http://www.robvanderwoude.com/redirection.htmlBut it won't work ot DOS/Win9.x , so you need something else :http://www.teaser.fr/~amajorel/stderr/jaclaz
dencorso Posted March 9, 2008 Posted March 9, 2008 I need this feature to view errors messages generated on the execution of my java code, I tried to make a redirection of stdout to a file but it doesn't work.Java may be writing to the console via BIOS INT 10H...Even DOS text services were implemented this way.What you need is a program that traps all input sent to INT 10H and redirects it to a file.Then, whatever is written to the console will end up in the file.Unless Java writes directly to the video regen buffer... But I doubt it'd be implemented this way.HTH.
StillOn98 Posted March 9, 2008 Author Posted March 9, 2008 Java may be writing to the console via BIOS INT 10H...Even DOS text services were implemented this way.What you need is a program that traps all input sent to INT 10H and redirects it to a file.Then, whatever is written to the console will end up in the file.Unless Java writes directly to the video regen buffer... But I doubt it'd be implemented this way.HTH.But, i don’t think that i’m able to code this in asm.
jaclaz Posted March 10, 2008 Posted March 10, 2008 Java may be writing to the console via BIOS INT 10H...Even DOS text services were implemented this way.What you need is a program that traps all input sent to INT 10H and redirects it to a file.Then, whatever is written to the console will end up in the file.Unless Java writes directly to the video regen buffer... But I doubt it'd be implemented this way.HTH.But, i don’t think that i’m able to code this in asm. Did you try stderr from the given link and it did not work for you? jaclaz
dencorso Posted March 10, 2008 Posted March 10, 2008 (edited) Java may be writing to the console via BIOS INT 10H...Even DOS text services were implemented this way.What you need is a program that traps all input sent to INT 10H and redirects it to a file.Then, whatever is written to the console will end up in the file.Unless Java writes directly to the video regen buffer... But I doubt it'd be implemented this way.HTH.But, i don't think that i'm able to code this in asm. Look out for it. I bet someone already did it in the good old DOS times. Patience and Google together perform marvelous things... Edited March 10, 2008 by dencorso
Tihiy Posted March 10, 2008 Posted March 10, 2008 So did you find this? Really lame, since program for this was in thread you originally asked.
StillOn98 Posted March 23, 2008 Author Posted March 23, 2008 So did you find this? Really lame, since program for this was in thread you originally asked.And it is what this program in the screenshot ? I have tested with the thread which you gived but I didn’t have this result !Can you give the link to download it ?
jaclaz Posted March 24, 2008 Posted March 24, 2008 I have tested with the thread which you gived but I didn’t have this result !Can you give the link to download it ?Here:http://cygutils.fruitbat.org/consize/consizeA resizer for the console. Translation: a scrollbar for the command prompt window in Win9x.jaclaz
SlugFiller Posted March 24, 2008 Posted March 24, 2008 Output from Java programs can't be redirected in 9x, something about the way System.out works.However, rather than trying to hack command, just something like this in any class loaded in your program's startup:static { try{ System.setOut(new java.io.PrintStream("out.txt")); System.setErr(new java.io.PrintStream("err.txt")); } catch(Exception e) {}}Alternately, you can create a small OutputStream or PrintStream subclass that outputs to a list in a swing window or similar(if you need the results in real time). Maybe even one that adds a timestamp to every line. It will be infinitely more effective than getting a different console window either way.
StillOn98 Posted April 1, 2008 Author Posted April 1, 2008 System.setErr(new java.io.PrintStream("err.txt"));Think you very match SlugFiller for the solution
StillOn98 Posted April 30, 2008 Author Posted April 30, 2008 ColorConsole 1.51 : ColorConsole brings a little color to your black and white world of Windows console .One can save many hand moves and also time!An installation of ColorConsole is not requiredand can be executed easily from the desktop.Features:Favorites commandsExport to HTML and RTFCopy,Paste,Cut... Changeable font style and color One times Console always Console;)!http://www.softwareok.de/?seite=Software/C...anguage=englishdownload : http://www.softwareok.de/Download/ColorConsole.zip 71.9 KB
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now