1 |
On Tue, Dec 29, 2015 at 10:00:10AM -0700, Skippy wrote |
2 |
> Greetings all; |
3 |
> |
4 |
> I've been googling to no avail on this one. |
5 |
> |
6 |
> When using Midnight Commander, I'll select a file and hit "enter" thus |
7 |
> opening that file with it's associated program. |
8 |
> |
9 |
> Let's say a mp3 file with VLC as that's one I have set up. |
10 |
> |
11 |
> It runs, but any error messages from VLC appear in the MC terminal |
12 |
> window and force the MC display up the screen, thus rendering it unreadable. |
13 |
> |
14 |
> I can fix this by exiting VLC and entering "clear" on the command line. |
15 |
> |
16 |
> Question is, can I hide all terminal messages when MC is running? Does |
17 |
> my question & description make sense? |
18 |
|
19 |
|
20 |
Another MC user here. Here are a couple of entries I've inserted at |
21 |
the top of my ~/.config/mc/mc.ext file. The first entry in mc.ext that |
22 |
matches the extension takes precedence, so you want your custom entries |
23 |
at the top. What these entries do is to launch an xterm. The xterm is |
24 |
what actually launches mplayer. All the spew from mplayer appears in |
25 |
the xterm, not in MC. If I want to kill the player part way through a |
26 |
song/video, I can do it from the small xterm. The xterm automatically |
27 |
disappears as soon as the song/video finishes. |
28 |
|
29 |
# |
30 |
#FLAC and WAV and MP3 files (to free up mc console) |
31 |
regex/i/\.(wav|flac|mp3)$ |
32 |
Open=/usr/bin/xterm -e /usr/bin/mplayer %d/%p & |
33 |
# |
34 |
# Videos |
35 |
regex/i/\.(avi|mov|mp4|mpeg)$ |
36 |
Open=/usr/bin/xterm -e /usr/bin/mplayer %d/%p & |
37 |
|
38 |
This should also work for you with VLC. Substitute "vlc", or |
39 |
whatever, for "mplayer". This "indirection" method is useful for *ANY* |
40 |
program that spews diagnostics/whatever to the console that launched it. |
41 |
E.g. I get dignostics/etc with abiword. |
42 |
|
43 |
-- |
44 |
Walter Dnes <waltdnes@××××××××.org> |
45 |
I don't run "desktop environments"; I run useful applications |