March 9, 200818 yr 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, 200818 yr by StillOn98
March 9, 200818 yr Author Thank you for replying, but it doesn't work.I found this programme, but it’s a shareware WinOne
March 9, 200818 yr 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'?
March 9, 200818 yr 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
March 9, 200818 yr 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.
March 9, 200818 yr Author 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.
March 10, 200818 yr 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
March 10, 200818 yr 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, 200818 yr by dencorso
March 10, 200818 yr So did you find this? Really lame, since program for this was in thread you originally asked.
March 23, 200818 yr Author 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 ?
March 24, 200818 yr 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
March 24, 200818 yr 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.
April 1, 200818 yr Author System.setErr(new java.io.PrintStream("err.txt"));Think you very match SlugFiller for the solution
April 30, 200818 yr Author 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
Create an account or sign in to comment