How to MARK and COPY text from a console window?

Here you can talk about anything related to BBC BASIC, not covered in another category
artfizz
Posts: 23
Joined: Wed 11 Dec 2024, 17:15

How to MARK and COPY text from a console window?

Post by artfizz »

Just wondering: what is preventing MARK {Control + A] and COPY [Control + C] text from working on the console window?
Is there any way to configure it so that it would work?
Richard Russell
Posts: 366
Joined: Tue 18 Jun 2024, 09:32

Re: How to MARK and COPY text from a console window?

Post by Richard Russell »

artfizz wrote: Thu 03 Apr 2025, 20:21 Just wondering: what is preventing MARK {Control + A] and COPY [Control + C] text from working on the console window?
Is there any way to configure it so that it would work?
What "console window"? If you are talking about the Console Editions of BBC BASIC, Ctrl+C does work but Ctrl+A doesn't, you would need to select the text using the mouse before copying it. Note that Ctrl+A doesn't work at a regular Windows command prompt either, so BBC BASIC is behaving consistently with that.

If on the other hand you are talking about the 'output window' in GUI editions of BBC BASIC, this isn't a "console window" but rather it emulates the 'immediate mode' interface of the BBC Microcomputer. The keyboard 'control codes' it accepts are the standard Acorn VDU codes, for example Ctrl+N to enter 'paged' mode, Ctrl+L to clear the screen etc.

I doubt that Ctrl+C for Copy and Ctrl+V for Paste had even been standardised when the BBC Micro was designed in 1981, but I might be wrong. Either way, Acorn devised their own set of control codes from scratch - compatibility with other systems wasn't a major concern!

If you simply want to copy the entire 'textual' content of the 'output window' to the clipboard you can use the Ctrl+Tab Hot key for that.
artfizz
Posts: 23
Joined: Wed 11 Dec 2024, 17:15

Re: How to MARK and COPY text from a console window?

Post by artfizz »

Richard Russell wrote: Thu 03 Apr 2025, 21:10 If you simply want to copy the entire 'textual' content of the 'output window' to the clipboard you can use the Ctrl+Tab Hot key for that.
A magical answer! (I hadn't come across this feature.) Thank you for your explanation.