Search found 1431 matches

by Richard Russell
Sat Jul 11, 2020 12:57 pm
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

I just checked an older version from 28 June, and that doesn't have this problem. The versions from 7th and 10th of July do have it. It was a necessary change to fix the problems Soruk was having on the Raspberry Pi, so not something I can reverse. I see the ncurses library has a parameter ESCDELAY...
by Richard Russell
Fri Jul 10, 2020 11:06 pm
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

Spurious character issue, for me, has disappeared completely, both Linux x86_64 and RasPi. Great, but clearly the Console Mode editions are fatally flawed because the discrimination between an escape sequence and pressing the escape key is not sufficiently reliable. I should probably have made them...
by Richard Russell
Fri Jul 10, 2020 10:17 pm
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

That is, an escape sequence will all be available to a read(), it won't be dribbled out. It doesn't work for me; it's one of the first things I tried. If you think about it, the method I am currently using, which is to measure the time between seeing the escape character and the rest of the sequenc...
by Richard Russell
Fri Jul 10, 2020 8:11 pm
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

Am I missing anything? On stdin I can receive an escape sequence from the keyboard (e.g. from a cursor key), an escape sequence in response to a cursor-position query, or an isolated escape character as a result of the Esc key being pressed. Is there an alternative or better way of distinguishing th...
by Richard Russell
Fri Jul 10, 2020 7:44 pm
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

So it looks like the Escape isn't cleared, or is replicated, or something. Hmm, I've not seen that, and needless to say I can't reproduce it here (in Windows). I'll try it later on my Mac. If I was to guess the cause, it would be that an escape sequence that is being received in response to a curso...
by Richard Russell
Fri Jul 10, 2020 6:52 pm
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

BigEd wrote:
Fri Jul 10, 2020 6:40 pm
New version is working nicely for me - thanks!
That's encouraging. Anything more that you'd like added to satisfy your needs? I'm not promising that I will, just interested! :wink:
by Richard Russell
Fri Jul 10, 2020 6:43 pm
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

BASIC V on the Archimedes introduced TEXTLOAD which can read in a text-form program I notice that it says here that TEXTLOAD is a BASIC VI (BASIC64) feature, which is probably why I don't remember Sophie ever mentioning it back in the day: " Features in BASIC VI... The TEXTLOAD command can load a f...
by Richard Russell
Fri Jul 10, 2020 6:10 pm
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

Paste hiccup is fixed for me (and all my paste testing has been programs with line numbers). No more hanging on either Linux or RasPi. Keeping an eye out for the spurious characters.... Whilst I can see that select() returning an error condition (which my earlier code interpreted as meaning somethi...
by Richard Russell
Fri Jul 10, 2020 5:50 pm
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

A typed CTRL-U shouldn't disable VDU, instead it should delete the line. Agreed, and indeed that's what it does in BB4W and BBCSDL. But the general point remains valid: because anything you can type can be pasted or *EXECd, there are bound to be things that can crash or appear to freeze the program...
by Richard Russell
Fri Jul 10, 2020 3:14 pm
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

Right, this is where we are. I cannot reproduce the issues reported by Soruk, either on the Raspberry Pi 4 or in Ubuntu 18.04, even though I can now paste a large chunk of text. There is a pause after pasting before keyboard input is accepted again, this is whilst all the responses from the aborted ...
by Richard Russell
Fri Jul 10, 2020 2:01 pm
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

Is it the case that BBC Basic will need to query the cursor position even during the entry of a multi-line program? Well, yes and no! If it doesn't, pasting the program should work correctly but afterwards where it thinks the cursor is may not be where it actually is, and that could cause problems ...
by Richard Russell
Fri Jul 10, 2020 12:43 pm
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

I tend to use the NEdit editor when editing, but pretty much any GUI text editor should work. I only know nano. If I need to investigate an alternative editor for the sole reason of getting enough text onto the clipboard to reproduce the issue you described, I'm not sure I'm going to bother. Most c...
by Richard Russell
Fri Jul 10, 2020 10:41 am
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

While I'm not seeing the spurious characters on this, pasting in a large wodge of text still jams it up Sorry, me being thick again: how do you put "a large wodge of text" on the clipboard? I've managed to paste text by selecting it in one window and middle-clicking in another (thanks for the educa...
by Richard Russell
Fri Jul 10, 2020 9:44 am
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

Are there any specific tests you'd like me to do to help track this down? Can you try it on another platform? The Raspberry Pi is generally troublesome, and I tend to dismiss any problems as being Pi-specific (even though I probably shouldn't). I'm coming round to the opinion that the Console Mode ...
by Richard Russell
Thu Jul 09, 2020 10:24 pm
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

I have updated the Console Mode editions of BBC BASIC to version 0.18. As discussed, in this version I cause a 'query cursor position' to be aborted if there are more than about 200 characters ahead of the response in the stdin stream. There is a possibility that this could cause POS or VPOS to retu...
by Richard Russell
Thu Jul 09, 2020 9:15 pm
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

BASIC V on the Archimedes introduced TEXTLOAD Fair enough. As I've said many times, I've never owned or used an Archimedes (RPC etc.) so I know very little about them. Some of the few things I do know I'm not happy about, such as the crazy way the RGB extension of the COLOUR statement bypasses the ...
by Richard Russell
Thu Jul 09, 2020 4:45 pm
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

Of course I don't know the architecture of the application, but would there be a way for the cursor position query to get back 'not known' or 'try again later', so it somehow yields to the text input handler? That's the sort of thing I'm proposing, but of course there's no provision for the POS and...
by Richard Russell
Thu Jul 09, 2020 4:05 pm
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

I'd rather find a more elegant solution but I need to understand the problem better than I do now. Predictably, the problem does not occur in Windows (which is the platform on which I do most of my testing): I can paste any reasonable amount of text and it doesn't get truncated! On Linux and MacOS ...
by Richard Russell
Thu Jul 09, 2020 12:22 pm
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

If that keyboard buffer is configurable, should be no harm on a modern machine to increase it to a megabyte. It's not trivially reconfigurable (it's a static buffer) and making it bigger causes complications for ADVAL(-1) which programs won't be expecting to return large numbers. I can also foresee...
by Richard Russell
Thu Jul 09, 2020 11:36 am
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

Is there an "official" way to load a text-form program into BB4C or is *EXEC the correct way? As things stand it's exactly like Acorn's BBC BASICs: the only way to load a text-format program is via *EXEC. LOAD is just a thin wrapper around *LOAD which loads the file directly into memory at PAGE. I ...
by Richard Russell
Thu Jul 09, 2020 10:29 am
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

You should be able to put the following into $HOME/.Xresources, creating the file if it doesn't already exist: Thanks. Unfortunately I normally use the default Raspbian terminal (LXTerminal) which doesn't support window resizing at all, so for programs that require an 80 x 32 mode - 8queens.bbc is ...
by Richard Russell
Thu Jul 09, 2020 10:23 am
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

I just pasted with the usual keyboard shortcut: command-V on the Mac. Similar question to the one about Linux I'm afraid: I'm using a Mac Mini with a standard PC keyboard, so what is the 'command' key in my case? I can honestly say I've never used copy-and-paste in either Linux or MacOS, despite us...
by Richard Russell
Thu Jul 09, 2020 9:45 am
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

I was pasting with middle-click in an xterm window on the RasPi. Sorry, somewhat embarrassing question. Not only did I not know that the middle button had any functionality in Linux, I've no idea how to get text onto the clipboard in the first place! Can you put me out of my misery? Incidentally if...
by Richard Russell
Thu Jul 09, 2020 9:29 am
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

I was pasting with middle-click in an xterm window on the RasPi. I don't encounter any limitations when pasting into other things, e.g. Nano. I doubt that "other things" have the complications that BBC BASIC does in reading console input! The first complication is how to detect an Escape keypress (...
by Richard Russell
Thu Jul 09, 2020 1:28 am
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

I am not sure expecting a .bbc suffix is appropriate for *EXEC. I agree, it's not. The reason I did it (probably in the late 1980s) is lost in the mists of time, and I've often thought .bas would have been a better choice. But it's one of those things that can never be changed. Extensions are entir...
by Richard Russell
Thu Jul 09, 2020 12:17 am
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

>*exec doodle File or path not found That's perfectly correct, there is no file doodle.bbc ! What you should have entered was: *exec doodle. (with a trailing dot). In my BBC BASICs there is always a default extension, most commonly .bbc but sometimes a different extension is assumed depending on co...
by Richard Russell
Thu Jul 09, 2020 12:05 am
Forum: modern implementations of classic programming languages
Topic: New: Console Mode editions of BBC BASIC
Replies: 104
Views: 1371

Re: New: Console Mode editions of BBC BASIC

One thing I notice, on the Mac, is that pasting many lines of text doesn't work so well: it will accept a dozen lines of input (or so) but ignore the rest. How are you attempting to paste? I looked at the possibility of taking input from the clipboard, but there seemed to be no straightforward cros...
by Richard Russell
Wed Jul 08, 2020 4:39 pm
Forum: programming
Topic: MOS Buffer numbers
Replies: 6
Views: 161

Re: MOS Buffer numbers

I wound have thought there was more hardware and software that used the buffer system but maybe I'm wrong It's entirely possible. Although Jonathan's Wiki isn't an official repository for such things it's the closest we've got (as far as I know). If somebody has reserved a buffer number, but not re...
by Richard Russell
Wed Jul 08, 2020 1:51 pm
Forum: 8-bit acorn hardware
Topic: MMC and OSWORD
Replies: 10
Views: 228

Re: MMC and OSWORD

If I call OSWORD while 'connected' to the MMC then it works, if I then switch to floppy it fails. Is there a command I should have issued before the call? Does it make any difference if you allocate the memory block used by OSWORD 'legitimately' (i.e. using DIM) rather than using zero page: DIM X% ...
by Richard Russell
Wed Jul 08, 2020 12:45 pm
Forum: programming
Topic: MOS Buffer numbers
Replies: 6
Views: 161

Re: MOS Buffer numbers

dominicbeesley wrote:
Wed Jul 08, 2020 11:56 am
Is there a list of buffer numbers used by MOS/Risc OS etc to help me choose.
There's this, which suggests that buffer numbers greater than 9 are currently free. But I would recommend that you edit that page (it's a Wiki) to reserve and document any that you intend to allocate.

Go to advanced search