sQLux Detection

Discussion and advice about emulating the QL on other machines.
Post Reply
Derek_Stewart
Font of All Knowledge
Posts: 3929
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

sQLux Detection

Post by Derek_Stewart »

Hi,

I use SMSQ/E in QPC2, SMSQmulator and sQLux using the same QLWA container, so the boot file selects the extenstions to be loaded, based on the VER$ being equal to 'HBA' and the SMSQ/E MACHINE function.

If sQLux is running, I use the UQLX_RELEASE$ to load sQLux extensions, is there a better way to detect if sQLux is running?


Regards,

Derek
User avatar
tofro
Font of All Knowledge
Posts: 2685
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: sQLux Detection

Post by tofro »

Derek_Stewart wrote:Hi,

I use SMSQ/E in QPC2, SMSQmulator and sQLux using the same QLWA container, so the boot file selects the extenstions to be loaded, based on the VER$ being equal to 'HBA' and the SMSQ/E MACHINE function.

If sQLux is running, I use the UQLX_RELEASE$ to load sQLux extensions, is there a better way to detect if sQLux is running?
If you want a non-uqlx-specific command, you can try to OPEN the "pty" device - if it works, you're likely on uqlx/sQlux.


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
XorA
Site Admin
Posts: 1358
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: sQLux Detection

Post by XorA »

tofro wrote:
Derek_Stewart wrote:Hi,

I use SMSQ/E in QPC2, SMSQmulator and sQLux using the same QLWA container, so the boot file selects the extenstions to be loaded, based on the VER$ being equal to 'HBA' and the SMSQ/E MACHINE function.

If sQLux is running, I use the UQLX_RELEASE$ to load sQLux extensions, is there a better way to detect if sQLux is running?
If you want a non-uqlx-specific command, you can try to OPEN the "pty" device - if it works, you're likely on uqlx/sQlux.
That does not work on all platforms though (windows does not have PTY).


User avatar
XorA
Site Admin
Posts: 1358
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: sQLux Detection

Post by XorA »

Didnt someone somewhere else mention an extension where you can do

EXISTS UQLX_RELEASE$

To test for existence with still being generic?


User avatar
XorA
Site Admin
Posts: 1358
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: sQLux Detection

Post by XorA »



Derek_Stewart
Font of All Knowledge
Posts: 3929
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: sQLux Detection

Post by Derek_Stewart »

XorA wrote:https://superbasic-manual.readthedocs.i ... check.html

Thats what I was thinking of!
Yes that could be done, but I would have to load DJTK.

The PTY idea, could work, since I do not use Windows.

My current solution of testng UQLX_RELEASE$ for string. a null string wod mean it is not sQLux or UQLX.

The reason for this, SMSQ/E uses the lastest version of QPAC2, MENU_REXT, SYSMON. But sQLux running Minerva, can not run the latest versions of the software.


Regards,

Derek
User avatar
pjw
QL Wafer Drive
Posts: 1286
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: sQLux Detection

Post by pjw »

Derek_Stewart wrote:
XorA wrote:https://superbasic-manual.readthedocs.i ... check.html

Thats what I was thinking of!
Yes that could be done, but I would have to load DJTK. <>
Theres also FINDNAME% at Knoware.no, a single command toolkit that does the same. You can also check for the existence of toolkit extensions from S*BASIC using the example code shown there; ie no toolkit involved.


Per
dont be happy. worry
- ?
User avatar
RalfR
Aurora
Posts: 870
Joined: Fri Jun 15, 2018 8:58 pm

Re: sQLux Detection

Post by RalfR »

There are also several others, like "ISIT" from IDIS SE.

A clever way for procedures is in one of Steve Jones (SideWinder) program disks: An MC utility, which converts a resident MC procedure into an MC function. Say, to convert "OUTL" into "F_OUTL" which generates ERR.NI as a result, if QPTR is not present.

I can look on my disks to find it (hopefully). :)


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

Re: sQLux Detection

Post by pjw »

RalfR wrote:There are also several others, like "ISIT" from IDIS SE.
The point was if he doesnt like to load a whole toolkit for just one command.
RalfR wrote:A clever way for procedures is in one of Steve Jones (SideWinder) program disks: An MC utility, which converts a resident MC procedure into an MC function. Say, to convert "OUTL" into "F_OUTL" which generates ERR.NI as a result, if QPTR is not present.
Clever if the command doesnt exist, but perhaps not so much if it does..


Per
dont be happy. worry
- ?
Derek_Stewart
Font of All Knowledge
Posts: 3929
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: sQLux Detection

Post by Derek_Stewart »

Hi,

The process I use for the boot file to determine if sQLux is running is to check the Function UQLX_RELEASE$, which is defined with the UQLX release version data.

SMSQ/E will see it has a null string and JS would see it as an undefined string.

This seems to work , but it may not be very elegant.

I do not want add more extensions to check something is installed or not.

The problem is that Minerva will only run certain versions of QPAC2 , MENU_REXT, needs PTR_GEN, WMAN, HOT_RECT of a certain version not the up to date versions.

I was going have use 2 version of QD, but I am starting to use MicroEmacs, with the SuperBasic syntax highlighting is nice to use.

I just need a MicrEmacs macro to execute multibasic, using pipep, and load the Superbasic program.

Or maybe use SSB to run the Superbasic program from MicroEmacs.


Regards,

Derek
Post Reply