Re: [Ql-Users] SBASIC 'ls' procedure

2017-02-12 Thread Jan Bredenbeek
>> To save you reinventing the wheel Jan, Norman Dunbar's DJToolkit has an > extension called LEVEL2 which tests for a Level 2 filing system. The > assembler source djtoolkit_asm is included with the toolkit - just search > for 'level2' in that source. > > http://www.dilwyn.me.uk/tk/djtk.zip >

Re: [Ql-Users] SBASIC 'ls' procedure

2017-02-12 Thread Dilwyn Jones
- NOTE: On non-V2 drivers which don't support subdirectories, ls will fail because the FNAME$ function stops with 'bad parameter' on directory channels. This can be avoided by adjusting line 1710 in the code (as indicated in the REMarks). I'll probably have to design another machine code call to

Re: [Ql-Users] SBASIC 'ls' procedure

2017-02-12 Thread RWAP Software
On 2017-02-12 16:43, Jan Bredenbeek wrote: On 12 February 2017 at 15:29, RWAP Software wrote: Hi Jan, That is great - it is a nice function which can be useful. Could I ask you to consider moving (or Forking?) the repository to the new SInclair QL Github, as this

Re: [Ql-Users] SBASIC 'ls' procedure

2017-02-12 Thread Jan Bredenbeek
On 12 February 2017 at 15:29, RWAP Software wrote: > Hi Jan, > > That is great - it is a nice function which can be useful. > > Could I ask you to consider moving (or Forking?) the repository to the new > SInclair QL Github, as this is intended to keep all of the QL

Re: [Ql-Users] SBASIC 'ls' procedure

2017-02-12 Thread RWAP Software
Hi Jan, That is great - it is a nice function which can be useful. Could I ask you to consider moving (or Forking?) the repository to the new SInclair QL Github, as this is intended to keep all of the QL stuff together - https://github.com/SinclairQL Rich On 2017-02-12 14:24, Jan

Re: [Ql-Users] SBASIC 'ls' procedure

2017-02-12 Thread Jan Bredenbeek
I've updated the code with various improvements and fixes: - Listing now adjusts to window size and can be aborted by pressing 'Q' or ESC, even when recursing directories; - Redirection by DEV device is now handled correctly (so long as you don't rename the DEV device itself ;)) - SMSQ is no

[Ql-Users] SBASIC 'ls' procedure

2017-01-29 Thread Jan Bredenbeek
Okay, here it is. Merge this into your BOOT file and you'll have a Unix-like 'ls' command, and even a 'lsr' command to list directories recursively. It lists one file per line, with type, size and date info, and without the subdirectory names in front of each filename (unlike DIR and WSTAT). The