Hot answers tagged

27 votes
Accepted

Pasting 'required text' into terminal emulator results in '^[[200~required text~'

These characters are used for bracketed paste mode. Some terminal-based programs enable this mode so that they could distinguish pasted text from directly typed text. For example, text editors ...
  • 401k
17 votes

rxvt - how to clear scrollback

If you want to clear the scroll-back by pressing Ctrl-L, add this to your ~/.Xresources URxvt.keysym.Control-l: command:\033c This is like running: echo -ne '\033c' However it outputs the text to ...
15 votes

Get Ctrl+Arrow to work under tmux+urxvt

Add this to your .Xdefaults URxvt.keysym.Control-Up: \033[1;5A URxvt.keysym.Control-Down: \033[1;5B URxvt.keysym.Control-Left: \033[1;5D URxvt.keysym.Control-Right: \033[1;5C URxvt will now ...
13 votes

Emacs key for Home & End

These worked for me: (global-set-key (kbd "<home>") 'beginning-of-line) (global-set-key (kbd "<end>") 'end-of-line)
  • 131
11 votes

Fixed highlighting in tmux

I have found info and solutions about it on tmux's pages: tmux's mailing list tmux's FAQ Screen's terminfo description lacks italics mode and has standout mode in its place, but using the same ...
8 votes

How to configure rxvt-unicode to behave similar to gnome-terminal? (or other's from xfce/mate)

Attempt to answer own question: Matches gnome-shell, with grey on black colors set. Details: RMB to launch URL (to allow regular LMB/MMB paste). Ctrl-Shift-C/V for copy-paste. Ctrl +/- to zoom fonts,...
7 votes

urxvt settings - reload without restarting terminal?

I created a Perl extension that reloads urxvt configuration upon recieving SIGUSR1: https://github.com/regnarg/urxvt-config-reload Currently it supports only reloading color configuration but other ...
  • 201
6 votes

Display unicode in tmux?

Would you please try the following and see if it helps? rename .tmux.conf to something else set LANG="en_US.UTF-8" Clarification: I have seen the existence of ~/.tmux.conf may cause problem so just ...
  • 389
6 votes

Fixed highlighting in tmux

I run urxvt in arch linux. The op's answer did not help me. This helped me: https://github.com/tmux/tmux/blob/2.1/FAQ#L355-L383 search for italic and run that; then, put this in tmux config set -g ...
  • 241
5 votes

Clicking far away in vim in tmux in urxvt

So, thanks to Screwtape, I've got an answer for this. Reproduced below: The original xterm mouse protocol only supports up to 223 columns and lines. Later versions of the protocol used UTF-8 encoding,...
  • 2,105
5 votes

Some unicode symbols still not displayed with urxvt or xterm

Fernando Basso's answer already helped me a lot. However, as he also pointed out, I still could not get all the glyphs to work. Especially the symbol indicating the line in airline (㏑) didn't work ...
  • 61
5 votes

Some unicode symbols still not displayed with urxvt or xterm

What I do here to get the glyphs I need working on urxvt is to add more fonts in the font list: URxvt.font: xft:Ubuntu Mono:pixelsize=18:antialias=true:hinting=true,\ xft:Source Code Pro:...
5 votes
Accepted

How to disable urxvt autoscroll on output?

I see that the question was posted a year ago, but it is at the top of my search results. I've found and using this config: URxvt*scrollTtyOutput: false URxvt*scrollWithBuffer: true URxvt*...
  • 166
5 votes
Accepted

How to disable the bell in urxvt?

I was able to disable the bell on GNOME with the command: $ gsettings set org.gnome.desktop.wm.preferences audible-bell false In general, the PC speaker page from the ArchWiki appears to have a ...
4 votes

urxvt triple-click not selecting lines as expected

Fixed by disabling the selection Perl extension. I was under the misapprehension that -pe "" would disable all extensions (I think I read this somewhere), but it doesn't. In fact I'm not sure ...
  • 578
4 votes

urxvt settings - reload without restarting terminal?

The following script can be used with URxvt (or any other terminal supporting XTerm OSC escape sequences) to change the color scheme on the fly. It accepts .Xresources-style definitions as input, and ...
  • 195
4 votes

Fixed highlighting in tmux

Quicker way: set -g terminal-overrides "screen.xterm-new" Works without any further magic (and still heeds the warning in the tmux manual about the terminal type needing to be "screen" or a ...
  • 51
3 votes
Accepted

Set urxvt shell without chsh?

You can send zsh in as a command when launching urxvt: urxvt -e /path/to/zsh
3 votes

Mouse wheel scrolling in less and vim using urxvt

I wrote this for a very similar question, see https://superuser.com/a/1356948/900060 Paste this in $HOME/.urxvt/ext/vtwheel (create the file if it doesn't exist): #! perl # Implements a scrollwheel ...
  • 41
3 votes

Mouse right-click menu in RXVT

i don't know gnome-terminal menus, but urxvt have the ctrl+right click. You may need to select some text and AFAIK, those menu entries can be configured If you are looking for copy&paste, there ...
  • 520
3 votes

Pasting 'required text' into terminal emulator results in '^[[200~required text~'

This seems to work for me (though it doesn't make sense) In my ubuntu Mate Terminal I go Edit > Keyboard Shortcuts goto Paste - the keys are already mapped to Shift+Ctrl+V I select and re-enter by ...
  • 171
3 votes

Pasting 'required text' into terminal emulator results in '^[[200~required text~'

There is an additional way that this problem can manifest. Readline's ~/.inputrc file can contain the following: set enable-bracketed-paste On This is not fixed by any of the above methods and has ...
  • 31
2 votes

How can I prevent or interrupt accidental copy/paste in the terminal?

Using urxvt makes this very easy. Simply enable confirm-paste in your .Xresources. URxvt.perl-ext-common: confirm-paste, I think it comes with certain packages of urxvt or urxvt perls... But ...
  • 21
2 votes
Accepted

urxvt: Inconsistent behaviour re: unicode display

If the locale in which your window manager is running is different, that can explain the problem. That could happen if your system locale differs from the locale set in your shell initialization.
2 votes

Set urxvt shell without chsh?

You can use a check in you ~/.bashrc if it is running in (u)rxvt. And if so, replace bash with zsh: if [[ "$TERM" == *rxvt* ]]; then exec zsh fi
  • 26.2k
2 votes
Accepted

Rendering of unicode symbols in urxvt (height / width) vs. gnome-terminal

The different heights are expected, just like the issue that too wide symbols are replaced with a square symbol.. I've asked about this on the rxvt-unicode mailing list a while ago (Q4 2004), and ...
  • 1,181
2 votes
Accepted

Close prompt for urxvt

A perl script did the trick. I ended up with this: #!/usr/bin/perl sub on_wm_delete_window { my ($self, $event) = @_; my $CP = `ps --ppid $self->{shell_pid} -o pid= | wc -l`; chomp $...
  • 113
2 votes
Accepted

How can I make a searchable shortcuts cheat sheet?

This is hard to answer, because depending on your workflow, what works for you and what works for others may be vastly different. But I'm going to go ahead and make a recommendation: If you do most ...
2 votes
Accepted

URxvt - Documentation about keybindings

Oddly, urxvt(7) "should be" complete, and it points to the "latest version" at http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.7.pod but neither contains the relevant text. For that, it ...
2 votes

How to prevent terminal from closing after command exits?

workon is a function (not a separate executable) for a reason: its job is to set something in the current shell. I don't use the tool and I don't know the details. It's irrelevant if it sets variables,...

Only top scored, non community-wiki answers of a minimum length are eligible