fome-fw icon indicating copy to clipboard operation
fome-fw copied to clipboard

handle special console commands with spaces in them

Open mck1117 opened this issue 11 months ago • 0 comments

rough steps:

  • in cli_registry.h, add something like STRING_RAW to the action_type_e enum for "pass the whole arg string as one blob instead of parsing
  • add a new function to use it near addConsoleActionS named something like addConsoleActionRaw
  • call that from lua.cpp near addConsoleActionS("lua",....
  • implement handling STRING_RAW in handleConsoleLineInternal. It will require some special casing for skipping argument parsing when it matches a STRING_RAW.
  • add a test in test_util.cpp near testConsoleLogic

mck1117 avatar Mar 08 '24 05:03 mck1117