Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MC and Xterm problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Botsvein
n00b
n00b


Joined: 13 Jul 2002
Posts: 12
Location: Russia

PostPosted: Mon Jul 15, 2002 12:31 pm    Post subject: MC and Xterm problems Reply with quote

Hello, Gentoers (or Genties - who knows :))!
Recently I've been palying with some basic X programs. I've got IceWM up and running fine, but there are still some problems to solve.
First one is how to start XTerm with different background and foreground colors? I know the command line options, but where is the config file for all this stuff?
The second is about MC+Xterm link. How to make all these keys - Home, End, Alt+X work? I'm stuck, no ideas :((
Oh, and one more thing about MC: When started by normal user, it says that TERM is not "linux/SCO" or something simular and refuses to hide panels at "Ctrl-O":(( Besides, it shows pure "$" in a command line, nothing like "user@machine". Setting TERM=linux makes nothing, and this looks like Gentoo bug, or I'm missing something. Being started as root, it works just fine :)).
Back to top
View user's profile Send private message
mb
Guru
Guru


Joined: 25 Apr 2002
Posts: 355
Location: Hessen | .de

PostPosted: Mon Jul 15, 2002 1:09 pm    Post subject: Reply with quote

ok... xterm settings... create a file ~/.Xresources (or append) and enter

Code:

XTerm*Font:             -misc-fixed-bold-r-normal-15-140-75-75-c-90-iso8859-15
XTerm*Background:       black
XTerm*Foreground:       cyan
XTerm*scrollBar:        false
XTerm*saveLines:        200
Xterm*VT100.geometry:   80x24


next... prompt.. append to your .bashrc

Code:

source /etc/profile


everything else.... dunno


#mb
Back to top
View user's profile Send private message
credmp
Apprentice
Apprentice


Joined: 02 Jul 2002
Posts: 207
Location: Netherlands

PostPosted: Mon Jul 15, 2002 1:31 pm    Post subject: Reply with quote

Besides the normal .Xresources and .Xdefaults you can also specify it on the command line of course: man xterm

maybe you have a TERM problem when it comes to your keys. Try something like 'export TERM=xterm' or vt100 etc. How a terminal handles keys depends greatly on what it thinks it is :) also might want to try and see what this brings you:

echo $SHELL

could be that when you created the user you forgot to set a shell?

grep username /etc/passwd

would give you something like:

arjenw:x:1003:10::/home/arjenw:/bin/bash

probably your last entry /bin/bash is empty. if it is you might want to su and put it in yourselfs.

-- Arjen
Back to top
View user's profile Send private message
Botsvein
n00b
n00b


Joined: 13 Jul 2002
Posts: 12
Location: Russia

PostPosted: Mon Jul 15, 2002 2:17 pm    Post subject: Reply with quote

2mb: thanks, it works! But "source /etc/inputrc" in ~/.bashrc is a bad idea :((
F1-F5 stop working in MC after it..
2credmp: That was the thing! Thanks a lot! Now MC "Ctrl-O"'s perfectly!
But, nevertheless, Home and End keys, say nothing about Alt+AnyKey make me swear at this bloody piece of plastic :((
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum