Lua: replace Lua's print with ShowConsoleMsg()? (FIXED)
Lua has a built-in print-function which usually allows outputting text to the shell-window.
However, in Reaper the shell isn't available in that way and therefore outputs of print go into the void.
So I would propose, that print could be made another variant of reaper.ShowConsoleMsg(), so print outputs values to the ReaScript-console.
print isn't strictly like showconsole msg though, as it adds breaks line to the end and do the string conversion. It can also takes multiple arguments.
If you want less typing, a simple Msg() function at top of the script can do the trick.
You can also reassociate named function to another function definition.
The fact that it doesnt behave the same in win and mac though might indeed ned consideration.