commit 42afb3a

Devine Lu Linvega  ·  2026-01-11 17:50:57 +0000 UTC
parent 550b4ba
Removed has_sent flag
1 files changed,  +3, -5
+3, -5
 1@@ -1283,7 +1283,7 @@ emu_init(void)
 2 static void
 3 emu_run(void)
 4 {
 5-	int has_input, has_eof, has_sent, stdin_active = 1;
 6+	int has_input, has_eof, stdin_active = 1;
 7 	char expirations[8], coninp[CONINBUFSIZE];
 8 	struct pollfd fds[3];
 9 	fds[0].fd = emu_x11, fds[0].events = POLLIN;
10@@ -1306,10 +1306,8 @@ emu_run(void)
11 			if(n > 0) {
12 				for(i = 0; i < n; i++)
13 					console_input(coninp[i], CONSOLE_STD);
14-				has_sent = 1;
15-			} else if(has_sent) {
16+			} else {
17 				console_input(0, CONSOLE_END);
18-				has_sent = 0;
19 				stdin_active = 0;
20 			}
21 		}
22@@ -1328,7 +1326,7 @@ main(int argc, char **argv)
23 {
24 	int i = 1;
25 	if(argc == 2 && argv[1][0] == '-' && argv[1][1] == 'v')
26-		return !fprintf(stdout, "%s - Varvara Emulator, 9 Jan 2026.\n", argv[0]);
27+		return !fprintf(stdout, "%s - Varvara Emulator, 11 Jan 2026.\n", argv[0]);
28 	else if(argc == 1)
29 		return !fprintf(stdout, "usage: %s [-v] file.rom [args..]\n", argv[0]);
30 	else if(!system_boot(argv[i++], argc > 2))