LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-26-2013, 12:04 AM   #1
STDOUBT
Member
 
Registered: May 2010
Location: Stumptown
Distribution: Slackware 14.0/32bit + a T60p (2007-YS3) = YES
Posts: 263

Rep: Reputation: 62
urxvt and vi (elvis) misbehavior


Hello all!

On my 13.37 system, I recently decided to install rxvt-unicode.
Strangely, vi behaves like a line editor (ed mode?).
xterm running vi works normally.
I have searched linuxquestions, and while there is a (2009) thread about this, it was never answered. Google was no help either. It must be a rare problem.
Has anyone run into this and if so, how did you solve it?
Thanks very much!
 
Old 01-26-2013, 02:17 AM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 872

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
I'm getting that you need to add something to your /etc/termcap to handle whatever rxvt-unicode is setting the $TERM variable to. You could test this quickly by setting TERM=xterm to see if elvis works then.
 
1 members found this post helpful.
Old 01-26-2013, 06:58 AM   #3
STDOUBT
Member
 
Registered: May 2010
Location: Stumptown
Distribution: Slackware 14.0/32bit + a T60p (2007-YS3) = YES
Posts: 263

Original Poster
Rep: Reputation: 62
Humble greetings, Chief! :-)

Code:
mike@proxima:~$ echo $TERM
rxvt-unicode-256color      
mike@proxima:~$ export TERM=xterm
mike@proxima:~$ echo $TERM
xterm
vi works fine when TERM is set to xterm, but once I close urxvt, and relaunch it (/usr/bin/urxvt),
I'm back with
Code:
mike@proxima:~$ echo $TERM
rxvt-unicode-256color
...it doesn't "stick". I've had a look at /etc/termcap and it's decidedly over my head.
My system is a bit of a mish-mash (no KDE), mainly XFCE, but now running Enlightenment (0.16.999.70492).
I would just stick with XFCE's Terminal, but it doesn't do as good a job with unicode characters as urxvt. Not that I need this for work, or anything, rather just to learn a new aspect of the system. So I'm going to make a point of studying the man page for termcap, and attempt to sort out the snag. If there's a better place to look, any pointers would be most appreciated.

Your reply is much appreciated!
Highest regards,
Mike from Portland, OR
 
Old 01-26-2013, 07:31 AM   #4
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 130

Rep: Reputation: 34
In /etc/ there are 3 termcap files: termcap, termcap-BSD and termcap-Linux. By default termcap is exactly the same as termcap-Linux

The first thing I usually do is copy /etc/termcap-BSD to /etc/termcap since the BSD version has definitions for rxvt.

I doubt doing that will fix the issue, but after doing the copy, add this string:
Code:
rxvt-unicode-256color|
to the start of line 1985, so that line will look like this:
Code:
rxvt-unicode-256color|rxvt-color|rxvt terminal emulator (X Window System):\
HTH
John

Last edited by jmccue; 01-26-2013 at 07:33 AM. Reason: changed 1895 to 1985 :)
 
2 members found this post helpful.
Old 01-26-2013, 06:51 PM   #5
STDOUBT
Member
 
Registered: May 2010
Location: Stumptown
Distribution: Slackware 14.0/32bit + a T60p (2007-YS3) = YES
Posts: 263

Original Poster
Rep: Reputation: 62
jmccue,
I did as you suggested, and now it's working fine! You saved me hours of research!
Still so much to learn...
Thank you!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot up misbehavior after an update during fsck feeblebrain Linux - General 1 06-25-2011 09:17 PM
Xine Misbehavior in KDE4/13.0 Woodsman Slackware 12 09-13-2009 11:07 AM
VI (elvis) not working with URXVT terminal - termcap problems. Any (easy) solutions? harryhaller Linux - General 1 05-05-2008 09:41 AM
Looking for kscope & cscope misbehavior pjz Linux - Software 2 01-17-2007 12:46 PM
2 similar systems/ networking misbehavior MagusWizardo Linux - Networking 0 02-01-2005 04:57 PM


All times are GMT -5. The time now is 10:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration