changeset 42:30fb47f21d35

srogue: Fix CR/LF playback bug.
author elwin
date Mon, 06 Dec 2010 19:43:32 +0000
parents 5ea4a4d8f961
children 24e6beb9e7aa
files srogue/command.c srogue/main.c
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/srogue/command.c	Sat Dec 04 14:45:38 2010 +0000
+++ b/srogue/command.c	Mon Dec 06 19:43:32 2010 +0000
@@ -661,6 +661,7 @@
 #endif
 		printf("\n%s", retstr);
 		fflush(stdout);
+		nonl();
 		noecho();
 		crmode();
 		in_shell = FALSE;
--- a/srogue/main.c	Sat Dec 04 14:45:38 2010 +0000
+++ b/srogue/main.c	Mon Dec 06 19:43:32 2010 +0000
@@ -417,6 +417,7 @@
 	signal(SIGPIPE, game_err);
 	signal(SIGTERM, game_err);
 
+	nonl();
 	cbreak();
 	noecho();
 }