Mrxvt is a great Unix/Linux/BSD terminal client. It is light weight and supports tabs. I'm still waiting for Unicode & UTF-8 support. If non-Latin support is more important than tabs check out rxvt-unicode/urxvt. These are both based off of a beta of the wonderful but languishing rxvt terminal.

Anyway, one of the things I'm trying to do is make my various systems as keyboard consistent as possible. Mrxvt doesn't support keyboard copy and paste out of the box. I found a post that details how to set it up.

This tip makes use of my newest favorite CLI tool: xclip. Here's how.

On Ubuntu 12.04, install xclip:

sudo apt-get install xclip

Then using your favorite editor edit (or create) the file

~/.mrxvtrc

Add the following lines at the end of your file:

Mrxvt.macro.Ctrl+Shift+v:            Paste CLIPBOARD
Mrxvt.macro.Ctrl+Shift+c:            Exec !/usr/bin/xclip -o | /usr/bin/xclip -selection clipboard

Save the file and restart your Mrxvt.

Viola!

Let me know if this works for you. If you get this working under rxvt or urxvt, let me know!



My original entry is here: xclip and mrxvt. It posted Sat, 01 Dec 2012 16:15:43 +0000.

Filed under: technology, bsd, cli, linux, mrxvt, rxvt, rxvt-unicode, Ubuntu, unix, urxvt, xclip,