πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #337

Re: window()

#337
From: -hs-
Date: Sun, 13 Feb 2000 00:00
28 lines
2255 bytes
Georgie a οΏ½crit dans le message <38A5FF51.D70480D3@orgie.com>...
>Hello,
> I am using Borland C++, and I want to use the window() function to
>create images for a game I am making.  My books  do not contain any
>information on this.  And help only has an wee example.  I know there
>are four coordinates, I know they work on the 25, 80 measurements of the
>screen.
> But, I have been playing around for a couple of days now, and this, my
>usual method of figuring things out is not working out all that well.
>Does anyone have any advice on this?  Basic theory?


The window() function (<conio.h>) is a wrapper around some INT 10h BIOS
function for video adapter. First of all, it is only working in text mode.
Its purpose is to create a logical screen whose size is defined by the user.
By default, in text mode 80x25, the "window" is 1,1,80,25 that means full
screen. If you want a smaller screen (with full wrapping and scrolling
facilities, say a text editor, a console, or a debug screen) you need to
reduce the "window" to a smaller size, say 1,2,80,24, witch will leave the 1
and 25 lines free for an other use (menus, status etc...) Note that the
gotoxy() function is always relative to the current window

--
-hs-
CLC-FAQ: http://www.eskimo.com/~scs/C-faq/top.html
ISO-C Library: http://www.dinkum.com/htm_cl
"It's specified. But anyone who writes code like that should be
transmogrified into earthworms and fed to ducks." -- Chris Dollin CLC
Technical Details
Message-ID: <8852n5$1ekd$1@news6.isdnet.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38A5FF51.D70480D3@orgie.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f8d38,581db56f2804600c
X-Google-Attributes: gidf8d38,public
X-Google-Thread: 114592,581db56f2804600c
X-Google-Attributes: gid114592,public
From: "-hs-" <no_email@unknown.org>
Subject: Re: window()
Date: 2000/02/13
Message-ID: <8852n5$1ekd$1@news6.isdnet.net>
X-Deja-AN: 585173841
Content-Transfer-Encoding: 8bit
References: <38A5FF51.D70480D3@orgie.com>
Content-Type: text/plain; charset="iso-8859-1"
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Complaints-To: abuse@isdnet.net
X-Trace: news6.isdnet.net 950406693 47757 212.198.161.164 (13 Feb 2000 01:51:33 GMT)
Mime-Version: 1.0
NNTP-Posting-Date: 13 Feb 2000 01:51:33 GMT
Newsgroups: alt.comp.lang.learn.c-c++,borland.public.cpp.language