Fix the playback bug which was caused by CR/LF confusion

This commit is contained in:
John "Elwin" Edwards 2010-02-16 00:03:06 +00:00
parent 8d7895dd3b
commit 8d570c89a5
4 changed files with 6 additions and 0 deletions

View file

@ -327,6 +327,7 @@ tstp(int p)
kill(0, SIGTSTP); kill(0, SIGTSTP);
signal(SIGTSTP, tstp); signal(SIGTSTP, tstp);
#endif #endif
nonl();
crmode(); crmode();
noecho(); noecho();
clearok(curscr, TRUE); clearok(curscr, TRUE);
@ -380,6 +381,7 @@ setup()
num_checks = 0; num_checks = 0;
} }
nonl();
crmode(); /* Cbreak mode */ crmode(); /* Cbreak mode */
noecho(); /* Echo off */ noecho(); /* Echo off */
} }

View file

@ -214,6 +214,7 @@ restore(char *file, char **envp)
cw = newwin(LINES, COLS, 0, 0); cw = newwin(LINES, COLS, 0, 0);
mw = newwin(LINES, COLS, 0, 0); mw = newwin(LINES, COLS, 0, 0);
hw = newwin(LINES, COLS, 0, 0); hw = newwin(LINES, COLS, 0, 0);
nonl();
nocrmode(); nocrmode();
keypad(cw,1); keypad(cw,1);
mpos = 0; mpos = 0;

View file

@ -149,6 +149,7 @@ setup()
alarm(CHECKTIME * 60); alarm(CHECKTIME * 60);
num_checks = 0; num_checks = 0;
#endif #endif
nonl();
crmode(); /* Cbreak mode */ crmode(); /* Cbreak mode */
noecho(); /* Echo off */ noecho(); /* Echo off */
} }

View file

@ -283,6 +283,7 @@ tstp(int a)
signal(SIGTSTP, tstp); signal(SIGTSTP, tstp);
#endif #endif
crmode(); crmode();
nonl();
noecho(); noecho();
clearok(curscr, TRUE); clearok(curscr, TRUE);
wrefresh(curscr); wrefresh(curscr);
@ -403,6 +404,7 @@ shell()
md_shellescape(); md_shellescape();
noecho(); noecho();
nonl();
crmode(); crmode();
in_shell = FALSE; in_shell = FALSE;
clearok(stdscr, TRUE); clearok(stdscr, TRUE);