On Tue, Dec 29, 2015 at 10:00:10AM -0700, Skippy wrote
> Greetings all;
> 
> I've been googling to no avail on this one.
> 
> When using Midnight Commander, I'll select a file and hit "enter" thus
> opening that file with it's associated program.
> 
> Let's say a mp3 file with VLC as that's one I have set up.
> 
> It runs, but any error messages from VLC appear in the MC terminal
> window and force the MC display up the screen, thus rendering it unreadable.
> 
> I can fix this by exiting VLC and entering "clear" on the command line.
> 
> Question is, can I hide all terminal messages when MC is running?  Does
> my question & description make sense?


  Another MC user here.  Here are a couple of entries I've inserted at
the top of my ~/.config/mc/mc.ext file.  The first entry in mc.ext that
matches the extension takes precedence, so you want your custom entries
at the top.  What these entries do is to launch an xterm.  The xterm is
what actually launches mplayer.  All the spew from mplayer appears in
the xterm, not in MC.  If I want to kill the player part way through a
song/video, I can do it from the small xterm.  The xterm automatically
disappears as soon as the song/video finishes.

#
#FLAC and WAV and MP3 files (to free up mc console) 
regex/i/\.(wav|flac|mp3)$
 Open=/usr/bin/xterm -e /usr/bin/mplayer %d/%p &
#
# Videos
regex/i/\.(avi|mov|mp4|mpeg)$
 Open=/usr/bin/xterm -e /usr/bin/mplayer %d/%p &

  This should also work for you with VLC.  Substitute "vlc", or
whatever, for "mplayer".  This "indirection" method is useful for *ANY*
program that spews diagnostics/whatever to the console that launched it.
E.g. I get dignostics/etc with abiword.

-- 
Walter Dnes <waltd...@waltdnes.org>
I don't run "desktop environments"; I run useful applications

Reply via email to