uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 5d39dcdbdcdd98457936625bdde1b9282a228af1
parent a323cb5c56dd8e5179648ddb8cbc4566d29c4f3c
Author: neauoire <aliceffekt@gmail.com>
Date:   Tue,  5 Sep 2023 16:34:49 -0700

(uxncli) Send zero byte and EOF on stdin

Diffstat:
Msrc/uxncli.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/uxncli.c b/src/uxncli.c @@ -45,7 +45,7 @@ emu_run(Uxn *u) { while(!u->dev[0x0f]) { int c = fgetc(stdin); - if(c == EOF) break; + if(c == EOF) { console_input(u, 0x00, CONSOLE_END); break; } console_input(u, (Uint8)c, CONSOLE_STD); } } @@ -72,7 +72,7 @@ main(int argc, char **argv) system_connect(0xc, DATETIME_VERSION, DATETIME_DEIMASK, DATETIME_DEOMASK); /* Read flags */ if(argv[i][0] == '-' && argv[i][1] == 'v') - return system_version("Uxncli - Console Varvara Emulator", "2 Sep 2023"); + return system_version("Uxncli - Console Varvara Emulator", "5 Sep 2023"); if(!system_init(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8)), argv[i++])) return system_error("Init", "Failed to initialize uxn."); /* Game Loop */