Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with vi on startup shell

Status
Not open for further replies.

stackdump

Technical User
Sep 21, 2004
278
GB

Ive been trying to solve a weird problem most of the day. Our system uses Exceed to connect to Unix and Linux from PC's. When I start an Xterm, vi does not work correctly in terms of key bindings when run from that starting Xterm. If I invoke a second Xterm from that first Xterm it works fine!

Now, if I do echo $term in the first window it shows 'vt100', but doing echo $term in any subsequent Xterm windows, they all show up as 'xterm'.

I cant help but think its something to do with .Xinit or .Xdefaults. What am I missing something here? Any help appreciated.


 
The first xterm may be invoked with the -ls to simulate a login shell. Is there anything in your .profile that is setting your $term variable?
 

Good point, I'll take a look at that.

Ive also found that it doesnt happen on every PC so it's user specific. So I guess that could also tie it down to the .profile too. Since it only happens on the first xterm, it cant be in the .cshrc

I'll try a few diff's on a good versus bad profile, .login etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top