safespaces
safespaces copied to clipboard
Lua console output
Hey,
i do not get any output form the lua scripts to the console. I tried it with durden and safespaces. Even if I make a syntax error in on of the lua script, I don't get any output. In this case arcan doesn't report any error. Even the return value ('$?') is zero.
Do you have an idea what the problem could be?
Kind regards,
Bernd
hmm, if I just write a bad script and run arcan_lwa ./test ; echo $? I get 1. For normal arcan egl-dri, it needs to switch the tty to a graphics mode where echo is disabled. You should still get errors if you redirect to a file (&> log) or if you set the environment for ARCAN_LOGPATH and it will start creating run logs there along with crash_xxx.lua if it is a dynamic scripting error.
Thanks, ARCAN_LOGPATH and redirecting works. I did not test arcan_lwa. I don't understand what you mean with "switch the tty to a graphics mode". Starting arcan within the xorg server, i get the lua output, but using the tty, it dosn't work. My first guess was, that lua needs this "graphics mode" but a simple lua script the lua interpreter works with the tty. Maybe there is a possibility to fix this this different behavior.
There's a special kind of tty massage to prevent local echo etc. of everything you type on the keyboard while arcan is in control of the GPU that the tty is also trying to use. The long story is here: https://github.com/letoram/arcan/blob/master/src/platform/posix/psep_open.c#L187