Sounds good. Did you, or will you modify:set_console_autoredraw(-1|0|1)so it doesn't draw the console on the screen at all if it's disabled (-1|0)?
It would also be nice to have an option for a script to disable the <ALT> line display with the script name at the bottom when a script is running. Maybe:set_console_autoredraw(-2)
If you call set_console_autoredraw(-1) then print statements in the script are not added to the console. The console display should vanish 3 seconds after the last change (or whatever you set the timeout delay to).
Since hiding the <ALT> and script name have nothing to do with the console, I'm reluctant to overload set_console_redraw with another meaning like this.
Attached is a patch (for trunk only) that makes some changes to the console handling in CHDK (inspired by some comments from waterwingz).
Quote from: philmoz on 12 / April / 2013, 19:31:43Attached is a patch (for trunk only) that makes some changes to the console handling in CHDK (inspired by some comments from waterwingz).Are you going to update the dev trunk with this? That would save me re-patching each release. Thanks!
--[[@title console test--]]set_console_layout(0,11,45,13) -- this has no effect now, worked beforeprint("testing 1")print("testing 2")print("testing 3")set_console_autoredraw(-1) -- screen disappears in 3 secondsprint("Hello") -- doesn't show on screensleep(5000)--set_console_autoredraw(1) -- screen reappearsprint("Good Bye")
set_console_layout x1 y1 x2 y2 --> set console position and size, range is x=0 to 45 and y=0 to 14Note : coordinates are in units of characters and are numbered from the lower left hand corner of the screen. So x1,y1 is the lower left corner and x2,y2 is the upper right corner.
I've noticed that set_console_layout(..) doesn't work in my time lapse script since these changes, as demonstrated by this test script:
set_console_layout(1, 1, 44, 6)
I alway have to fool around to get set_console_layout() to work but it is working for me with the latest build.
Started by intrinsic « 1 2 » General Discussion and Assistance
Started by wrybread Script Writing
Started by Duncan Feature Requests
Started by acid2000 DryOS Development
Started by waterwingz General Discussion and Assistance