www.digitalmars.com         C & C++   DMDScript  

c++.command-line - Using gotoxy, wherex, wherey

reply Nascar skynet.be writes:
Hi,

I'm used of woking with an old borland compiler and making small dos
applications.

In these applications I often used gotoxy for positioning the cursor and
textcolor, textbackground for setting colors of the text.

In the dmc compiler these functions seem to be not included.

Was this the intention because there is an alternative way ?
Or is this something that is just not implemented.

Nascar.

Mens Sana in Corpore Sano
Oct 20 2004
parent reply Jan Knepper <jan smartsoft.us> writes:
They were Borland extensions.
Take a look at disp.h, that the Digital Mars was of doing it...



Nascar skynet.be wrote:

 Hi,
 
 I'm used of woking with an old borland compiler and making small dos
 applications.
 
 In these applications I often used gotoxy for positioning the cursor and
 textcolor, textbackground for setting colors of the text.
 
 In the dmc compiler these functions seem to be not included.
 
 Was this the intention because there is an alternative way ?
 Or is this something that is just not implemented.
 
 Nascar.
 
 Mens Sana in Corpore Sano
-- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.org
Oct 20 2004
parent reply Nascar skynet.be writes:
Hi,

Thank you very much it is just what I was looking for ;)

unfortunately it does not work exactly as desired ...
I've tried out an example of the reference (the function disp_pokew)
and it does not return the desired or shown result.
It just comes back with "getconsolescreenbufferinfo"
and it makes no sense to me.

Could you please help me with this small problem

Thanks in advance



In article <cl5h9k$2fgs$2 digitaldaemon.com>, Jan Knepper says...
They were Borland extensions.
Take a look at disp.h, that the Digital Mars was of doing it...



Nascar skynet.be wrote:

 Hi,
 
 I'm used of woking with an old borland compiler and making small dos
 applications.
 
 In these applications I often used gotoxy for positioning the cursor and
 textcolor, textbackground for setting colors of the text.
 
 In the dmc compiler these functions seem to be not included.
 
 Was this the intention because there is an alternative way ?
 Or is this something that is just not implemented.
 
 Nascar.
 
 Mens Sana in Corpore Sano
-- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.org
-- Nascar Mens Sana in Corpore Sano
Oct 20 2004
parent reply "Walter" <newshound digitalmars.com> writes:
I just compiled and ran the example in www.digitalmars.com/rtl/disp.html and
it produced the output shown in the web page. -Walter

<Nascar skynet.be> wrote in message news:cl5ols$2nb9$1 digitaldaemon.com...
 Hi,

 Thank you very much it is just what I was looking for ;)

 unfortunately it does not work exactly as desired ...
 I've tried out an example of the reference (the function disp_pokew)
 and it does not return the desired or shown result.
 It just comes back with "getconsolescreenbufferinfo"
 and it makes no sense to me.

 Could you please help me with this small problem

 Thanks in advance



 In article <cl5h9k$2fgs$2 digitaldaemon.com>, Jan Knepper says...
They were Borland extensions.
Take a look at disp.h, that the Digital Mars was of doing it...



Nascar skynet.be wrote:

 Hi,

 I'm used of woking with an old borland compiler and making small dos
 applications.

 In these applications I often used gotoxy for positioning the cursor
and
 textcolor, textbackground for setting colors of the text.

 In the dmc compiler these functions seem to be not included.

 Was this the intention because there is an alternative way ?
 Or is this something that is just not implemented.

 Nascar.

 Mens Sana in Corpore Sano
-- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.org
-- Nascar Mens Sana in Corpore Sano
Oct 21 2004
parent Nascar skynet.be writes:
I've rechecked again ...

and you're right it is working perfectly ...
I'm using UltraEdit to write the C++ and I've configured 2 tools 1 to compile
with dmc and one to execute the C++ program.

The last one was causing the problem. It tries to catch the console output. But
by using the disp.h no output is generated and that generates the message.

Running the program from Explorer works fine ;)
Thank you very much.

In article <cl906q$t17$1 digitaldaemon.com>, Walter says...
I just compiled and ran the example in www.digitalmars.com/rtl/disp.html and
it produced the output shown in the web page. -Walter

<Nascar skynet.be> wrote in message news:cl5ols$2nb9$1 digitaldaemon.com...
 Hi,

 Thank you very much it is just what I was looking for ;)

 unfortunately it does not work exactly as desired ...
 I've tried out an example of the reference (the function disp_pokew)
 and it does not return the desired or shown result.
 It just comes back with "getconsolescreenbufferinfo"
 and it makes no sense to me.

 Could you please help me with this small problem

 Thanks in advance



 In article <cl5h9k$2fgs$2 digitaldaemon.com>, Jan Knepper says...
They were Borland extensions.
Take a look at disp.h, that the Digital Mars was of doing it...



Nascar skynet.be wrote:

 Hi,

 I'm used of woking with an old borland compiler and making small dos
 applications.

 In these applications I often used gotoxy for positioning the cursor
and
 textcolor, textbackground for setting colors of the text.

 In the dmc compiler these functions seem to be not included.

 Was this the intention because there is an alternative way ?
 Or is this something that is just not implemented.

 Nascar.

 Mens Sana in Corpore Sano
-- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.org
-- Nascar Mens Sana in Corpore Sano
-- Nascar Mens Sana In Corpore Sano
Oct 22 2004