Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 21:12 15 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : OPTION FNKey and F5

Author Message
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 992
Posted: 12:54pm 11 Nov 2025
Copy link to clipboard 
Print this post

Hi to all,

I stupidly deleted the entry for deleting the monitor with F5. What do I have to enter with FNKey to make it work again?

The manual says:
F5 Sends ESC sequence to clear the VT100 screen. Also clears the console.

Unfortunately, it doesn't say which sequence will be sent...

THANKS!

Frank
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4142
Posted: 01:06pm 11 Nov 2025
Copy link to clipboard 
Print this post

VT52/VT100/...

ESC[2J erase entire screen

John
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 992
Posted: 01:19pm 11 Nov 2025
Copy link to clipboard 
Print this post

But what is the syntax with OPTION FNKey? It worked in the command prompt, but when I try to assign it to a function key, I either get a syntax error or it doesn't work...

Frank
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5464
Posted: 02:22pm 11 Nov 2025
Copy link to clipboard 
Print this post

Hi Frank

Blindly (did not test):

OPTION F5 chr$(27)+"[2J"

Volhout
PicomiteVGA PETSCII ROBOTS
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 992
Posted: 07:32pm 11 Nov 2025
Copy link to clipboard 
Print this post

Hi Volhout,

unfortunately, I can't try it out today. But I think I already tried your syntax. I think I got an error message saying that [ was not allowed. I'll try again tomorrow...

THANKS!

Frank
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6358
Posted: 08:09pm 11 Nov 2025
Copy link to clipboard 
Print this post

To reset the function key to it's default setting
OPTION F5 ""


Jim
VK7JH
MMedit
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 992
Posted: 08:05am 12 Nov 2025
Copy link to clipboard 
Print this post

@Volhout:

Unfortunately, your suggestion just prints [2J on the screen.
> option f5 chr$(27)+"[2J"
> [2J


@TassyJim:

Thank you very much, Jim! Your suggestion with OPTION F5 "" worked. Is that mentioned anywhere in the manual?


Frank
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2822
Posted: 10:48am 12 Nov 2025
Copy link to clipboard 
Print this post

A search through the R3 manual for OPTION F5 "" came up blank.
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5464
Posted: 11:19am 12 Nov 2025
Copy link to clipboard 
Print this post

Maybe I am biassed, but..

In MMbasic
a$="Hello" 'assign a value to a$
a$=""       'assign nothing to a$


What does OPTION F5 do..?

OPTION F5 "Hello" 'assign the value "Hello" to function key F5
OPTION F5 ""      'assign nothing to F5


Is this needed to be documented in the manual ?

Volhout
PicomiteVGA PETSCII ROBOTS
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8293
Posted: 11:46am 12 Nov 2025
Copy link to clipboard 
Print this post

On the PicoMite by default (as it used to be anyway):
At the command line F5 does nothing
In the editor F5 pastes the text previously selected using F4

Whereabouts in the manual is this?
"The manual says:
F5 Sends ESC sequence to clear the VT100 screen. Also clears the console."
Is it even for the PicoMite? :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1045
Posted: 12:01pm 12 Nov 2025
Copy link to clipboard 
Print this post

Shortcut Keys (page 15)
The function keys on the keyboard used for the console can be used at the command prompt to automatically
enter common commands. These function keys will insert the text followed by the Enter key so that the
command is immediately executed:
F2 RUN
F3 LIST
F4 EDIT
F5 Sends ESC sequence to clear the VT100 screen. Also clears the console.(Unless it has been programmed with custom text)
F10 AUTOSAVE
F11 XMODEM RECEIVE
F12 XMODEM SEND
Function keys F1, and F5 to F9 can be programmed with custom text. See the OPTION FNKey command

The red could be added, but is it implied anyway?. It can't do two things at once. It is in the Picomites.
F4 H7FotSF4xGT
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8293
Posted: 12:12pm 12 Nov 2025
Copy link to clipboard 
Print this post

Ah - F5 has been added since my old printed manual.  :)
I keep intending to print a new one but I don't get round to it...
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 992
Posted: 06:08pm 12 Nov 2025
Copy link to clipboard 
Print this post

It would be great if this also worked with CLS on the console...

Frank
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8293
Posted: 07:15pm 12 Nov 2025
Copy link to clipboard 
Print this post

ou have to remember what the console is intended for. It's not supposed to be a general purpose display, it's a diagnostic and maintenance tool. The chances are that you don't want cls to keep wiping out the diagnostic info that you are displaying in real time while a program is running. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 992
Posted: 07:28pm 12 Nov 2025
Copy link to clipboard 
Print this post

Yes, but that's exactly why it would be good! It quickly becomes confusing if you can't clear the screen from time to time...

Frank
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8293
Posted: 07:44pm 12 Nov 2025
Copy link to clipboard 
Print this post

That's what F5 is for....  :)
No, I don't think I'd like the diagnostic stuff deleted by the program. If I wanted that I'd display it on the display screen, not the console. You can make it less confusing by using PRINT@ to put bits of info where you want them on the console rather than just all over the place.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6358
Posted: 08:13pm 12 Nov 2025
Copy link to clipboard 
Print this post

Manual for V6.00.03 is the first one I looked at.
Under OPTIONS:
  Quote  OPTION FNKey string$


I tried a couple of things before I found using a blank string did the trick.
It wasn't difficult and didn't need the help of AI

Jim
VK7JH
MMedit
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2822
Posted: 08:25pm 12 Nov 2025
Copy link to clipboard 
Print this post

What isn't obvious from the manual is that an empty string not only removes the current function but restores the original function.
I think that is worth a mention in the manual.
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4142
Posted: 08:28pm 12 Nov 2025
Copy link to clipboard 
Print this post

How would you set a Fn key not to send anything?

John
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2822
Posted: 08:53pm 12 Nov 2025
Copy link to clipboard 
Print this post

Presumably you can set F6 to F9 to nothing as they don't have an original function.
  Quote  OPTION FNKey string$
Define the string that will be generated when a function key is pressed at the command prompt.
‘FNKey’ can be F1, and F5 thru to F9.
Example:
OPTION F8 “RUN “+chr$(34)+”myprog” +chr$(34)+chr$(13)+chr$(10).
This command must be run at the command prompt (not in a program).

Edited 2025-11-13 06:59 by phil99
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025