From 80c3b84e08a1debc0e5af8567f9eeb0b1716303a Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Fri, 2 Oct 2020 14:30:41 -0400 Subject: lua Add scrollable stack traceback WIP lua currently splashes a stack traceback on error for deep tracebacks and especially on devices with smaller screens this leaves out a lot of vital information in the past I have resorted to splitting the traceback string or even saving the return to a file This patch provides a scrollable buffer with rudimentary text reflow to allow you to read the whole traceback string Upon traceback if you press nothing the screen will display for 5 seconds If you press OK or CANCEL it will quit immediately PREV/NEXT scrolls the list on button press timeout is disabled lua now provides rb.splash_scroller(timeout, str) example script provided too Change-Id: Idbc8ce0c514196f0fae48c43aeaea8b60d6da1a5 --- apps/plugins/lua_scripts/splashscroller.lua | 1 + 1 file changed, 1 insertion(+) create mode 100644 apps/plugins/lua_scripts/splashscroller.lua (limited to 'apps/plugins/lua_scripts/splashscroller.lua') diff --git a/apps/plugins/lua_scripts/splashscroller.lua b/apps/plugins/lua_scripts/splashscroller.lua new file mode 100644 index 0000000000..78a7266de8 --- /dev/null +++ b/apps/plugins/lua_scripts/splashscroller.lua @@ -0,0 +1 @@ +rb.splash_scroller(rb.HZ * 5, "This is a rb.splash_scroller test, it is meant to reflow text into a format easily digestable on small screen devices.\n\n it is not particularly adept at this as we strive for the bare minimum in order to leave room for YOUR code. :) \n\nHowever, it does recognize \t\\t \r\\r\n\\n\n\\b (bell)\b") -- cgit v1.2.3