Jump to content

[Solved] command.com with a scrollbar


StillOn98

Recommended Posts

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.

:huh:

Edited by StillOn98
Link to comment
Share on other sites


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.

Link to comment
Share on other sites

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. :wacko:

Link to comment
Share on other sites

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. :wacko:

Did you try stderr from the given link and it did not work for you? :unsure:

jaclaz

Link to comment
Share on other sites

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. :wacko:

Look out for it. I bet someone already did it in the good old DOS times. Patience and Google together perform marvelous things...

Edited by dencorso
Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

  • 5 weeks later...

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 required

and can be executed easily from the desktop.

ColorConsole1.png

Features:

Favorites commands

Export to HTML and RTF

Copy,Paste,Cut...

Changeable font style and color

One times Console always Console;)!

ColorConsole2.png

http://www.softwareok.de/?seite=Software/C...anguage=english

download : http://www.softwareok.de/Download/ColorConsole.zip 71.9 KB

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...