Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"The voters have spoken, the bastards..." -- unknown


devel / comp.sys.acorn.programmer / Re: Extended command line from BASIC

SubjectAuthor
* Extended command line from BASICHarriet Bazley
`* Re: Extended command line from BASICThomas Milius
 `- Re: Extended command line from BASICHarriet Bazley

1
Extended command line from BASIC

<4ab1e0e65a.harriet@bazleyfamily.co.uk>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=201&group=comp.sys.acorn.programmer#201

  copy link   Newsgroups: comp.sys.acorn.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: harriet@bazleyfamily.co.uk (Harriet Bazley)
Newsgroups: comp.sys.acorn.programmer
Subject: Extended command line from BASIC
Date: Wed, 20 Sep 2023 14:30:17 +0100
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <4ab1e0e65a.harriet@bazleyfamily.co.uk>
Injection-Info: dont-email.me; posting-host="074a83be3d13b7416a219d34303961ed";
logging-data="3111489"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vsVSMGUlLwd0Jfx0u+XY+NZ4hp+u7X5k="
User-Agent: Messenger-Pro/8.04 (MsgServe/8.04) (RISC-OS/5.29) NewsHound/v1.53-32 RC1
Cancel-Lock: sha1:vfPQZkA7Bmhem3R4Sxsq+2DK1jo=
X-Clacks-Overhead: GNU Terry Pratchett
 by: Harriet Bazley - Wed, 20 Sep 2023 13:30 UTC

Can anyone remind me how you use the DDE_Utils commands from BASIC to
invoke a command-line program with a string of parameters that
potentially exceed 255 bytes in length (and thus give errors if
assembled into a BASIC string variable?)

So far as I can tell from inspection of what I was doing in !SideDiff
(which now crashes with a segmentation fault), you simply call
DDEUtils_SetCLSize to point the OS to your buffer and then
DDEUtils_SetCL to run the command, but there seems to be some element
missing...

DIM CLbuffer% 2600
SYS "DDEUtils_SetCLSize", 2600

$CLbuffer%="Show Wimp$Scrap"
SYS "DDEUtils_SetCL",CLbuffer%

does nothing, so far as I can see.

--
Harriet Bazley == Loyaulte me lie ==

Everyone hates me because I'm paranoid.

Re: Extended command line from BASIC

<16320de75a.Thomas@tms_netz.vodafonemail.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=202&group=comp.sys.acorn.programmer#202

  copy link   Newsgroups: comp.sys.acorn.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Thomas-Milius@vodafonemail.de (Thomas Milius)
Newsgroups: comp.sys.acorn.programmer
Subject: Re: Extended command line from BASIC
Date: Wed, 20 Sep 2023 23:36:23 +0200
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <16320de75a.Thomas@tms_netz.vodafonemail.de>
References: <4ab1e0e65a.harriet@bazleyfamily.co.uk>
Injection-Info: dont-email.me; posting-host="1d1d8406fc09937a240e154dabd61470";
logging-data="3295336"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Lj0Hu+LdwlVr7UJoEUqIKk4tEKMoOE5E="
User-Agent: Messenger-Pro/9.00 (MsgServe/9.00S) (RISC-OS/5.22) NewsHound/v1.53 RC3
Cancel-Lock: sha1:ByIrcmaa/+feISU8vyeMn5O70E0=
 by: Thomas Milius - Wed, 20 Sep 2023 21:36 UTC

In message <4ab1e0e65a.harriet@bazleyfamily.co.uk>
Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

> $CLbuffer%="Show Wimp$Scrap"
> SYS "DDEUtils_SetCL",CLbuffer%
>
> does nothing, so far as I can see.

Is CLbuffer% the same as CLbuffer$ at SYS or is there a difference with
termination (0 and 13/10)?

Thomas Milius

Re: Extended command line from BASIC

<019647e75a.harriet@bazleyfamily.co.uk>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=203&group=comp.sys.acorn.programmer#203

  copy link   Newsgroups: comp.sys.acorn.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: harriet@bazleyfamily.co.uk (Harriet Bazley)
Newsgroups: comp.sys.acorn.programmer
Subject: Re: Extended command line from BASIC
Date: Thu, 21 Sep 2023 09:14:09 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <019647e75a.harriet@bazleyfamily.co.uk>
References: <4ab1e0e65a.harriet@bazleyfamily.co.uk> <16320de75a.Thomas@tms_netz.vodafonemail.de>
Injection-Info: dont-email.me; posting-host="f98caa025fa22999cbf2b013d2a327be";
logging-data="3601655"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Yl0G/nw/4SqWfV9+M1W/MPZPWnJ0ZPz0="
User-Agent: Messenger-Pro/8.04 (MsgServe/8.04) (RISC-OS/5.29) NewsHound/v1.53-32 RC1
Cancel-Lock: sha1:bpDpDqex67CDCZZwnp9071ZGCNY=
X-Clacks-Overhead: GNU Terry Pratchett
 by: Harriet Bazley - Thu, 21 Sep 2023 08:14 UTC

On 20 Sep 2023 as I do recall,
Thomas Milius wrote:

> In message <4ab1e0e65a.harriet@bazleyfamily.co.uk>
> Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:
>
> > $CLbuffer%="Show Wimp$Scrap"
> > SYS "DDEUtils_SetCL",CLbuffer%
> >
> > does nothing, so far as I can see.
>
> Is CLbuffer% the same as CLbuffer$ at SYS or is there a difference with
> termination (0 and 13/10)?
>
The StrongHelp manual for "DDEUtils_SetCL" complains "The command line
is actually terminated at the first *control* character. This is very
annoying" - but presumably use from BASIC is the reason why....

--
Harriet Bazley == Loyaulte me lie ==

ObChocolate: Nice!

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor