Making Home and End Work Like They Do In Linux on OpenSolaris

In OpenSolaris, the xterm bindings aren't there for the End and Home keys - they do nothing. Yes, I know, Ctrl+a and Ctrl+e do the same things, but my laziness has turned into muscle memory. Here's how to fix it:

As your normal user, run the following:

mkdir /tmp/foo
env TERMINFO=/usr/share/lib/terminfo /bin/infocmp xterm > /tmp/foo/xterm.ti
echo ' knp=\E[6~, kpp=\E[5~, kend=\EOF, khome=\EOH, '  >> /tmp/foo/xterm.ti
env TERMINFO=/tmp/foo /bin/tic -v /tmp/foo/xterm.ti
cd /usr/share/lib/terminfo/x/
pfexec cp xterm xterm.orig
pfexec cp /tmp/foo/x/xterm xterm.new
pfexec cp xterm.new xterm

Now your home and end keys will behave like your used to in Linux!

All of this was pretty much copied and pasted from http://tech.groups.yahoo.com/group/solarisx86/message/20027 - thanks to Juergen Keil for the tip!

No votes yet

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <embed> <object> <param> <strike> <caption>
  • Lines and paragraphs break automatically.

More information about formatting options