delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/04/06/08:09:18

From: kunst AT prl DOT philips DOT nl
Subject: Re: DJGPP and Windows
To: davis AT amy DOT tch DOT harvard DOT edu (John E. Davis)
Date: Wed, 6 Apr 1994 12:57:35 +0100 (METDST)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP users list)

John E. Davis writes:
>
>    I am preparing to install 1.11 on my system.  I want the application to
> work in text mode in a Windows DOS box.  I intend to use the functions
> described in libpc.doc:
> 
>    ScreenRows()
>    ScreenCols()
>    ScreenPutChar() 
>    ScreenSetCursor() 
>    ScreenClear()
>    
> In addition, I intend to use int86 to call BIOS int 10h to scroll the screen

If you plan to write a text-mode-only program with some screen I/O
you could consider to use the 'curses' library to accomplish the
functions you have listed above. The curses library has added 
functionality as well. This will give you the advantage that your 
program is easy portable to Unix systems. (which might be useful...)

> as well as:
> 
>     int 21h, subfunction 19h to get the current drive

Use 'getdisk()' for this purpose. This works inside a Windows DOS box.
(Not very portable to Unix however ;-)

>     
> My question is simple:  Are these functions compatable with a Windows DOS
> box?  What sorts of things should I stay away from?

Stay away from graphics when using DPMI (for the time being, at least...).

Regards,

 .^^^^^^^^           _____________________________________
 |      |          / Pieter Kunst (P.J.)                   \
 |  _  _|        /   Philips Research Laboratories,          \
.--(o)(o)      /     Building WY3, Prof. Holstlaan 4,         \
|@      _)   /       5656 AA  Eindhoven, The Netherlands.      |
  | ,___|   /        e-mail: kunst AT prl DOT philips DOT nl             /
  |   /     \_______________________________________________/
  /____\

===============================================================================
The latest version of PDCurses (2.1) can be obtained from:

  site:  ftp.gu.edu.au    (132.234.1.1)
  files: /src/PDCurses/pdcurs21.zip

To compile the whole library with your C compiler, you'll need a copy
of DMAKE as well, which can be obtained from:

  site: plg.uwaterloo.ca (129.97.140.10)
  file: pub/dmake/dmake38-msdos-exe.zip

I use the package with the DOS port of gcc ('DJGPP 1.11m3').
I have also versions running using Turbo C 3.0 and MSC 6.0.
===============================================================================

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019