delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/09/25/05:44:23

Date: Wed, 25 Sep 1996 11:36:12 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Alexander V. Lukyanov" <lav AT video DOT yars DOT free DOT net>
Cc: djgpp-workers AT delorie DOT com
Subject: Re: unix ioctl to implement
In-Reply-To: <199609250836.MAA10603@video.yars.free.net>
Message-Id: <Pine.SUN.3.91.960925113315.13932G-100000@is>
Mime-Version: 1.0

On Wed, 25 Sep 1996, Alexander V. Lukyanov wrote:

> I think I know a unix ioctl useful in DOS. It is TIOCGWINSZ - get screen size.
> Probably TIOCSWINSZ should be realized too, but I'm not sure it is useful,
> since the only purpose of it in unix is to pass correct screen size to other programs.
> Probably it should simply change screen mode, but it is not what it does in unix.

To get the screen size, use `ScreenRows' and `ScreenCols' library 
functions.  To set screen size, use `_set_screen_lines' library 
function.  But the main problem is not how to do, but how to do in a way 
which will allow you to compile Unix programs that use `ioctl', without 
source-level changes to the original Unix code.  Somebody needs to write 
emulations of `ioctl' (unix-style) that actually calls DJGPP functions 
behind the scene.

- Raw text -


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