Mail Archives: djgpp-workers/1996/09/25/05:44:23
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 -