AgonConsole8 / agon-vdp

Official Firmware for the Agon Console8: ESP32 VDP
MIT License
38 stars 17 forks source link

Programmable Function Keys #96

Closed eightbitswide closed 10 months ago

eightbitswide commented 10 months ago

Would it be possible to have definable function keys which could be configured in the autoexec.txt file at boot up?

Sample configuration:

F1="SAVE \""
F2="LOAD \"
F3="*BYE<CR>"
F4="AED "
F5="LOAD BBCBASIC.BIN<CR>"
F6="RUN<CR>"
F7="LIST<BR>"
lennart-benschop commented 10 months ago

Should this be a MOS command instead, like *KEY on the old BBC Micro? Of course the VDP must also be able to pass the Function keys to MOS.

HeathenUK commented 10 months ago

Although I can see why you might add it to VDP (for example making it easier to encode multiple-lines as in the above example), I agree it should probably be in MOS (not least because you'd need to check for an assigned macro against every keypress). I've put together a simple PR for this (and one other) bit of functionality here.

stevesims commented 10 months ago

As noted already, this is functionality that is better placed in MOS than the VDP codebase.

This was already raised as an issue there as AgonConsole8/agon-mos#8

Closing.