about summary refs log tree commit diff stats
path: root/src/lcurses
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-12-21 17:52:31 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-12-21 17:52:31 -0800
commit3a20c0e22721d3ebe7db8067f7711ee5153ac209 (patch)
tree633471ea39572a5efaad9a6492baa188d9430aa0 /src/lcurses
parentf689fb7bed5512fa20b803b90b783204cea05bef (diff)
downloadteliva-3a20c0e22721d3ebe7db8067f7711ee5153ac209.tar.gz
gemini: echo urls while typing in
Let's see how much we need to tweak this solution.
Diffstat (limited to 'src/lcurses')
-rw-r--r--src/lcurses/window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lcurses/window.c b/src/lcurses/window.c
index 452f8b2..c7521b9 100644
--- a/src/lcurses/window.c
+++ b/src/lcurses/window.c
@@ -1307,9 +1307,12 @@ static int
 Wgetch(lua_State *L)
 {
 	WINDOW *w = checkwin(L, 1);
+	int y, x;
+	getyx(w, y, x);
 	render_trusted_teliva_data(L);  /* Apps can draw what they want on screen,
 	                                 * but Teliva's UI is always visible when
 	                                 * asking the user to make a decision. */
+	mvaddstr(y, x, "");
 	int c = wgetch(w);
 
 	if (c == ERR)