www.digitalmars.com         C & C++   DMDScript  

c++.dos.32-bits - Replacing Borland C++ window() function

reply Adriano Baglioni <Adriano_member pathlink.com> writes:
All:

I am trying to port a DOS Borland C++ program that uses the text-mode display
function "window()".  I looked at disp.h in the Mars documentation, but it does
not offer an equivalent function.  Borland's "window()" function creates a
sub-region on the screen (top,left,bottom,right) where all console text output
is directed, and which scrolls properly, etc., leaving the rest of the screen
untouched.  You can use it as the basis of a really stupid multi-window system,
which, of course, the code I have does.  Does anyone have a suggestion for
replacing this, short of rewriting it all?

Thank you!

Adriano Baglioni
Principal Software Design Engineer
Veeder-Root Co.
Dec 09 2002
parent reply "Javier Gutiérrez" <nikkho NOSPAM hotmail.com> writes:
    Maybe you want to take a look at
http://www.geocities.com/SiliconValley/4505/dirio.zip, it is a library that
emules Borland's conio but with faster responses.

    Since the source is available, I thought it would not be very hard to
port it to DMC.


"Adriano Baglioni" <Adriano_member pathlink.com> escribió en el mensaje
news:at2vlr$l1o$1 digitaldaemon.com...
 All:

 I am trying to port a DOS Borland C++ program that uses the text-mode
display
 function "window()".  I looked at disp.h in the Mars documentation, but it
does
 not offer an equivalent function.  Borland's "window()" function creates a
 sub-region on the screen (top,left,bottom,right) where all console text
output
 is directed, and which scrolls properly, etc., leaving the rest of the
screen
 untouched.  You can use it as the basis of a really stupid multi-window
system,
 which, of course, the code I have does.  Does anyone have a suggestion for
 replacing this, short of rewriting it all?

 Thank you!

 Adriano Baglioni
 Principal Software Design Engineer
 Veeder-Root Co.
Dec 10 2002
parent reply Adriano Baglioni <Adriano_member pathlink.com> writes:
In article <at4o0v$2lva$1 digitaldaemon.com>, Javier Gutiérrez says...
    Maybe you want to take a look at
http://www.geocities.com/SiliconValley/4505/dirio.zip, it is a library that
emules Borland's conio but with faster responses.

    Since the source is available, I thought it would not be very hard to
port it to DMC.
Dear Javier, Thank you for the link! I will download it and see if I can get it to work. If so, I will post any changes here, and I will send them back to the author. Adriano Baglioni Principal Software Design Engineer Veeder-Root Co.
Dec 10 2002
parent "Javier Gutiérrez" <nikkho NOSPAM hotmail.com> writes:
    The author of this is me.
    I have done it some years ago, and I am not sure until which level it is
compatible with DMC, but I hope that porting to DOS32 using it should not be
a pain.
    Altought I have not too much spare time, I can help you in all concrete
problems you have.



"Adriano Baglioni" <Adriano_member pathlink.com> escribió en el mensaje
news:at4t6l$2rs4$1 digitaldaemon.com...
 In article <at4o0v$2lva$1 digitaldaemon.com>, Javier Gutiérrez says...
    Maybe you want to take a look at
http://www.geocities.com/SiliconValley/4505/dirio.zip, it is a library
that
emules Borland's conio but with faster responses.

    Since the source is available, I thought it would not be very hard to
port it to DMC.
Dear Javier, Thank you for the link! I will download it and see if I can get it to
work. If
 so, I will post any changes here, and I will send them back to the author.

 Adriano Baglioni
 Principal Software Design Engineer
 Veeder-Root Co.
Dec 10 2002