c3d / db48x

RPL runtime for the DM42 calculator, in the spirit of HP48/49/50
http://48calc.org
GNU Lesser General Public License v3.0
72 stars 9 forks source link

CLR menu does not open while in program mode #1008

Open guirossibrum opened 1 month ago

guirossibrum commented 1 month ago

In program mode you can select a menu and enter the command as part of a program. This is not possible with the CLR menu.

mahi2003 commented 1 month ago

I think the problem here is that the key has function DEL(ete) on the first shift while in entry mode. This overlaps with the CLR menu, but I'd hate to lose the DEL function.

guirossibrum commented 1 month ago

The Del button is the shifted alpha, so you would not lose it. The regular shift should open the menu to keep consistency With the remaining of the keyboard.

Guilherme Rossi Brum

On Sun, Jul 7, 2024 at 05:46 mahi2003 @.***> wrote:

I think the problem here is that the ← key has function DEL(ete) on the first shift while in entry mode. This overlaps with the CLR menu, but I'd hate to lose the DEL function.

  • ← (backspace): Delete character in front of cursor
  • DEL: Delete character after cursor

— Reply to this email directly, view it on GitHub https://github.com/c3d/db48x/issues/1008#issuecomment-2212404936, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGZ6TI6YQVBY4ZXRXLXUL2DZLEL6ZAVCNFSM6AAAAABKOZDRN2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJSGQYDIOJTGY . You are receiving this because you authored the thread.Message ID: @.***>

c3d commented 1 month ago

I think the problem here is that the key has function DEL(ete) on the first shift while in entry mode. This overlaps with the CLR menu, but I'd hate to lose the DEL function.

  • ← (backspace): Delete character in front of cursor
  • DEL: Delete character after cursor

That is indeed the reason.

The Del button is the shifted alpha, so you would not lose it. The regular shift should open the menu to keep consistency With the remaining of the keyboard.

The alpha mode is not needed. The DEL function is available in normal mode with a single shift.

The same problem also exists with the second shift, which in interactive mode goes one level up in the directory stack (UPDIR), but when editing enters a new line.

These behaviors are intentional, because the corresponding operations are quite useful in interactive mode, but not used that often in programs. The corresponding commands are available in the StackMenu (ClearStack), MemoryMenu menu (Purge and UpDir), the PlotMenu (ClLCD), StatisticsMenu (ClearData).

I think only err0 is missing in menus, but then so are IfErr, DoError, ErrorMessage and ErrorNumber. I added the missing features to the Debug menu.