|
Forum Index : Microcontroller and PC projects : OPTION FNKey and F5
| Author | Message | ||||
| Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 992 |
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 KingdomPosts: 4142 |
VT52/VT100/... ESC[2J erase entire screen John |
||||
| Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 992 |
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: NetherlandsPosts: 5464 |
Hi Frank Blindly (did not test): OPTION F5 chr$(27)+"[2J" Volhout PicomiteVGA PETSCII ROBOTS |
||||
| Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 992 |
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: AustraliaPosts: 6358 |
To reset the function key to it's default setting OPTION F5 "" Jim VK7JH MMedit |
||||
| Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 992 |
@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: AustraliaPosts: 2822 |
A search through the R3 manual for OPTION F5 "" came up blank. |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 5464 |
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 KingdomPosts: 8293 |
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: AustraliaPosts: 1045 |
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 KingdomPosts: 8293 |
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: GermanyPosts: 992 |
It would be great if this also worked with CLS on the console... Frank |
||||
| Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 8293 |
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: GermanyPosts: 992 |
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 KingdomPosts: 8293 |
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: AustraliaPosts: 6358 |
Manual for V6.00.03 is the first one I looked at. Under OPTIONS: 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: AustraliaPosts: 2822 |
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 KingdomPosts: 4142 |
How would you set a Fn key not to send anything? John |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 2822 |
Presumably you can set F6 to F9 to nothing as they don't have an original function. Edited 2025-11-13 06:59 by phil99 |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |