Murga-Projects Forums

Full Version: find the murgaLua exe in 0.5 and older
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I think I've figured out a way to get the name of the murgaLua executable in versions earlier than 0.6

According to the Lua docs, the arg table is populated by negatives for the murgaLua interpreter and its arguments, with the interpreter being the lowest, so it changes depending on how many arguments you pass to it.

This seems to work in DS Linux, but I haven't tested it elsewhere.

-- find the smallest negative index in the arg table
-- this is the murgaLua interpreter (for 0.5 support)
for i in pairs(arg) do
if not low or i < low then low=i end

Off the topic of a murgaLua_ExePath replacement, but still on the topic of backward compatibility....

Does version 0.5.5 not support hotkeys for tabs? I never noticed this until last night; it seems that using "&" in a tab label simply displays the "&" along with the text rather than setting the following character as the hotkey. It works as expected in 0.6

If this can't be done -- I also tried my_tab:shortcut() with no luck -- I'll just leave it as is and find an alternative way for 0.5 keyboard users to jump to the tabs group. I've used 0x0-sized buttons to provide keyboard shortcuts to focus widgets, so that would probably also work for selecting tabs.
Reference URL's