commit 85c9416

Devie Lu Linvega  ·  2025-12-28 20:01:35 +0000 UTC
parent 053cccb
Fixed issue with EOF for stdin
2 files changed,  +3, -9
+2, -5
 1@@ -713,6 +713,7 @@ typedef struct {
 2 
 3 static UxnFile ufs[2];
 4 static Uint8 dirbuf[0x10000], *_dirbuf = dirbuf;
 5+static unsigned int rL1, rL2;
 6 
 7 static void
 8 make_pathfile(char *pathbuf, const char *filepath, const char *basename)
 9@@ -930,10 +931,6 @@ file_success(unsigned int port, unsigned int value)
10 	dev[port] = value >> 8, dev[port + 1] = value;
11 }
12 
13-/* file registers */
14-
15-static unsigned int rL1, rL2;
16-
17 /*
18 @|Datetime ---------------------------------------------------------- */
19 
20@@ -1223,7 +1220,7 @@ emu_run(void)
21 			for(i = 0, coninp[n] = 0; i < n; i++)
22 				console_input(coninp[i], CONSOLE_STD);
23 			if(n == 0)
24-				console_input(0, CONSOLE_STD);
25+				console_input(0, CONSOLE_END);
26 		}
27 	}
28 	if(ximage)
+1, -4
 1@@ -387,6 +387,7 @@ typedef struct {
 2 
 3 static UxnFile ufs[2];
 4 static Uint8 dirbuf[0x10000], *_dirbuf = dirbuf;
 5+static unsigned int rL1, rL2;
 6 
 7 static void
 8 make_pathfile(char *pathbuf, const char *filepath, const char *basename)
 9@@ -604,10 +605,6 @@ file_success(unsigned int port, unsigned int value)
10 	dev[port] = value >> 8, dev[port + 1] = value;
11 }
12 
13-/* file registers */
14-
15-static unsigned int rL1, rL2;
16-
17 /*
18 @|Datetime ---------------------------------------------------------- */
19