about summary refs log tree commit diff stats
path: root/src/lcurses
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-29 07:58:35 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-29 08:16:47 -0800
commit36d3d10b1adb44733ad19e37846a4ae9b2bfa566 (patch)
tree091f522b9db41c9ecb4cea7a59d5303638f5eaaf /src/lcurses
parentc9de6ae5d6b852d802eec2db44caac3b15b62e83 (diff)
downloadteliva-36d3d10b1adb44733ad19e37846a4ae9b2bfa566.tar.gz
let people fix bad images from within Teliva
Short of syntax errors that keep us from parsing the teliva_program
table, we should now be able to recover gracefully from everything.

Yesterday I started to try to add this to load_definitions before
realizing most errors are only noticed while running `main`. But I
didn't think of recovering from the docall of `main` until this morning.
Diffstat (limited to 'src/lcurses')
-rw-r--r--src/lcurses/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lcurses/window.c b/src/lcurses/window.c
index 87c5d08..f066183 100644
--- a/src/lcurses/window.c
+++ b/src/lcurses/window.c
@@ -1304,7 +1304,7 @@ Read a character from the window input.
 @see curses.echo
 @see keypad
 */
-extern void developer_mode (lua_State *L);
+extern void developer_mode (lua_State *L, const char *status_message);
 static int
 Wgetch(lua_State *L)
 {
@@ -1318,7 +1318,7 @@ Wgetch(lua_State *L)
 		exit(0);
 	}
 	if (c == CTRL_E)
-		developer_mode(L);
+		developer_mode(L, /*status message*/ "");
 	/* handle other standard menu hotkeys here */
 
 	return pushintresult(c);