changeset 32:2dcd75e6a736

Fix the playback bug which was caused by CR/LF confusion
author elwin
date Tue, 16 Feb 2010 00:03:06 +0000
parents 9223b6d7a243
children f502bf60e6e4
files rogue3/main.c rogue3/save.c rogue4/mach_dep.c rogue4/main.c
diffstat 4 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rogue3/main.c	Sat Feb 13 16:25:29 2010 +0000
+++ b/rogue3/main.c	Tue Feb 16 00:03:06 2010 +0000
@@ -327,6 +327,7 @@
     kill(0, SIGTSTP);
     signal(SIGTSTP, tstp);
 #endif
+    nonl();
     crmode();
     noecho();
     clearok(curscr, TRUE);
@@ -380,6 +381,7 @@
 	num_checks = 0;
     }
 
+    nonl();
     crmode();				/* Cbreak mode */
     noecho();				/* Echo off */
 }
--- a/rogue3/save.c	Sat Feb 13 16:25:29 2010 +0000
+++ b/rogue3/save.c	Tue Feb 16 00:03:06 2010 +0000
@@ -214,6 +214,7 @@
     cw = newwin(LINES, COLS, 0, 0);
     mw = newwin(LINES, COLS, 0, 0);
     hw = newwin(LINES, COLS, 0, 0);
+    nonl();
     nocrmode();
     keypad(cw,1);
     mpos = 0;
--- a/rogue4/mach_dep.c	Sat Feb 13 16:25:29 2010 +0000
+++ b/rogue4/mach_dep.c	Tue Feb 16 00:03:06 2010 +0000
@@ -149,6 +149,7 @@
     alarm(CHECKTIME * 60);
     num_checks = 0;
 #endif
+    nonl();
     crmode();				/* Cbreak mode */
     noecho();				/* Echo off */
 }
--- a/rogue4/main.c	Sat Feb 13 16:25:29 2010 +0000
+++ b/rogue4/main.c	Tue Feb 16 00:03:06 2010 +0000
@@ -283,6 +283,7 @@
     signal(SIGTSTP, tstp);
 #endif
     crmode();
+    nonl();
     noecho();
     clearok(curscr, TRUE);
     wrefresh(curscr);
@@ -403,6 +404,7 @@
     md_shellescape();
 
     noecho();
+    nonl();
     crmode();
     in_shell = FALSE;
     clearok(stdscr, TRUE);