# HG changeset patch # User rfelker # Date 1014526614 0 # Node ID 395844d9d5d681d9628837fa3fe20579eb023fb4 # Parent 76491c4cb6113c6e40add2f861c776b7d96beabd fixes bug in alban's new input handling code that caused the terminal state to get trashed and not restored on exit. hopefully this change won't interfere with the functionality of the new code; as far as i can tell it seems to work fine. diff -r 76491c4cb611 -r 395844d9d5d6 mplayer.c --- a/mplayer.c Sun Feb 24 04:37:17 2002 +0000 +++ b/mplayer.c Sun Feb 24 04:56:54 2002 +0000 @@ -752,10 +752,13 @@ play_next_file: -if(!use_stdin && !slave_mode){ - getch2_enable(); // prepare stdin for hotkeys... - inited_flags|=INITED_GETCH2; -} +// We can enable getch2 *either* here *or* on a per-file basis, but NOT both!!! +// Doing it both places causes the saved terminal state to get trashed!! +// Maybe this can be renabled at a later date if it's useful... +//if(!use_stdin && !slave_mode){ +// getch2_enable(); // prepare stdin for hotkeys... +// inited_flags|=INITED_GETCH2; +//} #ifdef HAVE_NEW_GUI if ( use_gui ) {