🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ont.micro.mac
Article #381

question about TEScroll

#381
From: info-mac
Date: Wed, 04 Jul 1984 05:30
24 lines
1859 bytes
Date: Tue, 3 Jul 84 12:07:06 EDT
From: Mark H. Nodine <uw-beaver!mnodine@BBNH.ARPA>
To: info-mac@sumex-aim.arpa
Cc: mnodine@BBNH.ARPA
Subject: question about TEScroll

I have been using the SUMacC development system and am working on library
routines for I/O which simulate unix I/O.  The aim is to be able to take
any c program, add an initialization routine at the top, and get it to run on
the mac.  However, I am having a problem with I/O to stdin and stdout.
The idea is to create a window in the initialization routine which gets bound
to stdin and stdout.  When you get to the bottom of the window, you would like
for it to be able to scroll automatically (otherwise you can't see what's being
typed any more).  To do this, I have been calling TEScroll, which does in fact
scroll correctly.  The problem comes with determining when to call TEScroll.
My original thought was to look in the TERecord and add together the first
baseline with the (line height times number of lines) and see if this is
greater than the bottom of the view rectangle.  The problem is that when I call
TEScroll, is somehow scrolls the text without changing any of these fields,
so I immediately think I have to scroll again...  Can anybody tell me what
TEScroll actually does change, so I can get a better handle on this problem?

			Thanks,
			Mark
Technical Details
Message-ID: <4756@utcsrgv.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utcsrgv!info-mac

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site utcsrgv.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utcsrgv!info-mac
From: info-mac@utcsrgv.UUCP (info-mac)
Newsgroups: ont.micro.mac
Subject: question about TEScroll
Message-ID: <4756@utcsrgv.UUCP>
Date: Wed, 4-Jul-84 01:30:11 EDT
Article-I.D.: utcsrgv.4756
Posted: Wed Jul  4 01:30:11 1984
Date-Received: Wed, 4-Jul-84 02:38:14 EDT
Sender: peterr@utcsrgv.UUCP
Organization: CSRI, University of Toronto
Lines: 27