How can I print text to the screen (DOS console) and have replace the old text?
Printable View
How can I print text to the screen (DOS console) and have replace the old text?
#include <conio.h> and then use the gotoxy() function.
that will only work if you are using Borland C++ compiler. If that is VC++ then there is no graphics library for you..
could that function be under different name in VC++ ? Whenever I try to use it, it says it's undefined.
SO there's no way to do it :eek:
Call me stupid, but what if I uploaded the .h and other dependencies?Quote:
Originally posted by abdul
that will only work if you are using Borland C++ compiler. If that is VC++ then there is no graphics library for you..
No, there is no other graphics library in VC++ but you can use a graphics library called "Algero"(I can't spell in right)
It comes with a free compiler. I can remember the name of that compiler right now..sorry. I have not even tried using that but lot of people say that it is great graphics library for people not using BC++.
Maybe furby know more about that free compiler and about that graphics library:D
ooops..you answered first. I have asked this question before but I was not quite complete answer. Somebody said (I think Parskie) that Algero(:() was also good graphics library for VC++
filburt1: I'm not sure if you can use BC++ libraries in VC++
The compiler is called DJGPP, and is a very good 32-bit DOS protected mode compiler. Programs made with this compiler will run under DOS and Win9x, but not NT/2000.
See http://www.brainchilddesign.com for a game made with this compiler (Jump'n'Bump, freeware, very cool).
How about ASM?
I think the console behaves as an ansi-compliant vt screen.
An escape sequence that conforms to those standards
is:
escape [ row ; col H - (no spaces) escape is char esc = 27;
positions the cursor to row & col. Works for DOS screens and is the gotoxy code for Turbo C.