QD for Basic and other editors

Anything QL Software or Programming Related.
User avatar
RalfR
QL Wafer Drive
Posts: 1177
Joined: Fri Jun 15, 2018 8:58 pm

Re: QD for Basic and other editors

Post by RalfR »

BSJR wrote: Thu Dec 05, 2024 10:51 amStrangely this does change the cursor in Basic and most of the other jobs but not for my QDs (v8.07).
Makes me wonder, as MK's syssprite covers the cursor in the whole machine incl. QD v8.07 (on my machine).

Perhaps there is a way to POKE the cursor for individual SB programs as it is done with the PE programs via MK's colourway_bas.


7000 4E75
User avatar
pjw
QL Wafer Drive
Posts: 1608
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: QD for Basic and other editors

Post by pjw »

Derek_Stewart wrote: Thu Dec 05, 2024 10:15 am Hi,

Is it possible to configure the colour of the cursor?
Check the QPC2 Keywords manual for CURSPRLOAD and CURSPRON/CURSPROFF


Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
User avatar
RalfR
QL Wafer Drive
Posts: 1177
Joined: Fri Jun 15, 2018 8:58 pm

Re: QD for Basic and other editors

Post by RalfR »

pjw wrote: Thu Dec 05, 2024 11:07 amCheck the QPC2 Keywords manual for CURSPRLOAD and CURSPRON/CURSPROFF
Thank you!

No, it is in the QPC "Concepts revision 1.02 ", where I haven't look, never thought it would have been there.... :o


7000 4E75
User avatar
pjw
QL Wafer Drive
Posts: 1608
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: QD for Basic and other editors

Post by pjw »

RalfR wrote: Thu Dec 05, 2024 11:14 am
pjw wrote: Thu Dec 05, 2024 11:07 amCheck the QPC2 Keywords manual for CURSPRLOAD and CURSPRON/CURSPROFF
Thank you!

No, it is in the QPC "Concepts revision 1.02 ", where I haven't look, never thought it would have been there.... :o
Well the information is most certainly the QPC2 Keywords manual V1.05 also.

However, the information is unclear or inaccurate: CURSPRON sets the cursor sprite universally, not on a per-job basis as advertised. However, it appears that CURSPROFF does switch the Wman cursor sprite off on a per-job basis. Seems to me to be a bug.

Neither CURSPRON nor CURSPROFF appear to have any effect on QD. I guess that has to do with the rather special way the cursor works in QD as it can act as both a cursor and a pointer.


Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
User avatar
RalfR
QL Wafer Drive
Posts: 1177
Joined: Fri Jun 15, 2018 8:58 pm

Re: QD for Basic and other editors

Post by RalfR »

pjw wrote: Thu Dec 05, 2024 11:59 amWell the information is most certainly the QPC2 Keywords manual V1.05 also.

However, the information is unclear or inaccurate: CURSPRON sets the cursor sprite universally, not on a per-job basis as advertised. However, it appears that CURSPROFF does switch the Wman cursor sprite off on a per-job basis. Seems to me to be a bug.
Ok, on MK's site, there is only v1.01 of the Keywords manual.

Sad, that it doesn't work. Does "CURSPRON -1" work as advertised (as stated in the Concepts manual with an example program)?

So, if CURSPROFF works on a job, one could set this in an SB program and gets the usual red cursor in just that program, if I have understand it :) .


7000 4E75
User avatar
pjw
QL Wafer Drive
Posts: 1608
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: QD for Basic and other editors

Post by pjw »

"If in doubt try it out!" ;)


Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
User avatar
RalfR
QL Wafer Drive
Posts: 1177
Joined: Fri Jun 15, 2018 8:58 pm

Re: QD for Basic and other editors

Post by RalfR »

Where do I find v1.05 of the QPC Keywords manual?

Ok, CURSPROFF -1 does it. Then you get the standard cursor in an SB program.


7000 4E75
User avatar
pjw
QL Wafer Drive
Posts: 1608
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: QD for Basic and other editors

Post by pjw »

RalfR wrote: Thu Dec 05, 2024 1:51 pm Where do I find v1.05 of the QPC Keywords manual?
<>
We're talking about "QPC Keywords", release 1.05, the date is 04/23

Sorry, I have no idea. Its a complete mystery. If no one else can find it I could dump it here, but its like 1/2 Mb.


Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
User avatar
RalfR
QL Wafer Drive
Posts: 1177
Joined: Fri Jun 15, 2018 8:58 pm

Re: QD for Basic and other editors

Post by RalfR »

RalfR wrote: Thu Dec 05, 2024 1:51 pmOk, CURSPROFF -1 does it. Then you get the standard cursor in an SB program.
That also works, if an SB job is running. Say, you have an SB job "test", then CURSPROFF "test" in the command line of SB and you get the standard cursor. This does not work for QD. I think, because it is a pointer sprite.


7000 4E75
User avatar
dilwyn
Mr QL
Posts: 3057
Joined: Wed Dec 01, 2010 10:39 pm

Re: QD for Basic and other editors

Post by dilwyn »

pjw wrote: Thu Dec 05, 2024 2:23 pm
RalfR wrote: Thu Dec 05, 2024 1:51 pm Where do I find v1.05 of the QPC Keywords manual?
<>
We're talking about "QPC Keywords", release 1.05, the date is 04/23

Sorry, I have no idea. Its a complete mystery. If no one else can find it I could dump it here, but its like 1/2 Mb.
https://dilwyn.theqlforum.com/docs/ebooks/index.html
QPC Concepts guide 1.03
QPC Keywords guide 1.05

There is also the SMSQ/E manual on same page, which I'm in the process of updating.

I've been following this discussion and had a go with the keywords mentioned. I confirm it works with everything but QD, probably as Per said the way QD accesses the cursor as both a cursor and sprite.

Yet, QD picks up the system sprites installed by Marcel's syssprites. So, there is either something different about Marcel sprites (colour mode, or has a specific system sprite number in its header, for example). CURSPRLOAD normally loads a sprite to replace system sprite 36 (cursor) or possibly 37 (flashing). In theory at least, and I've not tried it, SYSSPRLOAD 36,sprite_filename should be the same as CURSPRLOAD sprite_filename. If anyone has the time, examine for any difference between Marcel's sprite and regular sprites. It's not beyond the bounds of possibility that QD checks for something different in system sprites compared to regular sprites.

I've done a quick try with some simple 6x10 mode 4 sprites from the CURSPR package on my site. Loading these with CURSPRLOAD and using CURSPRON works for most programs with text cursors, including PE programs which have text input, I tried BASIC, S_Edit, Q-Trans, Launchpad, Xchange and others. QD was the only one which ignored it. Further investigaton needed as to why QD picks up Marcel's system sprite but not a regular 6x10 sprite.


Post Reply