• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to control DOS promt for out put

 
Bal Sharma
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everybody:
This is prelimenary work. I want to see all record from db.db on my dos screen. When I run program, it rolls down very fast and displays only few last records. Is there anyway to control this behavior? I wanna see each record # 1 to 24.
One more question, how to display code over here? I mean what tag should I have to use to display code?
Thanks in advance for response. BK
 
Murphy Patrick
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a Java solution but-
Try increasing the height and width of your DOS window.
You can do that by right-clicking on the title bar and clicking Properties.
If you make it roughly the size of your screen, 24 lines should easily print on the screen.
If that doesn't work, use brute force-increase your screen resolution !!
BTW can you post the code that you wrote to print all the records. Would be helful to me.
Thanks.
-Pat
 
Murphy Patrick
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bal Sharma:
One more question, how to display code over here? I mean what tag should I have to use to display code?

See: http://www.javaranch.com/ubb/faq.html#q4
-Pat
 
Bal Sharma
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Pat
Thanks for your response. I wanted to view content of db.db before I do anything. Here is my code I added it in Data class.

I get all output but I can view only few last records. I tried changing height and width of DOS windows but did not work. I am not sure but should be some way to add vertical scrollbar on DOS window so we can view all the output. By the way, what is brute force-increase? Could you please tell me how to do that?
Thanks BK

BTW can you post the code that you wrote to print all the records. Would be helful to me.

[This message has been edited by Bal Sharma (edited November 07, 2001).]
[This message has been edited by Bal Sharma (edited November 07, 2001).]
 
Ian B Anderson
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Why don't you send the output to a text file instead or put in pauses (Sleep() etc) or put in readline() statements to pause the output.
(The best way would be to output to a textfile.)
Ian
 
Bal Sharma
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Ian:
I can'nt believe you are everywhere. You are my man!
You made my day easy. I used;

I got every thing as I wanted.
Thanks Ian. BK
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic