Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #747

Re: Get character at position in 80-column mode

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!xmission!news.bbs-scene.org!macgui.com!dog_cow
From D Finnigan <dog_cow@macgui.com>
Newsgroups comp.sys.apple2.programmer
Subject Re: Get character at position in 80-column mode
Date Mon, 15 Jul 2013 21:32:43 +0000 (UTC)
Organization Mac GUI
Lines 21
Message-ID <dog_cow-1373923961@macgui.com> (permalink)
References <d18c6b7c-d170-417f-9d37-09a8d8c290f9@googlegroups.com>
NNTP-Posting-Host gunshin.wiredns.net
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace technocratmedia-w1.news.bbs-scene.org 1373923963 2378 74.119.145.48 (15 Jul 2013 21:32:43 GMT)
X-Complaints-To abuse@bbs-scene.org
NNTP-Posting-Date Mon, 15 Jul 2013 21:32:43 +0000 (UTC)
User-Agent Mac GUI Usenet
Xref csiph.com comp.sys.apple2.programmer:747

Show key headers only | View raw


krussell.co wrote:
> Hi there,
> 
> There was a post here about getting a character at a given position on the
> screen in 40-column mode using SCRN.  How can I get a character at a given
> position in 80-column mode?  I can find nothing about this anywhere.

On page 188 of The New Apple II User's Guide:

"one may use PEEK(36) to find the current cursor column. Likewise, to find
the current cursor row, use PEEK(37). It will return a number between 0 and
23, representing top and bottom of the screen, respectively."

Works in 40 and 80 columns.

-- 
]DF$
Apple II Book: http://macgui.com/newa2guide/
Usenet: http://macgui.com/usenet/  <-- get posts by email!
Apple II Web & Blog hosting: http://a2hq.com/

Back to comp.sys.apple2.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Get character at position in 80-column mode krussell.co@gmail.com - 2013-07-15 10:59 -0700
  Re: Get character at position in 80-column mode D Finnigan <dog_cow@macgui.com> - 2013-07-15 21:32 +0000
    Re: Get character at position in 80-column mode BLuRry <brendan.robert@gmail.com> - 2013-07-15 17:43 -0700

csiph-web