You are not logged in.

#1 2012-11-16 20:04:19

vnykanen
Member
Registered: 2012-11-15
Posts: 3

Xterm -e loses environment [SOLVED]

Hey, I am trying to launch a new xterm session and run mc with 256 colors, but mc keeps complaining about not having 256 color terminal. Weird thing is that when I try to launch the colored mc inside the mc that was complaining, it works just as it is supposed to. And if I launch a new terminal and type in the exact same command, it also works like a charm. Somehow this is about that "-e" and I am out of ideas.

Last edited by vnykanen (2012-11-19 09:36:57)

Offline

#2 2012-11-17 01:46:53

dickey
Member
Registered: 2009-06-01
Posts: 35

Re: Xterm -e loses environment [SOLVED]

It's in the manpage: xterm sets $TERM based on a short list.  If you are using TERM=xterm-256color, then you could pass that via a script using the -tn option, e.g., xterm -tn $TERM -e mc

Offline

#3 2012-11-19 09:36:07

vnykanen
Member
Registered: 2012-11-15
Posts: 3

Re: Xterm -e loses environment [SOLVED]

Thanks! It works.

Offline

Board footer

Powered by FluxBB