Date: Wed, 25 Sep 1996 11:36:12 +0200 (IST) From: Eli Zaretskii To: "Alexander V. Lukyanov" Cc: djgpp-workers AT delorie DOT com Subject: Re: unix ioctl to implement In-Reply-To: <199609250836.MAA10603@video.yars.free.net> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.