From 8155313344ff524bf4015450b546efc87f55c4c3 Mon Sep 17 00:00:00 2001 From: Hanicef Date: Fri, 9 Feb 2024 18:49:32 +0100 Subject: [PATCH] Fix input via command line/terminal not working --- src/console.c | 2 ++ src/sdl/i_system.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/console.c b/src/console.c index 751a6e5ca..afd719cb1 100644 --- a/src/console.c +++ b/src/console.c @@ -1339,6 +1339,8 @@ boolean CON_Responder(event_t *ev) if (input_sel != input_cur) CON_InputDelSelection(); + if (ev->type == ev_console) + CON_InputAddChar(key); return true; } diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index 847806270..986647e72 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -652,7 +652,6 @@ void I_GetConsoleEvents(void) else if (tty_con.cursor < sizeof (tty_con.buffer)) { // push regular character - ev.type = ev_text; ev.key = tty_con.buffer[tty_con.cursor] = key; tty_con.cursor++; // print the current line (this is differential)