mini screen in turboC

Reply

Join Date: Jan 2008
Posts: 36
Reputation: dv1r is an unknown quantity at this point 
Solved Threads: 0
dv1r's Avatar
dv1r dv1r is offline Offline
Light Poster

mini screen in turboC

 
0
  #1
Jan 11th, 2008
if this topic is already up pleas point me to it coz i dont even know how to search it....

what i want to do is a small screen in the big screen and have all my printf(""); to print there...
i dont know what else to say so pleas help me and thank you in advance
wana get high??
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,951
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 214
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: mini screen in turboC

 
0
  #2
Jan 11th, 2008
Check out pdcurses.

The other ways to do it would be to use the BIOS console control or the Windows Console API directly.

I don't think TurboVision is available for C...
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 36
Reputation: dv1r is an unknown quantity at this point 
Solved Threads: 0
dv1r's Avatar
dv1r dv1r is offline Offline
Light Poster

Re: mini screen in turboC

 
0
  #3
Jan 12th, 2008
Im not sure what you gave me =\
and Im not sure u understand what Im trying to do...
I am making a game and I want a small box that will show whats going on in the game all the time...
Im just ok in C. Im not really really good... =\
wana get high??
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: mini screen in turboC

 
0
  #4
Jan 12th, 2008
Maybe you could use clrscr() in turbo c. I don't know what you want to do?
Last edited by iamthwee; Jan 12th, 2008 at 11:35 am.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,951
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 214
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: mini screen in turboC

 
0
  #5
Jan 12th, 2008
It is quite likely that I don't understand what you are trying to do. You didn't give me very much information to work on.

What I know is:
  1. you want to use printf(), which is a console I/O function
  2. you want a "small screen" in the "big screen", which can be read two different ways:
    • a subwindow or subregion of your program's main window
    • a separate window on the desktop
    (since you are using console I/O I assumed the first)
  3. and now I know that you are writing a game

So, for further help, I need further information.
  1. What kind of game are you writing? Textual or graphical? If graphical, are you using SDL or OpenGL, or the Win32 API or some other 2D library?
  2. What exactly do you mean by "big screen" and "small screen"?
  3. What kind of information do you want to print to the small screen? Is it diagnostic? Or information the game player needs to see?
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 36
Reputation: dv1r is an unknown quantity at this point 
Solved Threads: 0
dv1r's Avatar
dv1r dv1r is offline Offline
Light Poster

Re: mini screen in turboC

 
0
  #6
Jan 12th, 2008
1) its a card game so it will B textual and i am useing the library GRAPHICS.H.

2) "big screen" is the main screen. i am not doing the game as a window... it will B full screen... the "small screen" is what i want to do.. it is a small box on the main screen of the game that will have writeing in it... lile "player 1 has thrown the card 4 of ♥.

3)i dont know what diagnostic is but it is information the game player needs to see.
wana get high??
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 36
Reputation: dv1r is an unknown quantity at this point 
Solved Threads: 0
dv1r's Avatar
dv1r dv1r is offline Offline
Light Poster

Re: mini screen in turboC

 
0
  #7
Jan 12th, 2008
like "player 1 has thrown the card 4 of ♥". **
wana get high??
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,951
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 214
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: mini screen in turboC

 
0
  #8
Jan 12th, 2008
1) I'm a little confused now. The Turbo C graphics.h library is not a textual interface library. Are you using some other, same-named library that is? (If so, please give me a link to it so I can look at how it works and what you can do with it.)

2) Ah, I understand your confusion on "screen". For all intents and purposes, you can say that you have only one "window" with which to work. If you are using the old graphics.h library that I think you are, it is a very easy technical issue to make a sub-region/window. Let me know about the library and I can point you in the right direction.

3) (A diagnostic is information that describes something, typically for debugging and validation purposes.)

Let me know more about graphics.h and I'll be able to give you some useful info.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 36
Reputation: dv1r is an unknown quantity at this point 
Solved Threads: 0
dv1r's Avatar
dv1r dv1r is offline Offline
Light Poster

Re: mini screen in turboC

 
0
  #9
Jan 12th, 2008
i might of misunderstood what you meant by textual and diagnostic =\
here is a link to the graphics.h that i am using...
http://62.0.220.111/dvirl/project/GRAPHICS.H

in the game there is no movement of any kind how ever i do use (line(x,y,x,y); and bar(x,y,x,y); and so on) if that helps at all with understanding what game im doing...
wana get high??
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,951
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 214
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: mini screen in turboC

 
0
  #10
Jan 12th, 2008
I'm getting a 404 for that link. By default, all files under dvirl/ are private, so you may have to change access rights to it.

Directories get 755, files get 644.

A better solution, though, is to give me a link to where you got the graphics.h file, or attach it here. (Because once you open your directories to public access, anyone can read its contents.)

Often a school will give you the ability to keep a home page in a specific subdirectory, like /dvirl/html/ or something, which you can safely chmod 755 (I presume it is a school --I can't read Hebrew [well, not yet, anyway... Someday I'll learn...]).
Last edited by Duoas; Jan 12th, 2008 at 5:17 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC