[Mplayer-advusers] termios & SIGTSTP

Kedar Dhamdhere kedar at cs.cmu.edu
Sun May 19 03:20:23 CEST 2002


Hi,
    I encountered following problem with keyboard input of MPlayer:
When I stop mplayer (using ^Z), my shell resets mplayer's termios settings
(to be precise, ~(ICANON|ECHO)), so that when I continue mplayer using fg
in my shell, the settings aren't restored, and mplayer doesn't recognize
the keystrokes.
    One solution could be to install a signal handler for SIGCONT, which
will call getch2_enable(). We might also need to do getch2_disable() on
SIGTSTP (so that static int getch2_status, from linux/getch2.c is
set/reset correctly)

Trivia about my system:

uname -a: Linux 2.2.20 i686 (RedHat 6.2)

Using MPlayer 0.90pre4-2.95.4

Tried above with bash and zsh. 

thanks,
Kedar



More information about the MPlayer-advusers mailing list