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

From D Finnigan <dog_cow@macgui.com>
Newsgroups comp.sys.apple2.programmer
Subject Re: Get character at position in 80-column mode
Date 2013-07-15 21:32 +0000
Organization Mac GUI
Message-ID <dog_cow-1373923961@macgui.com> (permalink)
References <d18c6b7c-d170-417f-9d37-09a8d8c290f9@googlegroups.com>

Show all headers | 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