Discussion:
[Fluxbox-users] Running midnight commander from a menu
Frank McCormick
2010-03-13 14:37:35 UTC
Permalink
Recently I have been having all sorts of problems running M-C
from a menu (as opposed to calling it up while in a terminal).

I have tried creating a small script in my home dir and calling
it via xterm -e on the menu.
It seems no matter which way I do it..the MC screen is messed up
in various ways..sometimes the directory list is partly overwritten,
other times the left hand side of the F key prompts is missing..etc etc.

It also seems Icewm doesn't have this problem...the identical script called
in IceWm works without a problem. Is there some fundamental
difference between the two wm's..or is my Fluxbox config messed up someway?

Does anybody have a surefire way of doing it in FluxBox??
--
Frank<***@videotron.ca>
Dion
2010-03-14 02:42:52 UTC
Permalink
On Sat, 13 Mar 2010 09:37:35 -0500
Post by Frank McCormick
Recently I have been having all sorts of problems running M-C
from a menu (as opposed to calling it up while in a terminal).
I have tried creating a small script in my home dir and calling
it via xterm -e on the menu.
It seems no matter which way I do it..the MC screen is messed up
in various ways..sometimes the directory list is partly overwritten,
other times the left hand side of the F key prompts is missing..etc etc.
It also seems Icewm doesn't have this problem...the identical script
called in IceWm works without a problem. Is there some fundamental
difference between the two wm's..or is my Fluxbox config messed up someway?
Does anybody have a surefire way of doing it in FluxBox??
--
Hi Frank

Usually I define commands like this directly in the menuentry. Try this line in your menu:

[exec] (mc) {xterm -e mc}

If this works, you can start customizing size and fonts to get something more managable, e.g. for something more command-line looking:

[exec] (mc) {xterm -bg black -fg gray -g 90x36 -fa "Courier" -fs 12 -e mc -bd}

This has worked perfecly for me on all versions of fluxbox that I have used, up to and including version 1.1.1

If you really have to invoke a script, try starting xterm in the script and just call the script by name in the menu.

Good luck
Peder
Frank McCormick
2010-03-14 13:00:04 UTC
Permalink
On Sun, 14 Mar 2010 03:42:52 +0100
Post by Dion
Post by Frank McCormick
Recently I have been having all sorts of problems running M-C
from a menu (as opposed to calling it up while in a terminal).
I have tried creating a small script in my home dir and calling
it via xterm -e on the menu.
It seems no matter which way I do it..the MC screen is messed up
in various ways..sometimes the directory list is partly
overwritten, other times the left hand side of the F key prompts
is missing..etc etc.
It also seems Icewm doesn't have this problem...the identical
script called in IceWm works without a problem. Is there some
fundamental difference between the two wm's..or is my Fluxbox
config messed up someway?
[exec] (mc) {xterm -e mc}
That's how I do it usually...but because lately I've been
switching back and forth between Fluxbox and Icewm...I've taken
to writing a small shell script and calling that from the menus.
Post by Dion
If this works, you can start customizing size and fonts to get
something more managable, e.g. for something more command-line
[exec] (mc) {xterm -bg black -fg gray -g 90x36 -fa "Courier" -fs 12 -e mc -bd}
On my system this results in a terminal window larger than m-c...
with the result there is black blank screen on the right hand side and below m-c.
In Icewm...the black blank area is even larger...must be something to do with the way
the two handles windows.
I always have problems when I use xterm in these kinds of situation...I have
taken to using urxvt which seems the like my system better :)
Guess there is no ultimate solution....I'll continue experimenting.
--
Frank<***@videotron.ca>
ajm
2010-03-27 21:33:13 UTC
Permalink
Post by Frank McCormick
On Sun, 14 Mar 2010 03:42:52 +0100
Post by Dion
Post by Frank McCormick
Recently I have been having all sorts of problems running M-C
from a menu (as opposed to calling it up while in a terminal).
I have tried creating a small script in my home dir and calling
it via xterm -e on the menu.
It seems no matter which way I do it..the MC screen is messed up
in various ways..sometimes the directory list is partly
overwritten, other times the left hand side of the F key prompts
is missing..etc etc.
It also seems Icewm doesn't have this problem...the identical
script called in IceWm works without a problem. Is there some
fundamental difference between the two wm's..or is my Fluxbox
config messed up someway?
Usually I define commands like this directly in the menuentry. Try
[exec] (mc) {xterm -e mc}
That's how I do it usually...but because lately I've been
switching back and forth between Fluxbox and Icewm...I've taken
to writing a small shell script and calling that from the menus.
Post by Dion
If this works, you can start customizing size and fonts to get
something more managable, e.g. for something more command-line
[exec] (mc) {xterm -bg black -fg gray -g 90x36 -fa "Courier" -fs 12 -e mc -bd}
On my system this results in a terminal window larger than m-c...
with the result there is black blank screen on the right hand side and below m-c.
In Icewm...the black blank area is even larger...must be something to do with the way
the two handles windows.
I always have problems when I use xterm in these kinds of situation...I have
taken to using urxvt which seems the like my system better :)
Guess there is no ultimate solution....I'll continue experimenting.
--
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
On my fluxbox (Fluxbox 1.1.1) I use the following:

[exec] (mc) {uxterm -r -e /usr/bin/mc}

Notice uxterm not xterm...works fine for me
--
Alexander J.M.
Debian Squeeze
Linux 2.6.32-trunk-686 #1 SMP Sun Jan 10 06:32:16 UTC 2010 GNU/Linux
Frank McCormick
2010-03-28 01:51:29 UTC
Permalink
On Sat, 27 Mar 2010 16:33:13 -0500
Post by ajm
Post by Frank McCormick
On Sun, 14 Mar 2010 03:42:52 +0100
Post by Dion
Post by Frank McCormick
Recently I have been having all sorts of problems running M-C
from a menu (as opposed to calling it up while in a terminal).
I have tried creating a small script in my home dir and
calling it via xterm -e on the menu.
It seems no matter which way I do it..the MC screen is messed
up in various ways..sometimes the directory list is partly
overwritten, other times the left hand side of the F key
prompts is missing..etc etc.
Usually I define commands like this directly in the menuentry.
[exec] (mc) {xterm -e mc}
[exec] (mc) {uxterm -r -e /usr/bin/mc}
Notice uxterm not xterm...works fine for me
Works on my system, I get full screen MC but the colours are really dark, the blue bg, and the grey dir listing.
BTW what is the -r do for uxterm ?

Thanks
--
Frank<***@videotron.ca>
ajm
2010-04-03 22:01:55 UTC
Permalink
Post by Frank McCormick
On Sat, 27 Mar 2010 16:33:13 -0500
Post by ajm
Post by Frank McCormick
On Sun, 14 Mar 2010 03:42:52 +0100
Post by Dion
Post by Frank McCormick
Recently I have been having all sorts of problems running M-C
from a menu (as opposed to calling it up while in a terminal).
I have tried creating a small script in my home dir and
calling it via xterm -e on the menu.
It seems no matter which way I do it..the MC screen is messed
up in various ways..sometimes the directory list is partly
overwritten, other times the left hand side of the F key
prompts is missing..etc etc.
Usually I define commands like this directly in the menuentry.
[exec] (mc) {xterm -e mc}
[exec] (mc) {uxterm -r -e /usr/bin/mc}
Notice uxterm not xterm...works fine for me
Works on my system, I get full screen MC but the colours are really dark, the blue bg, and the grey dir listing.
BTW what is the -r do for uxterm ?
Thanks
--
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
from man xterm
-r This option indicates that reverse video should be
simulated by swapping the foreground and background colors.
It is equivalent to -rv.
--
Alexander J.M.
Debian Squeeze
Linux 2.6.32-trunk-686 #1 SMP Sun Jan 10 06:32:16 UTC 2010 GNU/Linux
Loading...