Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Frankly, Scarlett, I don't have a fix. -- Rhett Buggler


computers / comp.sys.apple2 / Output to window with TextEdit

SubjectAuthor
* Output to window with TextEditTom Thumb
`* Re: Output to window with TextEditKelvin Sherlock
 `* Re: Output to window with TextEditTom Thumb
  `* Re: Output to window with TextEditAntoine Vignau
   +* Re: Output to window with TextEditD Finnigan
   |+* Re: Output to window with TextEditTom Thumb
   ||`- Re: Output to window with TextEditTom Thumb
   |`- Re: Output to window with TextEditAntoine Vignau
   `* Re: Output to window with TextEditTom Thumb
    `* Re: Output to window with TextEditAntoine Vignau
     `* Re: Output to window with TextEditfadden
      `- Re: Output to window with TextEditAntoine Vignau

1
Output to window with TextEdit

<d12300a9-eec9-403b-81ff-eaf25678f608n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5117&group=comp.sys.apple2#5117

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a0c:cd13:0:b0:571:471:8925 with SMTP id b19-20020a0ccd13000000b0057104718925mr853725qvm.18.1677007982943;
Tue, 21 Feb 2023 11:33:02 -0800 (PST)
X-Received: by 2002:ac8:690b:0:b0:3b8:6b09:26a0 with SMTP id
bt11-20020ac8690b000000b003b86b0926a0mr660150qtb.6.1677007982702; Tue, 21 Feb
2023 11:33:02 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Tue, 21 Feb 2023 11:33:02 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=24.185.98.244; posting-account=PB2qngoAAACRVoANRzBDZM-TqC_DJF8g
NNTP-Posting-Host: 24.185.98.244
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d12300a9-eec9-403b-81ff-eaf25678f608n@googlegroups.com>
Subject: Output to window with TextEdit
From: justlike...@gmail.com (Tom Thumb)
Injection-Date: Tue, 21 Feb 2023 19:33:02 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3726
 by: Tom Thumb - Tue, 21 Feb 2023 19:33 UTC

I admit freely I’m floundering around but… I’m trying to write a desktop application for the IIgs in C to set flagstones, borrowing heavily from Mike Westerfield’s “Toolbox Programming in C”. In the course of that endeavor I’ve gone a bit far afield trying to output printf statements to a desktop window that I can scroll through and copy and paste to save or whatever, basically a console window I guess. I’ve had some success starting up the tools with Orca’s startdesk(); , setting the grafport and calling printf() but I wanted to use TextEdit and so switched to StartUpTools and have had much less success.

I’ve tried creating a buffer of CStrings:

void initbfr(void)
{

int i;
int numstrs, strlen;

numstrs = 300;
strlen = 80;

outbfr.indx = 0;
outbfr.outstrs = malloc(numstrs * sizeof(char*));

for(i = 0; i < numstrs; i++)
{
outbfr.outstrs[i] = malloc((strlen) * sizeof(char));

}

and to open a window:

void DoOut(void)
{

outwinptr = outwin();
SetPort(outwinptr);

setCtrl();

}

GrafPortPtr outwin(void)
{

return NewWindow2("\pOutput", 0, Output, NULL, 0x02, teControl, rWindParam1);

}

void Output(void)
{

DrawControls(GetPort());

}

And in setCtrl():

void setCtrl(void)
{

LongWord length;
LongWord *tPtr, *sPtr;

FontID fID;
TEStyle style;

fID.fidRec.fontStyle = 0;
style.styleFontID = fID;

/* length = 42; /* hard-coded length outbfr.outstrs[0] */
length = 300; /* hard-coded size of buffer */

/* tPtr = (LongWord *) ((outbfr.outstrs[0])); */
tPtr = (LongWord *) ((LongWord)(*(outbfr.outstrs)));

tPtr = (LongWord *) (&outbfr);
sPtr = (LongWord *) &style;

TESetText(5, (Ref) tPtr, length, 0,(Ref) NULL, NULL);

/* TESetText(1, (Ref) tPtr, length, 0,(Ref) NULL, NULL); */
/* TESetText(5, (Ref) tPtr, length, 0,(Ref) sPtr, NULL); */

}

I don’t know if I need to create a style record and a TERecord. or what not. I know it’s a big ask but I put a SHK on github containing the files and a file “mk” to compile it if anyone might look and tell me what a banana I am and point me in the right direction.

I don’t know of anyone programming Apple IIs around here to talk to.. Anyway the repository is at:

https://github.com/mswade0/Output.git

if anyone is so inclined, again a big ask, I know.

— Mark Wade

Re: Output to window with TextEdit

<tt3iec$18laa$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5118&group=comp.sys.apple2#5118

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ema...@domain.com (Kelvin Sherlock)
Newsgroups: comp.sys.apple2
Subject: Re: Output to window with TextEdit
Date: Tue, 21 Feb 2023 18:00:28 -0500
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <tt3iec$18laa$1@dont-email.me>
References: <d12300a9-eec9-403b-81ff-eaf25678f608n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="df8d087be2b6569ad3057a0e2ed730e9";
logging-data="1332554"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hejw9Gxma+r0gwBDpjoAao45NZdB/2dw="
User-Agent: Unison/2.2
Cancel-Lock: sha1:J4o6+GINxKZKCqoEpbALM0vpbWs=
 by: Kelvin Sherlock - Tue, 21 Feb 2023 23:00 UTC

TESetText() replaces all the existing text. There is no TEAppendText()
but you can

TESetSelection((Pointer)-1, (Pointer)-1, teH);
TEInsert(teDataIsTextBlock | teTextIsPtr, (Ref)buffer, length, 0, NULL, teH);

You probably don't need to worry about style records for now but if you
call TEStyleChange()
after the control is created and there's no selection, it will be the
default style (and for a console log, you probably only want a single
style).

Side note - if the TextEdit control is read-only, TESetText and
TEInsert() don't do anything.
You would need to fiddle with the textFlags to make it writable before
trying to modify it.

On 2023-02-21 19:33:02 +0000, Tom Thumb said:

> I admit freely I’m floundering around but… I’m trying to write a
> desktop application for the IIgs in C to set flagstones, borrowing
> heavily from Mike Westerfield’s “Toolbox Programming in C”. In the
> course of that endeavor I’ve gone a bit far afield trying to output
> printf statements to a desktop window that I can scroll through and
> copy and paste to save or whatever, basically a console window I guess.
> I’ve had some success starting up the tools with Orca’s startdesk(); ,
> setting the grafport and calling printf() but I wanted to use TextEdit
> and so switched to StartUpTools and have had much less success.
>

Re: Output to window with TextEdit

<7c976f82-5ac3-4574-8470-5f5722a433a6n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5125&group=comp.sys.apple2#5125

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a0c:e4ca:0:b0:571:df8c:7dbf with SMTP id g10-20020a0ce4ca000000b00571df8c7dbfmr796248qvm.60.1677079374463;
Wed, 22 Feb 2023 07:22:54 -0800 (PST)
X-Received: by 2002:ac8:4315:0:b0:3bc:f940:2227 with SMTP id
z21-20020ac84315000000b003bcf9402227mr1100445qtm.0.1677079374263; Wed, 22 Feb
2023 07:22:54 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Wed, 22 Feb 2023 07:22:53 -0800 (PST)
In-Reply-To: <tt3iec$18laa$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=24.185.98.244; posting-account=PB2qngoAAACRVoANRzBDZM-TqC_DJF8g
NNTP-Posting-Host: 24.185.98.244
References: <d12300a9-eec9-403b-81ff-eaf25678f608n@googlegroups.com> <tt3iec$18laa$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7c976f82-5ac3-4574-8470-5f5722a433a6n@googlegroups.com>
Subject: Re: Output to window with TextEdit
From: justlike...@gmail.com (Tom Thumb)
Injection-Date: Wed, 22 Feb 2023 15:22:54 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4524
 by: Tom Thumb - Wed, 22 Feb 2023 15:22 UTC

On Tuesday, February 21, 2023 at 6:00:32 PM UTC-5, Kelvin Sherlock wrote:
> TESetText() replaces all the existing text. There is no TEAppendText()
> but you can
>
> TESetSelection((Pointer)-1, (Pointer)-1, teH);
> TEInsert(teDataIsTextBlock | teTextIsPtr, (Ref)buffer, length, 0, NULL, teH);
>
> You probably don't need to worry about style records for now but if you
> call TEStyleChange()
> after the control is created and there's no selection, it will be the
> default style (and for a console log, you probably only want a single
> style).
>
> Side note - if the TextEdit control is read-only, TESetText and
> TEInsert() don't do anything.
> You would need to fiddle with the textFlags to make it writable before
> trying to modify it.
> On 2023-02-21 19:33:02 +0000, Tom Thumb said:
>
> > I admit freely I’m floundering around but… I’m trying to write a
> > desktop application for the IIgs in C to set flagstones, borrowing
> > heavily from Mike Westerfield’s “Toolbox Programming in C”. In the
> > course of that endeavor I’ve gone a bit far afield trying to output
> > printf statements to a desktop window that I can scroll through and
> > copy and paste to save or whatever, basically a console window I guess.
> > I’ve had some success starting up the tools with Orca’s startdesk(); ,
> > setting the grafport and calling printf() but I wanted to use TextEdit
> > and so switched to StartUpTools and have had much less success.
> >
will give TESetSelection and TEInsert a try but I don’t understand why I’m not displaying the strings in the buffer my output window.
I’ve populated the buffer in initbfr by calling:

void xprintf(char *str)
{
int cnt;
cnt = outbfr.indx;

/*
outbfr is declared globally: outputbfr outbfr; and is a structure:

typedef struct outputbfr{

int indx;
char **outstrs;

} outputbfr;
*/

outbfr.outstrs[outbfr.indx++] = str;

printf("%d: ",cnt);
/* printf(outbfr.outstrs[cnt]); */
printf(*((outbfr.outstrs) + cnt)); /* output to text screen */

}

So I thought given I have a pointer to my text buffer: tPtr = (LongWord *) (&outbfr); and I’ve called: TESetText(5, (Ref) tPtr, length, 0,(Ref) NULL, NULL); that whenever there is an update event since I declared the window as: NewWindow2("\pOutput", 0, Output, NULL, 0x02, teControl, rWindParam1); that Output() is called and so DrawControls is called and I thought my text would be displayed but I just get stuff like: -˛™◊»D‘˛€ and ? marks I assume are non printing characters.

So why can’t I display a cstring I’ve tried pointing to by:

LongWord *tPtr;
tPtr = (LongWord *) ((outbfr.outstrs[0]));
tPtr = (LongWord *) ((LongWord)(*(outbfr.outstrs)));
tPtr = (LongWord *) (&outbfr);

TESetText(5, (Ref) tPtr, length, 0,(Ref) NULL, NULL);

The strings are displayed on the text screen when I quit the app by the printf() calls in xprintf(). Did I mention I’m floundering around? <sigh>

— Mark Wade

Re: Output to window with TextEdit

<28d44ff1-91f5-4280-9d4b-9d49ead801b1n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5126&group=comp.sys.apple2#5126

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:aed:2791:0:b0:3bd:1a0b:8ac4 with SMTP id a17-20020aed2791000000b003bd1a0b8ac4mr1070886qtd.1.1677085442472;
Wed, 22 Feb 2023 09:04:02 -0800 (PST)
X-Received: by 2002:a05:6214:17c2:b0:56e:9af3:44e0 with SMTP id
cu2-20020a05621417c200b0056e9af344e0mr1092894qvb.10.1677085442148; Wed, 22
Feb 2023 09:04:02 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Wed, 22 Feb 2023 09:04:01 -0800 (PST)
In-Reply-To: <7c976f82-5ac3-4574-8470-5f5722a433a6n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=109.24.176.118; posting-account=c4quJwoAAABUj_DOmUN3HIuXxN1tF7gT
NNTP-Posting-Host: 109.24.176.118
References: <d12300a9-eec9-403b-81ff-eaf25678f608n@googlegroups.com>
<tt3iec$18laa$1@dont-email.me> <7c976f82-5ac3-4574-8470-5f5722a433a6n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <28d44ff1-91f5-4280-9d4b-9d49ead801b1n@googlegroups.com>
Subject: Re: Output to window with TextEdit
From: ntn.vig...@gmail.com (Antoine Vignau)
Injection-Date: Wed, 22 Feb 2023 17:04:02 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2043
 by: Antoine Vignau - Wed, 22 Feb 2023 17:04 UTC

Hi,
Here is some ASM code I wrote. You can insert different kinds of strings (C, Pascal, GS/OS)

tePASCAL = $0000
teC = $0001
teC1 = $0002

*---

fcSPROCESS0 lda #teC1 ; volume name
ldx #^volNAMEopen
ldy #volNAMEopen
jsr doLOG

lda #tePASCAL ; comma
ldx #^strCOMMA
ldy #strCOMMA
jsr doLOG

*-----------

ldx #^strSPROCESS ; start process
ldy #strSPROCESS
lda #tePASCAL
jsr doLOG

*---

doLOG
pha ; type of string on entry
phx ; pointer to string
phy

PushLong #-1 ; move to the end of the buffer
PushLong #-1
PushLong #0
_TESetSelection

lda #0 ; insert the text
pha ; l
pha
pha ; w
pha ; l
pha
pha ; l
pha
_TEInsert
rts

Toolbox ref volume 3 @ https://drive.google.com/file/d/1WnyA6aTQSVX0IbIk2LbjX56K8MuO_92L/view?usp=share_link

Antoine

Re: Output to window with TextEdit

<dog_cow-1677089530@macgui.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5127&group=comp.sys.apple2#5127

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dog_...@macgui.com (D Finnigan)
Newsgroups: comp.sys.apple2
Subject: Re: Output to window with TextEdit
Date: Wed, 22 Feb 2023 18:12:12 -0000 (UTC)
Organization: Mac GUI
Lines: 8
Message-ID: <dog_cow-1677089530@macgui.com>
References: <d12300a9-eec9-403b-81ff-eaf25678f608n@googlegroups.com> <28d44ff1-91f5-4280-9d4b-9d49ead801b1n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 22 Feb 2023 18:12:12 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="d3b797987b4b1e85c58a41b56ad78163";
logging-data="1672454"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18t2uzyQyZlTAnbOZFiR9nb"
User-Agent: Mac GUI Usenet
Cancel-Lock: sha1:FJuXauJ9MpJfc2sxJ0Bhe+NAkig=
In-Reply-To: <28d44ff1-91f5-4280-9d4b-9d49ead801b1n@googlegroups.com>
 by: D Finnigan - Wed, 22 Feb 2023 18:12 UTC

Antoine Vignau wrote:
> Hi,
> Here is some ASM code I wrote. You can insert different kinds of strings
> (C, Pascal, GS/OS)
>

La prochaine fois, il s'ecrira par ChatGPT! ;-)

Re: Output to window with TextEdit

<c415b842-793c-47ed-9ce9-e9162241d91bn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5128&group=comp.sys.apple2#5128

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a05:6214:aa8:b0:56e:b032:db3a with SMTP id ew8-20020a0562140aa800b0056eb032db3amr1143247qvb.1.1677089626853;
Wed, 22 Feb 2023 10:13:46 -0800 (PST)
X-Received: by 2002:ac8:1e03:0:b0:3bd:1428:26b4 with SMTP id
n3-20020ac81e03000000b003bd142826b4mr1211744qtl.1.1677089626018; Wed, 22 Feb
2023 10:13:46 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Wed, 22 Feb 2023 10:13:45 -0800 (PST)
In-Reply-To: <28d44ff1-91f5-4280-9d4b-9d49ead801b1n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=24.185.98.244; posting-account=PB2qngoAAACRVoANRzBDZM-TqC_DJF8g
NNTP-Posting-Host: 24.185.98.244
References: <d12300a9-eec9-403b-81ff-eaf25678f608n@googlegroups.com>
<tt3iec$18laa$1@dont-email.me> <7c976f82-5ac3-4574-8470-5f5722a433a6n@googlegroups.com>
<28d44ff1-91f5-4280-9d4b-9d49ead801b1n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c415b842-793c-47ed-9ce9-e9162241d91bn@googlegroups.com>
Subject: Re: Output to window with TextEdit
From: justlike...@gmail.com (Tom Thumb)
Injection-Date: Wed, 22 Feb 2023 18:13:46 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2378
 by: Tom Thumb - Wed, 22 Feb 2023 18:13 UTC

On Wednesday, February 22, 2023 at 12:04:03 PM UTC-5, Antoine Vignau wrote:
> Hi,
> Here is some ASM code I wrote. You can insert different kinds of strings (C, Pascal, GS/OS)
>
> tePASCAL = $0000
> teC = $0001
> teC1 = $0002
>
> *---
>
> fcSPROCESS0 lda #teC1 ; volume name
> ldx #^volNAMEopen
> ldy #volNAMEopen
> jsr doLOG
>
> lda #tePASCAL ; comma
> ldx #^strCOMMA
> ldy #strCOMMA
> jsr doLOG
>
> *-----------
>
> ldx #^strSPROCESS ; start process
> ldy #strSPROCESS
> lda #tePASCAL
> jsr doLOG
>
> *---
>
> doLOG
> pha ; type of string on entry
> phx ; pointer to string
> phy
>
> PushLong #-1 ; move to the end of the buffer
> PushLong #-1
> PushLong #0
> _TESetSelection
>
> lda #0 ; insert the text
> pha ; l
> pha
> pha ; w
> pha ; l
> pha
> pha ; l
> pha
> _TEInsert
> rts
>
> Toolbox ref volume 3 @ https://drive.google.com/file/d/1WnyA6aTQSVX0IbIk2LbjX56K8MuO_92L/view?usp=share_link
>
> Antoine

Hmm, a lot to digest; assembly to C but I think I follow that. Thank you Antoine.

Re: Output to window with TextEdit

<61106035-c066-47e2-a2c2-0fe862c8872bn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5129&group=comp.sys.apple2#5129

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a05:620a:6230:b0:742:34f3:6608 with SMTP id ou48-20020a05620a623000b0074234f36608mr538099qkn.8.1677089880389;
Wed, 22 Feb 2023 10:18:00 -0800 (PST)
X-Received: by 2002:ac8:1cc:0:b0:3b9:58c6:70ab with SMTP id
b12-20020ac801cc000000b003b958c670abmr1267537qtg.9.1677089880226; Wed, 22 Feb
2023 10:18:00 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Wed, 22 Feb 2023 10:17:59 -0800 (PST)
In-Reply-To: <dog_cow-1677089530@macgui.com>
Injection-Info: google-groups.googlegroups.com; posting-host=24.185.98.244; posting-account=PB2qngoAAACRVoANRzBDZM-TqC_DJF8g
NNTP-Posting-Host: 24.185.98.244
References: <d12300a9-eec9-403b-81ff-eaf25678f608n@googlegroups.com>
<28d44ff1-91f5-4280-9d4b-9d49ead801b1n@googlegroups.com> <dog_cow-1677089530@macgui.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <61106035-c066-47e2-a2c2-0fe862c8872bn@googlegroups.com>
Subject: Re: Output to window with TextEdit
From: justlike...@gmail.com (Tom Thumb)
Injection-Date: Wed, 22 Feb 2023 18:18:00 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1535
 by: Tom Thumb - Wed, 22 Feb 2023 18:17 UTC

On Wednesday, February 22, 2023 at 1:12:14 PM UTC-5, D Finnigan wrote:
> Antoine Vignau wrote:
> > Hi,
> > Here is some ASM code I wrote. You can insert different kinds of strings
> > (C, Pascal, GS/OS)
> >
> La prochaine fois, il s'ecrira par ChatGPT! ;-)

Perhaps. I just want to scroll though output from my running app

Re: Output to window with TextEdit

<c7864733-c7b9-4528-b22e-9700c8eb17f4n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5130&group=comp.sys.apple2#5130

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a05:620a:108b:b0:73b:aa41:668b with SMTP id g11-20020a05620a108b00b0073baa41668bmr1195366qkk.6.1677093003796;
Wed, 22 Feb 2023 11:10:03 -0800 (PST)
X-Received: by 2002:ad4:4f26:0:b0:56c:1ff3:9e93 with SMTP id
fc6-20020ad44f26000000b0056c1ff39e93mr1189007qvb.5.1677093003611; Wed, 22 Feb
2023 11:10:03 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Wed, 22 Feb 2023 11:10:03 -0800 (PST)
In-Reply-To: <61106035-c066-47e2-a2c2-0fe862c8872bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=24.185.98.244; posting-account=PB2qngoAAACRVoANRzBDZM-TqC_DJF8g
NNTP-Posting-Host: 24.185.98.244
References: <d12300a9-eec9-403b-81ff-eaf25678f608n@googlegroups.com>
<28d44ff1-91f5-4280-9d4b-9d49ead801b1n@googlegroups.com> <dog_cow-1677089530@macgui.com>
<61106035-c066-47e2-a2c2-0fe862c8872bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c7864733-c7b9-4528-b22e-9700c8eb17f4n@googlegroups.com>
Subject: Re: Output to window with TextEdit
From: justlike...@gmail.com (Tom Thumb)
Injection-Date: Wed, 22 Feb 2023 19:10:03 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3897
 by: Tom Thumb - Wed, 22 Feb 2023 19:10 UTC

On Wednesday, February 22, 2023 at 1:18:01 PM UTC-5, Tom Thumb wrote:

> Perhaps. I just want to scroll though output from my running app

Neither here nor there but, well…

I’ve been wanting to write a program to set flagstones in a given area that shows placement and tallies stones used since my IIgs. The smallest stone is 12” x 12” and sizes are in increments of 6” up to 36” x 36”, though a stone of that size is uncommon.

So the stones would be placed on a grid, the first x,y gridlines a mutiple of 12 from the edges, subsequent x,y gridlines multiples of 6 from the previous gridline. Given the IIgs aspect ratio, y gridlines are calculated multiples of 6 x 1, x gridlines multiples of 6 x 2, also real world stones are 1/2” smaller than their denominations to allow for a mortar joint, a 12 x 12 stone is actually 11 1/2" x 11 1/2" and that is accounted for with the stone size and gridlines.

Stones would be placed on the grid according to several rules; the rules being: two stones of the same size may be placed next to each other but no more than two, three of the same stones in a row or column is off-putting. Edges of stones may form a continuous line but no more than perhaps 4’ after which the line would need to be broken by placing a stone across the line. Lines of stone edges may not form a cross, as in “+” but must be offset as in “—|__”. Orphaned spaces, ie. voids on the grid less than 12 x 12 must be avoided and occur easily..

So, there are choices such as when creating the collection of stones should a 12 x 24 and a 24 x 12 be created or just a 12 x 24 created and turned as needed. So far I chosen the later, seems more real world, saves space and such though that’s kind of trivial.

I’ve done some; I pseudo-randomly choose a stone from the collection and again randomly turn it if it isn’t square and draw them to the screen but I’ve a long way to go and now I’ve gone by the wayside trying to output printf and sprintf statements that don’t scroll off to oblivion.

Seems like a simple thing and it is called random flagstone but when a human goes about it it is anything but random. Choices are consciously made and evaluated for pitfalls and esthetics. Maybe one day I'll finish it or get close with nothing to gain from it than the endeavor.

-- Mark Wade

Re: Output to window with TextEdit

<bf942098-0199-470b-92db-33cda6f88f01n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5131&group=comp.sys.apple2#5131

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:ac8:56f6:0:b0:3b8:6824:f33c with SMTP id 22-20020ac856f6000000b003b86824f33cmr1662450qtu.2.1677135753938;
Wed, 22 Feb 2023 23:02:33 -0800 (PST)
X-Received: by 2002:a05:6808:118d:b0:37f:78b7:9b81 with SMTP id
j13-20020a056808118d00b0037f78b79b81mr2058839oil.198.1677135753548; Wed, 22
Feb 2023 23:02:33 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Wed, 22 Feb 2023 23:02:33 -0800 (PST)
In-Reply-To: <c415b842-793c-47ed-9ce9-e9162241d91bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=194.196.255.94; posting-account=c4quJwoAAABUj_DOmUN3HIuXxN1tF7gT
NNTP-Posting-Host: 194.196.255.94
References: <d12300a9-eec9-403b-81ff-eaf25678f608n@googlegroups.com>
<tt3iec$18laa$1@dont-email.me> <7c976f82-5ac3-4574-8470-5f5722a433a6n@googlegroups.com>
<28d44ff1-91f5-4280-9d4b-9d49ead801b1n@googlegroups.com> <c415b842-793c-47ed-9ce9-e9162241d91bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bf942098-0199-470b-92db-33cda6f88f01n@googlegroups.com>
Subject: Re: Output to window with TextEdit
From: ntn.vig...@gmail.com (Antoine Vignau)
Injection-Date: Thu, 23 Feb 2023 07:02:33 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1612
 by: Antoine Vignau - Thu, 23 Feb 2023 07:02 UTC

On Wednesday, February 22, 2023 at 7:13:47 PM UTC+1, Tom Thumb wrote:
> Hmm, a lot to digest; assembly to C but I think I follow that. Thank you Antoine.

The result can be seen on page 7 @ http://www.brutaldeluxe.fr/products/apple2gs/fishhead/fishhead_manual_v1.pdf

av

Re: Output to window with TextEdit

<a3b3048e-3866-4558-81b6-ca04826bbe0fn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5132&group=comp.sys.apple2#5132

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a05:6214:a03:b0:56f:a4:d7f9 with SMTP id dw3-20020a0562140a0300b0056f00a4d7f9mr1505608qvb.9.1677135770623;
Wed, 22 Feb 2023 23:02:50 -0800 (PST)
X-Received: by 2002:a05:6871:88:b0:172:4550:e26f with SMTP id
u8-20020a056871008800b001724550e26fmr887237oaa.118.1677135770401; Wed, 22 Feb
2023 23:02:50 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Wed, 22 Feb 2023 23:02:49 -0800 (PST)
In-Reply-To: <dog_cow-1677089530@macgui.com>
Injection-Info: google-groups.googlegroups.com; posting-host=194.196.255.94; posting-account=c4quJwoAAABUj_DOmUN3HIuXxN1tF7gT
NNTP-Posting-Host: 194.196.255.94
References: <d12300a9-eec9-403b-81ff-eaf25678f608n@googlegroups.com>
<28d44ff1-91f5-4280-9d4b-9d49ead801b1n@googlegroups.com> <dog_cow-1677089530@macgui.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a3b3048e-3866-4558-81b6-ca04826bbe0fn@googlegroups.com>
Subject: Re: Output to window with TextEdit
From: ntn.vig...@gmail.com (Antoine Vignau)
Injection-Date: Thu, 23 Feb 2023 07:02:50 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1339
 by: Antoine Vignau - Thu, 23 Feb 2023 07:02 UTC

On Wednesday, February 22, 2023 at 7:12:14 PM UTC+1, D Finnigan wrote:
> La prochaine fois, il s'ecrira par ChatGPT! ;-)

Beurk :-(

Antoine

Re: Output to window with TextEdit

<1102a28b-483e-4b49-9433-d63474f39b62n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5139&group=comp.sys.apple2#5139

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a05:620a:811a:b0:742:39cb:f742 with SMTP id os26-20020a05620a811a00b0074239cbf742mr1404539qkn.13.1677195109515;
Thu, 23 Feb 2023 15:31:49 -0800 (PST)
X-Received: by 2002:a05:6214:b2f:b0:56e:f4f0:e71d with SMTP id
w15-20020a0562140b2f00b0056ef4f0e71dmr2167048qvj.6.1677195109288; Thu, 23 Feb
2023 15:31:49 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Thu, 23 Feb 2023 15:31:49 -0800 (PST)
In-Reply-To: <bf942098-0199-470b-92db-33cda6f88f01n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=24.130.68.111; posting-account=UAtoeQoAAADrX7T-MHdWWRC4Fzf0dsLP
NNTP-Posting-Host: 24.130.68.111
References: <d12300a9-eec9-403b-81ff-eaf25678f608n@googlegroups.com>
<tt3iec$18laa$1@dont-email.me> <7c976f82-5ac3-4574-8470-5f5722a433a6n@googlegroups.com>
<28d44ff1-91f5-4280-9d4b-9d49ead801b1n@googlegroups.com> <c415b842-793c-47ed-9ce9-e9162241d91bn@googlegroups.com>
<bf942098-0199-470b-92db-33cda6f88f01n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1102a28b-483e-4b49-9433-d63474f39b62n@googlegroups.com>
Subject: Re: Output to window with TextEdit
From: thefad...@gmail.com (fadden)
Injection-Date: Thu, 23 Feb 2023 23:31:49 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1778
 by: fadden - Thu, 23 Feb 2023 23:31 UTC

On Wednesday, February 22, 2023 at 11:02:34 PM UTC-8, Antoine Vignau wrote:
> The result can be seen on page 7 @ http://www.brutaldeluxe.fr/products/apple2gs/fishhead/fishhead_manual_v1.pdf

FWIW, you can put page numbers in URLs now:
https://www.brutaldeluxe.fr/products/apple2gs/fishhead/fishhead_manual_v1.pdf#page=7

Re: Output to window with TextEdit

<affa9df8-6adf-4d58-b169-7fd2546e082an@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5182&group=comp.sys.apple2#5182

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a37:608:0:b0:742:412d:1dc6 with SMTP id 8-20020a370608000000b00742412d1dc6mr1616015qkg.14.1677960120085;
Sat, 04 Mar 2023 12:02:00 -0800 (PST)
X-Received: by 2002:a05:6214:b82:b0:571:3bf:75ec with SMTP id
fe2-20020a0562140b8200b0057103bf75ecmr1436726qvb.9.1677960119777; Sat, 04 Mar
2023 12:01:59 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Sat, 4 Mar 2023 12:01:59 -0800 (PST)
In-Reply-To: <1102a28b-483e-4b49-9433-d63474f39b62n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=82.124.249.180; posting-account=c4quJwoAAABUj_DOmUN3HIuXxN1tF7gT
NNTP-Posting-Host: 82.124.249.180
References: <d12300a9-eec9-403b-81ff-eaf25678f608n@googlegroups.com>
<tt3iec$18laa$1@dont-email.me> <7c976f82-5ac3-4574-8470-5f5722a433a6n@googlegroups.com>
<28d44ff1-91f5-4280-9d4b-9d49ead801b1n@googlegroups.com> <c415b842-793c-47ed-9ce9-e9162241d91bn@googlegroups.com>
<bf942098-0199-470b-92db-33cda6f88f01n@googlegroups.com> <1102a28b-483e-4b49-9433-d63474f39b62n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <affa9df8-6adf-4d58-b169-7fd2546e082an@googlegroups.com>
Subject: Re: Output to window with TextEdit
From: ntn.vig...@gmail.com (Antoine Vignau)
Injection-Date: Sat, 04 Mar 2023 20:02:00 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1555
 by: Antoine Vignau - Sat, 4 Mar 2023 20:01 UTC

Thank you, Andy!
av

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor