What's the deal with Deno? We talk with a major contributor to find out. Listen now.

Hot answers tagged

26

The eval extension shipped with rxvt-unicode has paste_clipboard and selection_to_clipboard actions for this, that can be bound to any keysym (see here). In your .Xresources add: URxvt.keysym.Shift-Control-V: eval:paste_clipboard URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard To disable the previous keybindings, you'll also need: URxvt.keysym....


25

For pasting text, in urxvt/rxvt-unicode you can use middle button to paste PRIMARY selection and Alt/Meta+middle button to paste CLIPBOARD. For copying, just marking the text in the terminal copies it to the PRIMARY selection. Some work is needed for copying to the CLIPBOARD selection though. I combined the information from the Archlinux page you linked ...


23

There are built-in mechanisms for copying/pasting to/from PRIMARY (is used when the user selects some data) and CLIPBOARD (is used when the user selects some data and explicitly requests it to be "copied" to the clipboard, such as by invoking "Copy" under the "Edit" menu of an application). More about different clipboards in X. For CLIPBOARD buffer it is ...


21

Yes, finally found my mistake. It seems like you need to install the package rxvt-unicode-256color to get 256 color support. sudo apt-get install rxvt-unicode-256color is the answer to my problems.


20

Unfortunately, the X window system has several different copy-paste mechanisms. Rxvt, like most old-school X applications, uses the primary selection. Generally, when you select something with the mouse, it's automatically copied to the primary selection, and when you middle-click to paste, that pastes the primary selection. Ctrl+C and Ctrl+V (or other key ...


20

You've disabled keycap picture insert mode but not basic ISO 14755 mode. To disable both, set both to false. URxvt.iso14755: false URxvt.iso14755_52: false After changing ~/.Xresources, reload the file with xrdb -merge <~/.Xresources


18

urxvt 2.6 in 2004 added support for xterm's dynamic colors feature. In XTerm Control Sequences, this is OSC 11. OSC 10 sets the default text color. The changelog mentioned part of the change: 2.6 Fri Apr 2 03:24:10 CEST 2004 - minor doc corrections. - WARNING: changed menu sequence from ESC ] 10 to ESC ] 703 to avoid clashes ...


16

According to the manual, setting URxvt.boldFont to empty will disable the bold font, and uses regular font instead. This is the preferred way I think. URxvt.boldFont:


15

You can make urxvt copy to both Primary and Clipboard with the selection-to-clipboard perl extenion. This keeps them in sync, so you just copy once in urxvt and it should work in applications that use either. URxvt.perl-ext-common: selection-to-clipboard


11

For historical reasons, there are two selections¹, with different usage conventions: The PRIMARY selection automatically changes when you highlight some text with the mouse. There is no “copy” command, it's automatic. The CLIPBOARD selection changes only when you issue a “copy” command (keyboard shortcut or icon or menu entry). Classic X11 applications ...


11

That sounds like keyseq-timeout, which is 500 (milliseconds). You could decrease it, e.g., to 50 (milliseconds). Setting it to zero would be a bad idea (see for example Re: How does one disable completion when nothing but tabs or spaces is on the line?). Not a duplicate, but one of the answers in How do I switch to vi editing mode in readline? uses the ...


10

First of all, there is a significant difference between the terminals types rxvt and unicode-rxvt (often abbreviated to urxvt). You have indicated that the terminal you are using is "URXVT Version 9.22", so to avoid confusion, please use the correct name which is not rxvt but urxvt. As Mikel has pointed out, the Xresources file is telling urxvt to use the ...


8

I added the following to my ~/.Xresources file to change to colors on the fly pressing Ctrl and 7 or 8 or 9. ! change to red background URxvt.keysym.C-7: command:\033]11;#ff0000\007 ! change to light background URxvt.keysym.C-8: command:\033]11;#ffffff\007 ! change to dark gray background URxvt.keysym.C-9: command:\033]11;#777777\007 If you want to set ...


8

This is explained in the X manual (man 7 X): When an application looks for the value of a resource, it specifies a complete path in the hierarchy, with both class and instance names. However, resource values are usually given with only partially specified names and classes, using pattern matching constructs. An ...


7

Besides using the rxvt-unicode-sixel fork, it might be possible to implement sixel by writing a perl extension. Documentation for that is in the urxvtperl(3) manpage. I don't know much about sixel but I imagine it's a matter of: intercepting the sixel escape sequences, interpreting them and not letting them pass through to the main escape sequence ...


6

Just add . /etc/profile.d/vte.sh in your ~/.bashrc to get the same feature


6

There is no specific .Xresources to examine, so only general advice is possible. The .Xresources file is usually loaded by xrdb (a prop for desktop settings). You can test this file by simply loading directly with xrdb, e.g., xrdb -merge ~/.Xresources or just xrdb ~/.Xresources if you do not care for the desktop-designer's choices. If there is some ...


6

Agreeing with the comment by @meuh, terminals don't generate a distinct code for control; (normally). The link suggested by @tijagi is for xterm and does not apply to urxvt. Using the manual page for urxvt shows that you can start here: keysym.sym: string Compile frills: Associate string with keysym sym. The intervening resource name ...


6

This is a Z Shell module known as "url-quote-magic" in action. It is trying to ensure that you end up with what you intended even though you completely ignored shell metacharacters and quoting. It detects when (in ZLE) an unquoted word looks like a URL, with a schema on the front, and changes the way that character self-insertion happens to the rest of the ...


6

This seems to be due to a change in the default behavior of GNU cpp, which xrdb uses as its default preprocessor. Specifically, according to The C Preprocessor: 10.1 Traditional lexical analysis: Generally speaking, in traditional mode an opening quote need not have a matching closing quote. However cpp provides a command line option to operate in ...


6

The tic program is reporting that the capabilities are unknown. Use the -x option to tell tic to treat those as user-defined capabilities. The ad hoc fix to make is in doc/Makefile, where it says something like tic $(srcdir)/etc/rxvt-unicode.terminfo change that to tic -x $(srcdir)/etc/rxvt-unicode.terminfo There are other ways to achieve the same goal,...


5

The ~/.inputrc file is a bash thing, not a zsh thing as far as I know. It controls the behavior of readline, the zsh equivalent of which is zle. You can modify its behavior using the bindkey command. So, to get Ctrl Left and Right back, add these lines to your ~/.zshrc (there might be a better place for them, an equivalent to ~/.inputrc but I don't know it ...


5

When you make an <A-x> mapping in Vim when x is a printable character (i.e., not a cursor or arrow key), it tells Vim to expect that character with the 8th/high bit set (aka, add 128 to the ASCII value). In your example, <A-h> means Vim will trigger the mapping when you type è. The ASCII value of h is 104 (binary 01101000) and when you set the ...


5

If no fonts are specified in .Xdefaults, .xresources or on the command line, the default single-byte font rxvt uses is 7x14. From the file src/defaultfont.h in the rxvt source: 82 #define NFONT_LIST \ 83 "7x14", "6x10", "6x13", "8x13", "8x16", "10x20", "12x24" These fonts are loaded into the default rxvt font set in their respective positions when ...


5

The setterm utility is intended for use with the Linux console. According to the console_codes manual page: The Linux console implements a large subset of the VT102 and ECMA-48/ISO 6429/ANSI X3.64 terminal controls, plus certain private- mode sequences for changing the color palette, character-set mapping, and so on. Since the program is hard-...


5

How about this. Starts a new bash process that is piped into awk, where every line piped in gets a couple of spaces printed before $0 (the input line) $ bash | awk '{print " " $0}' $ id uid=500(ec2-user) gid=500(ec2-user) groups=500(ec2-user),10(wheel) $ uname -a Linux ip-172-31-37-61 4.9.38-16.33.amzn1.x86_64 #1 SMP Thu Jul 20 01:31:29 UTC 2017 ...


4

I'm adding this answer because the others are out of date. Emacs 24.5 does correctly display italic faces in terminals. This is emacs 24.5 running in a terminal (emacs -nw). The terminal is uxvrt and the setup in my .Xdefaults is: URxvt*termName: rxvt-unicode-256color URxvt.font: xft:DejaVu Sans Mono:size=9


4

Of course it is a working approach to modify cd's behavior, but I would like to show a more simple solution. In the man bash(1) I found that if an interactive bash exits it runs ~/.bash_logout if exists. So instead of storing the path at every invocation of cd the last path can be saved at exit. My ~/.bash_logout is very simple: echo $PWD >~/.lastdir ...


4

Many terminals support escape sequences that set tab stops. The capability has even an entry in terminfo(5): tbc (clear all tabs) and hts (horizontal tab set). $ tput tbc; echo aaaaaaaaaaaaaaaaaaaaa$(tput hts); echo 'a\tb' aaaaaaaaaaaaaaaaaaaaa a b Above we set a tab stop at the end of those aaaaaaaa, and we see the result on next line. ...


4

When I invoke it on my Fedora 19 laptop I noticed this message in a terminal: rxvt: can't load font "-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1" Programmatically determining this? I asked this question some time ago, titled: Is there a command such as xwininfo, xdpyinfo, xprop, or xlsclient that will tell me what font an X client window is ...


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