Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

1 votes
1 answers
2231 views
Not fully transparent background on urxvt
I looked up several answers on StackExchange network, neither of them worked as I wanted. I started using `urxvt` on Ubuntu instead of `gnome-terminal`, and wanted to configure it's look to be similar. I succeed with fonts, but can't beat transparent background. What I want is mix __60% background a...
I looked up several answers on StackExchange network, neither of them worked as I wanted. I started using urxvt on Ubuntu instead of gnome-terminal, and wanted to configure it's look to be similar. I succeed with fonts, but can't beat transparent background. What I want is mix __60% background and 40% Ubuntu Mid aubergine (#5E2750)__ -- that's how my gnome-terminal was configured. I tried several combinations of values for Urxvt*background (tried with alpha channel too), Urxvt*transparent, Urxvt*backgroundPixmap, Urxvt*fadeColor, Urxvt*fading (doesn't look actually useful here, but most examples I met set that too) and Urxvt*shading in .Xresources. Every one was not even close, most of them gave completely black background. Looks like I am wrong at understanding backgroundPixmap and background settings, but documentation is not so rich about them.
Lapshin Dmitry (343 rep)
Apr 11, 2016, 12:22 AM • Last activity: Jun 30, 2025, 10:06 PM
1 votes
1 answers
2929 views
tmux, urxvt, and copy-and-paste woes…
I am running tmux inside urxvt. I would like to select and copy text using the left mouse button and paste it using the middle mouse button -- I am very old school. I did get [tmux-yank][1] almost working but need to hit SHIFT+Mouse 1 Select doing the selection, then hit `y`… This is a lot of key pr...
I am running tmux inside urxvt. I would like to select and copy text using the left mouse button and paste it using the middle mouse button -- I am very old school. I did get tmux-yank almost working but need to hit SHIFT+Mouse 1 Select doing the selection, then hit y… This is a lot of key presses. Anyone knows how I can get this simple behaviour working better? Here are some versions: ; tmux -V tmux 2.2 ; urxvt256c-ml --version urxvt: "version": unknown or malformed option. rxvt-unicode (urxvt256c-ml) v9.21 - released: 2014-12-31 options: perl,xft,styles,combining,blink,iso14755,unicode3,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,pixbuf,XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm […] ; awesome --version awesome v3.5.9 (Mighty Ravendark) • Build: Mar 7 2016 18:43:56 for x86_64 by gcc version 6.0.0 (mockbuild@) • Compiled against Lua 5.3.2 (running with Lua 5.3) • D-Bus support: ✔
Sardathrion - against SE abuse (4493 rep)
Sep 23, 2016, 07:51 AM • Last activity: Jun 6, 2025, 08:02 AM
5 votes
2 answers
5297 views
Terminal does not open under dwm -- is there an error log file?
I am running DWM under Arch Linux in combination with the urxvt terminal. I have a urxvt daemon running but when I press the key combination for opening a terminal window, nothing happens. Is there an error log file for DWM? Any suggestions what I can do to find out why no terminal is opening? Thank...
I am running DWM under Arch Linux in combination with the urxvt terminal. I have a urxvt daemon running but when I press the key combination for opening a terminal window, nothing happens. Is there an error log file for DWM? Any suggestions what I can do to find out why no terminal is opening? Thanks! Edit: My config.c file: /* appearance */ static const char font[] = "-*-terminus-medium-r-normal-*- 12-*-*-*-*-*-*-*"; static const char normbordercolor[] = "#000000"; static const char normbgcolor[] = "#3f3f3f"; static const char normfgcolor[] = "#dfaf8f"; static const char selbordercolor[] = "#cc0000"; static const char selbgcolor[] = "#2b2b2b"; static const char selfgcolor[] = "#f0dfaf"; static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 0; /* snap pixel */ static const Bool showbar = True; /* False means no bar */ static const Bool topbar = True; /* False means bottom bar */ /* tagging */ static const char *tags[] = { "term", "work", "www", "mail"}; static const Rule rules[] = { /* class instance title tags mask isfloating monitor */ { "Gimp", NULL, NULL, 0, True, -1 }, { "Firefox", NULL, NULL, 1 ", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, }; /* key definitions */ #define MODKEY Mod4Mask #define TAGKEYS(KEY,TAG) \ { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, /* helper for spawning shell commands in the pre dwm-5.0 fashion */ #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } /* commands */ static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL }; static const char *termcmd[] = { "urxvtc", NULL }; static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, { MODKEY, XK_i, incnmaster, {.i = +1 } }, { MODKEY, XK_d, incnmaster, {.i = -1 } }, { MODKEY, XK_h, setmfact, {.f = -0.05} }, { MODKEY, XK_l, setmfact, {.f = +0.05} }, { MODKEY, XK_Return, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, { MODKEY|ShiftMask, XK_c, killclient, {0} }, { MODKEY, XK_t, setlayout, {.v = &layouts} }, { MODKEY, XK_f, setlayout, {.v = &layouts} }, { MODKEY, XK_m, setlayout, {.v = &layouts} }, { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, { MODKEY, XK_0, view, {.ui = ~0 } }, { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, { MODKEY, XK_comma, focusmon, {.i = -1 } }, { MODKEY, XK_period, focusmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) TAGKEYS( XK_4, 3) TAGKEYS( XK_5, 4) TAGKEYS( XK_6, 5) TAGKEYS( XK_7, 6) TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, }; /* button definitions */ /* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ static Button buttons[] = { /* click event mask button function argument */ { ClkLtSymbol, 0, Button1, setlayout, {0} }, { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts} }, { ClkWinTitle, 0, Button2, zoom, {0} }, { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, { ClkClientWin, MODKEY, Button1, movemouse, {0} }, { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, { ClkTagBar, 0, Button1, view, {0} }, { ClkTagBar, 0, Button3, toggleview, {0} }, { ClkTagBar, MODKEY, Button1, tag, {0} }, { ClkTagBar, MODKEY, Button3, toggletag, {0} }, };
Michael (243 rep)
Jul 26, 2014, 04:21 PM • Last activity: May 28, 2025, 04:07 AM
1 votes
1 answers
3520 views
Urxvt and tmux - set window title
When I use tmux from urxvt, window title is not updated. Normally when I use just urxvt, window title is updated every time I change directory and it is in form of "$USER@$HOST:$PWD", but when I run tmux from urxvt, window title stays the same as it was before running tmux. I have tried different se...
When I use tmux from urxvt, window title is not updated. Normally when I use just urxvt, window title is updated every time I change directory and it is in form of "$USER@$HOST:$PWD", but when I run tmux from urxvt, window title stays the same as it was before running tmux. I have tried different set terminal-overrides in tmux.conf as suggested in some answers I found on google, but none worked. Has anybody managed to make it work? I use Xmonad as WM, but same config works if I run tmux from xterm (title changed accordingly to set-titles-string in tmux.conf), so I guess that tmux and urxvt does not really understand each other. Versions of software: > rxvt-unicode (urxvt) v9.21 - released: 2014-12-31 > > tmux 1.9 My dotfiles: https://github.com/overlordtm/dotfiles
Andraz (111 rep)
Jul 15, 2015, 08:56 AM • Last activity: May 21, 2025, 01:01 PM
7 votes
1 answers
513 views
rxvt-unicode and xterm different yellow colors in journalctl
Recently, I noticed something strange. If I run the command `sudo journalctl -f -u ModemManager` in `rxvt-unicode` (left) and `xterm` (right), in `rxvt-unicode` the yellow does not appear when the message is a warning. Both terminals have `TERM=xterm-256color` and I noticed this problem only in yell...
Recently, I noticed something strange. If I run the command sudo journalctl -f -u ModemManager in rxvt-unicode (left) and xterm (right), in rxvt-unicode the yellow does not appear when the message is a warning. Both terminals have TERM=xterm-256color and I noticed this problem only in yellow, as the red appears in both terminals. I tried different escape sequences, but I was not able to detect the problem. Left: <code class=xterm Right: urxvt" class="img-fluid rounded" style="max-width: 100%; height: auto; margin: 10px 0;" loading="lazy">
cacamailg (193 rep)
Apr 13, 2025, 07:32 PM • Last activity: Apr 15, 2025, 10:55 AM
8 votes
1 answers
4072 views
Urxvt: how to increase the amount of lines I can scroll back?
In other terminal emulators you can usually control the amounts of lines you can scroll back, but it seems it's a fixed amount in Urxvt. I thought the "saveLines" option controlled that but I tried changing it to a higher amount to no avail, the amount of lines displayed doesn't change no matter the...
In other terminal emulators you can usually control the amounts of lines you can scroll back, but it seems it's a fixed amount in Urxvt. I thought the "saveLines" option controlled that but I tried changing it to a higher amount to no avail, the amount of lines displayed doesn't change no matter the amount. Is there any way to increase the amount of lines I can scroll back?
Vitor (81 rep)
Nov 21, 2018, 10:24 PM • Last activity: Mar 27, 2025, 06:04 AM
1 votes
0 answers
29 views
URXVT tab feature cuts off bottom of terminal
In Ubuntu Focal with X server, I am using URXVT and I have enabled the tabs feature ``` URxvt.perl-ext: tabbedalt URxvt.perl-ext-common: default,tabbed ``` However, it cuts off the bottom of the terminal. I have tried adjusting the `URxvt.internalBorder` but it does not help. Anyone know how to fix,...
In Ubuntu Focal with X server, I am using URXVT and I have enabled the tabs feature
URxvt.perl-ext: tabbedalt             
  URxvt.perl-ext-common: default,tabbed
However, it cuts off the bottom of the terminal. I have tried adjusting the URxvt.internalBorder but it does not help. Anyone know how to fix, please? enter image description here
dman (569 rep)
Oct 2, 2024, 08:54 PM
0 votes
1 answers
186 views
Strange bash errors for root console
Frequently, when switching my user by root with `su -`, I get strange `bash` error messages in the `rxvt` console, or even in a TTY. They happen even after a complety system upgrade from scratch, so it is probably a thing in `root` HOME. For example, these: sh: error importing function definition fo...
Frequently, when switching my user by root with su -, I get strange bash error messages in the rxvt console, or even in a TTY. They happen even after a complety system upgrade from scratch, so it is probably a thing in root HOME. For example, these: sh: error importing function definition for `_file' sh: _file: line 3: syntax error near unexpected token `(' sh: _file: line 3: ` --help | --version | --separator | -!(-*)[vF])' When I logout, I then get several errors like: /bin/bash: _sudo: line 19: syntax error near unexpected token `(' /bin/bash: _sudo: line 19: ` --user | --other-user | -!(-*)[uU])' /bin/bash: error importing function definition for `_sudo' Even if I do sh in the console I get /bin/bash: _file: line 3: syntax error near unexpected token `(' /bin/bash: _file: line 3: ` --help | --version | --separator | -!(-*)[vF])' /bin/bash: error importing function definition for `_file' I then logout and login again, and the normal behavior is restored. Until it begins behaving strangely... I thought it was a problem with '~/.bashrc' or the like, but those files are shared with my normal user that never ever shows errors in console. There is obviously a bash script with errors, but I don't know even where to begin looking. What is _sudo?? The commands grep _sudo $(find . -type f) and find . -name _sudo show nothing... **EDIT** This is the content of my file /usr/share/bash-completion/completions/sudo: # bash completion for sudo(8) -*- shell-script -*- _sudo() { local cur prev words cword split _init_completion -s || return local i mode=normal [[ $1 == *sudoedit ]] && mode=edit [[ $mode == normal ]] && for ((i = 1; i <= cword; i++)); do if [[ ${words[i]} != -* ]]; then local PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin local root_command=${words[i]} _command_offset $i return fi if [[ ${words[i]} == -@(!(-*)e*|-edit) ]]; then mode=edit break fi [[ ${words[i]} == \ -@(user|other-user|group|close-from|prompt|!(-*)[uUgCp]) ]] && ((i++)) done case "$prev" in --user | --other-user | -!(-*)[uU]) COMPREPLY=($(compgen -u -- "$cur")) return ;; --group | -!(-*)g) COMPREPLY=($(compgen -g -- "$cur")) return ;; --close-from | --prompt | -!(-*)[Cp]) return ;; esac $split && return if [[ $cur == -* ]]; then local opts=$(_parse_help "$1") COMPREPLY=($(compgen -W '${opts:-$(_parse_usage "$1")}' -- "$cur")) [[ ${COMPREPLY-} == *= ]] && compopt -o nospace return fi if [[ $mode == edit ]]; then _filedir fi } && complete -F _sudo sudo sudoedit # ex: filetype=sh
Luis A. Florit (509 rep)
Jul 25, 2024, 02:54 PM • Last activity: Aug 26, 2024, 06:31 PM
19 votes
6 answers
7373 views
paste url into terminal(urxvt, zsh) failed, some characters get escaped
In recent months, I find that if I copy the URL in Chrome and then Shift-Insert in the `urxvt`, the pasted URL is escaped. For example, the original URL is: http://example.com/?a=c the pasted content is: http://example.com/\?a\=c But if I paste it into other places, such as in the web browser or in...
In recent months, I find that if I copy the URL in Chrome and then Shift-Insert in the urxvt, the pasted URL is escaped. For example, the original URL is: http://example.com/?a=c the pasted content is: http://example.com/\?a\=c But if I paste it into other places, such as in the web browser or in the vim, there is no escape. What I use is Arch Linux, urxvt, zsh, oh-my-zsh.
宇宙人 (299 rep)
Jul 2, 2016, 02:17 PM • Last activity: May 28, 2024, 07:07 AM
1 votes
1 answers
87 views
With urxvt: unable to prevent title in title bar from being overwritten
I'm using urxvt version 9.22 under Ubuntu 20.04.1. Even though I use `-title MYTITLE` on the urxvt command line, and even though I set the following Xresource ... URxvt.insecure: false ... the title in the titlebar still gets overwritten if any command that is run within urxvt sends out the appropri...
I'm using urxvt version 9.22 under Ubuntu 20.04.1. Even though I use -title MYTITLE on the urxvt command line, and even though I set the following Xresource ... URxvt.insecure: false ... the title in the titlebar still gets overwritten if any command that is run within urxvt sends out the appropriate title-change escape sequence. Is there any way in urxvt to specify that -title specified on the command line will never be able to be overwritten via any escape sequence? Thank you in advance for any thoughts and ideas.
HippoMan (737 rep)
May 22, 2024, 10:00 PM • Last activity: May 23, 2024, 07:29 AM
2 votes
0 answers
47 views
Why is enabling 8 bit control sequences not recommended?
`./configure --help`: **--enable-8bitctrls** enable 8 bit control sequences (not recommended) As far as I can tell, the only affected code is this part of `src/command.C`: ``` c /*{{{ process non-printing single characters */ void ecb_hot rxvt_term::process_nonprinting (unicode_t ch) { switch (ch) {...
./configure --help: **--enable-8bitctrls** enable 8 bit control sequences (not recommended) As far as I can tell, the only affected code is this part of src/command.C:
c
/*{{{ process non-printing single characters */
void ecb_hot
rxvt_term::process_nonprinting (unicode_t ch)
{
  switch (ch)
    {
//
// skipping non-relevant lines
//
#ifdef EIGHT_BIT_CONTROLS
      // 8-bit controls
      case 0x90:        /* DCS */
        process_dcs_seq ();
        break;
      case 0x9b:        /* CSI */
        process_csi_seq ();
        break;
      case 0x9d:        /* OSC */
        process_osc_seq ();
        break;
#endif
    }
}
/*}}} */
So, I suppose the problem is not with rvxt-unicode code itself. What bad things could happen if 8-bit control sequences are enabled?
Andrei Korshikov (408 rep)
Mar 6, 2024, 07:50 PM
2 votes
1 answers
1116 views
Terminal urxvt shows squares instead of ASCII bold characters
I have just installed urxvt terminal, but the characters with bold formatting are replaced by squares: ![][1] When I copy the squares and paste them elsewhere, the text is displayed fine. What configuration do I have to change to show bold characters? Thanks. (I'm using Gentoo and Openbox.) [1]: htt...
I have just installed urxvt terminal, but the characters with bold formatting are replaced by squares: Image When I copy the squares and paste them elsewhere, the text is displayed fine. What configuration do I have to change to show bold characters? Thanks. (I'm using Gentoo and Openbox.)
Clara S&#225;nchez (63 rep)
Sep 28, 2017, 03:15 PM • Last activity: Feb 5, 2024, 10:37 PM
5 votes
1 answers
2271 views
urxvt transparent cursor
I've changed my `.Xdefaults` for a black background, white foreground, but my cursor is now opaque. I can't see the letter I'm over, and worse I can't see my screen hardstatus. Google is just pulling up how to make the whole term transparent. How can I make my cursor transparent again? $ cat .Xdefau...
I've changed my .Xdefaults for a black background, white foreground, but my cursor is now opaque. I can't see the letter I'm over, and worse I can't see my screen hardstatus. Google is just pulling up how to make the whole term transparent. How can I make my cursor transparent again? $ cat .Xdefaults URxvt*transparent: true URxvt*tintColor: Black URxvt*shading: 110 URxvt*saveLines: 60000 URxvt*foreground: White URxvt*font: xft:Droid Sans Mono:pixelsize=14 URxvt*scrollBar: false # Clickable links URxvt*perl-ext-common: default,matcher URxvt*urlLauncher: firefox URxvt*matcher.button: 1
nona (83 rep)
Jul 30, 2011, 06:12 AM • Last activity: Jan 27, 2024, 10:09 PM
0 votes
1 answers
234 views
URxvt not pulling from .Xresources when starting X. Issue with .xinitrc?
I have my DWM Archbox configured to launch a URXVT terminal when X is started. I have URXVT configured just how I like through my .Xresources file. Below is my .xinitrc ``` #! /bin/sh exec xrdb -merge ~/.Xresources & exec dwm & exec ~/.fehbg & exec urxvt ``` When X starts, the wallpaper through .feh...
I have my DWM Archbox configured to launch a URXVT terminal when X is started. I have URXVT configured just how I like through my .Xresources file. Below is my .xinitrc
#! /bin/sh

exec xrdb -merge ~/.Xresources &
exec dwm &
exec ~/.fehbg &
exec urxvt
When X starts, the wallpaper through .fehbg appears fine but the terminal doesn't have any of the .Xresources settings (to include appearance and perl scripts) with the weird exception of the font (loading Inconsolata) If I open another terminal, the .Xresources settings load fine and I get my desired terminal look and functionality. Anyone know what the issue may be? **Update:** After getting rid of all the execs except for the last one (moved dwm to last) I still had the same issue. I added sleep 1 after loading the wallpaper and URXVT finally loaded correctly. Curious as to why this worked.
VCPitcairn (1 rep)
May 24, 2023, 05:15 PM • Last activity: May 25, 2023, 06:27 AM
1 votes
1 answers
1507 views
How can I have colored emoji in URxvt?
Let me first clarify that `xfce4-terminal` does show colored emojis on the very same system for which I ask the question. URxvt, on the other hand, doesn't show them. Based on [archlinux wiki](https://wiki.archlinux.org/title/Fonts#Emoji_and_symbols), > Emojis should work without any configuration o...
Let me first clarify that xfce4-terminal does show colored emojis on the very same system for which I ask the question. URxvt, on the other hand, doesn't show them. Based on [archlinux wiki](https://wiki.archlinux.org/title/Fonts#Emoji_and_symbols) , > Emojis should work without any configuration once you have at least one emoji font installed of supported format. but apperently that's not the case for me. You can see in the following screenshot the different behaviuor of the two terminal emulators (in the top left there's the .Xdefaults file used to configure URxvt) enter image description here If I change the line
URxvt*font:             xft:DejaVuSansMono Nerd Font Mono:size=12
to
URxvt*font:             xft:NotoEmoji Nerd Font Mono:style=Book:size=12
I obtain non-colored emojis shown in a very ugly font where some characters are ok (the two emojis and the digits) and others are terribly pixelated (the letters): enter image description here What can I do to make URxvt show colored emoji?
Enlico (2258 rep)
Aug 27, 2022, 08:17 AM • Last activity: May 15, 2023, 07:54 AM
0 votes
1 answers
1298 views
How to make urxvt open link when clicked with Ctrl
Currently urxvt recognizes links and underlines them. While clicked, it opens them in firefox. Here's my current .Xresources: URxvt.perl-ext: default,matcher URxvt.url-launcher: firefox URxvt.matcher.button: 1 URxvt.matcher.pattern.1: \\bwww\\.[\\w-]+\\.[\\w./?&@#-]*[\\w/-] I want urxvt not to under...
Currently urxvt recognizes links and underlines them. While clicked, it opens them in firefox. Here's my current .Xresources: URxvt.perl-ext: default,matcher URxvt.url-launcher: firefox URxvt.matcher.button: 1 URxvt.matcher.pattern.1: \\bwww\\.[\\w-]+\\.[\\w./?&@#-]*[\\w/-] I want urxvt not to underline links by default. I want it to underline them only when mouse is over them. I also want urxvt to do nothing when their are clicked, but to open them when their are clicked with Ctrl key.
yomol777 (209 rep)
Apr 24, 2021, 11:28 AM • Last activity: Apr 30, 2023, 07:52 AM
1 votes
0 answers
144 views
Pasting non-ascii (utf8) into remote urxvt terminal
For pasting text, in urxvt/rxvt-unicode one can use middle button to paste PRIMARY selection. I can do such Mouse-Middle-Click paste in my local urxvt terminal and even a remote server, in Chinese/utf8 strings. EG if I run `date` under `LANG=zh_CN.utf8` environment and I'll get: ``` $ date 2023年 03月...
For pasting text, in urxvt/rxvt-unicode one can use middle button to paste PRIMARY selection. I can do such Mouse-Middle-Click paste in my local urxvt terminal and even a remote server, in Chinese/utf8 strings. EG if I run date under LANG=zh_CN.utf8 environment and I'll get:
$ date
2023年 03月 18日 星期六 15:01:11 EDT
I can then mouse ***select*** the Chinese/utf8 string 星期六 and Mouse-Middle-Click ***paste*** into my urxvt terminal (after my echo), like:
$ echo 星期六
星期六
in my local urxvt terminal and even a remote server. However, if I ssh into my other local machines, or my Oracle cloud then try the same approach, instead of echo 星期六 showing up on my command line, I'm getting: enter image description here if I select the whole echo 星期六, and past into the remote session, then it'll work, for either my local machines or my Oracle cloud server. Here is the screen-cast to illustrate it: enter image description here EG - the Chinese/utf8 strings cannot be pasted into my remote urxvt terminal normally. - however if there are some leading normal ascii characters before the Chinese/utf8 string, then the whole thing can be pasted in normally. All my environment are configured the same across all of them, So I'm thinking there must be something odd with my configuration which works only locally but not remotely. (My local machines and Oracle cloud server displays Chinese/utf8 strings/filenames just fine though.) **UPDATE:** more debug info
$ locale 
LANG=zh_CN.utf8
LANGUAGE=
LC_CTYPE="zh_CN.utf8"
LC_NUMERIC="zh_CN.utf8"
LC_TIME="zh_CN.utf8"
LC_COLLATE="zh_CN.utf8"
LC_MONETARY="zh_CN.utf8"
LC_MESSAGES="zh_CN.utf8"
LC_PAPER="zh_CN.utf8"
LC_NAME="zh_CN.utf8"
LC_ADDRESS="zh_CN.utf8"
LC_TELEPHONE="zh_CN.utf8"
LC_MEASUREMENT="zh_CN.utf8"
LC_IDENTIFICATION="zh_CN.utf8"
LC_ALL=

$ locale charmap
UTF-8

$ grep '^set.*meta' ~/.inputrc
set meta-flag on
set input-meta On
set output-meta On
How to fix it?
xpt (1858 rep)
Mar 24, 2023, 06:08 PM • Last activity: Mar 25, 2023, 07:04 PM
1 votes
1 answers
343 views
Disable automatically copying selection to clipboard in urxvt
There are 2 kind of clipboards on my os (manjaro i3). Xclip, which keeps the last selected text, and the regular clipboard which must be explicitly copied. I have noticed urxvt copies selected text in both clipboard, but I only need it to copy to xclip instead of the regular clipboard. Is there a wa...
There are 2 kind of clipboards on my os (manjaro i3). Xclip, which keeps the last selected text, and the regular clipboard which must be explicitly copied. I have noticed urxvt copies selected text in both clipboard, but I only need it to copy to xclip instead of the regular clipboard. Is there a way to do this? Edit: my Xresources URxvt.clipboard.autocopy: false URxvt.font: 9x15,xft:TerminessTTFNerdFontMono ! URxvt.font: -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso10646-1 ! URxvt.bold.font: -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso10646-1 URxvt.depth: 32 URxvt.background: #222D31 URxvt*scrollBar: false URxvt*mouseWheelScrollPage: false URxvt*cursorBlink: true URxvt*background: black URxvt*foreground: grey URxvt*saveLines: 5000 ! URxvt*inheritPixmap: true ! URxvt*transparent: true ! URxvt*shading: 138 URxvt*transparent: true URxvt*shading: 20 URxvt.iso14755: false URxvt.keysym.Shift-Control-V: eval:paste_clipboard URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard URxvt.keysym.Control-Left: \033[1;5D URxvt.keysym.Shift-Control-Left: \033[1;6D URxvt.keysym.Control-Right: \033[1;5C URxvt.keysym.Shift-Control-Right: \033[1;6C URxvt.keysym.Control-Up: \033[1;5A URxvt.keysym.Shift-Control-Up: \033[1;6A URxvt.keysym.Control-Down: \033[1;5B URxvt.keysym.Shift-Control-Down: \033[1;6B URxvt.perl-ext-common: default,font-size,clipboard,selection-to-clipboard ! URxvt.keysym.M-C-c: perl:clipboard:copy ! URxvt.keysym.M-v: perl:clipboard:paste ! URxvt.keysym.M-C-v: perl:clipboard:paste_escaped ! URxvt*termName: string ! URxvt*geometry: geometry ! URxvt*chdir: string ! URxvt*loginShell: boolean ! URxvt*multiClickTime: number ! URxvt*jumpScroll: boolean ! URxvt*skipScroll: boolean ! URxvt*pastableTabs: boolean ! URxvt*scrollstyle: plain ! URxvt*scrollBar_right: boolean ! URxvt*scrollBar_floating: true ! URxvt*scrollBar_align: mode ! URxvt*thickness: number ! URxvt*scrollTtyOutput: boolean ! URxvt*scrollTtyKeypress: boolean ! URxvt*scrollWithBuffer: boolean ! URxvt*tintColor: !7DA55 ! URxvt*blurRadius: HxV ! URxvt*fading: number ! URxvt*fadeColor: color ! URxvt*utmpInhibit: boolean ! URxvt*urgentOnBell: boolean ! URxvt*visualBell: boolean ! URxvt*mapAlert: boolean ! URxvt*meta8: boolean ! URxvt*tripleclickwords: boolean ! URxvt*insecure: boolean ! URxvt*cursorUnderline: boolean ! URxvt*pointerBlank: boolean ! URxvt*color0: color ! URxvt*color1: color ! URxvt*color2: color ! URxvt*color3: color ! URxvt*color4: color ! URxvt*color5: color ! URxvt*color6: color ! URxvt*color7: color ! URxvt*color8: color ! URxvt*color9: color ! URxvt*color10: color ! URxvt*color11: color ! URxvt*color12: color ! URxvt*color13: color ! URxvt*color14: color ! URxvt*color15: color ! URxvt*colorBD: color ! URxvt*colorIT: color ! URxvt*colorUL: color ! URxvt*colorRV: color ! URxvt*underlineColor: color ! URxvt*scrollColor: color ! URxvt*troughColor: color ! URxvt*highlightColor: color ! URxvt*highlightTextColor: color ! URxvt*cursorColor: color ! URxvt*cursorColor2: color ! URxvt*pointerColor: color ! URxvt*pointerColor2: color ! URxvt*borderColor: color ! URxvt*iconFile: file ! URxvt*font: fontname ! URxvt*boldFont: fontname ! URxvt*italicFont: fontname ! URxvt*boldItalicFont: fontname ! URxvt*intensityStyles: boolean ! URxvt*inputMethod: name ! URxvt*preeditType: style ! URxvt*imLocale: string ! URxvt*imFont: fontname ! URxvt*title: string ! URxvt*iconName: string ! URxvt*buffered: boolean ! URxvt*depth: number ! URxvt*visual: number ! URxvt*transient-for: windowid ! URxvt*override-redirect: boolean ! URxvt*hold: boolean ! URxvt*externalBorder: number ! URxvt*internalBorder: number ! URxvt*borderLess: true ! URxvt*lineSpace: number ! URxvt*letterSpace: number ! URxvt*skipBuiltinGlyphs: boolean ! URxvt*pointerBlankDelay: number ! URxvt*backspacekey: string ! URxvt*deletekey: string ! URxvt*print-pipe: string ! URxvt*modifier: modifier ! URxvt*cutchars: string ! URxvt*answerbackString: string ! URxvt*secondaryScreen: boolean ! URxvt*secondaryScroll: boolean ! URxvt*perl-lib: string ! URxvt*perl-eval: perl-eval ! URxvt*perl-ext-common: string ! URxvt*perl-ext: string ! URxvt*iso14755: boolean ! URxvt*iso14755_52: boolean ! URxvt*xrm: string ! URxvt*keysym.sym: keysym ! URxvt*background.border: boolean ! URxvt*background.expr: string ! URxvt*background.interval: seconds ! URxvt*bell-command: string ! URxvt*kuake.hotkey: string ! URxvt*matcher.button: string ! URxvt*matcher.launcher: string ! URxvt*matcher.launcher.*: string ! URxvt*matcher.pattern.*: string ! URxvt*matcher.rend.*: string ! URxvt*remote-clipboard.fetch: string ! URxvt*remote-clipboard.store: string ! URxvt*searchable-scrollback: string ! URxvt*selection-autotransform.*: string ! URxvt*selection-pastebin.cmd: string ! URxvt*selection-pastebin.url: string ! URxvt*selection.pattern-0: string ! URxvt*tab-bg: colour ! URxvt*tab-fg: colour ! URxvt*tabbar-bg: colour ! URxvt*tabbar-fg: colour ! URxvt*url-launcher: string !URxvt.font:xft:DejaVu Sans Mono:pixelsize=28
user2741831 (323 rep)
Jan 10, 2023, 01:57 PM • Last activity: Jan 11, 2023, 01:18 PM
1 votes
1 answers
612 views
run sub-process of a urxvt perl extension in calling urxvt window
I am trying to write a rxvt-unicode perl extension to do what [mrxvt PrintScreen](https://code.google.com/p/mrxvt/wiki/Tips#Can_I_search_the_scroll_back_buffer) does. I.e., the extension should pipe urxvt's contents to user-defined commands. The main purpose would be viewing urxvt's contents unwrapp...
I am trying to write a rxvt-unicode perl extension to do what [mrxvt PrintScreen](https://code.google.com/p/mrxvt/wiki/Tips#Can_I_search_the_scroll_back_buffer) does. I.e., the extension should pipe urxvt's contents to user-defined commands. The main purpose would be viewing urxvt's contents unwrapped in less -S. Here are my first attempts. (The command is still hardcoded cat -n, and including color escape codes and joining of wrapped lines is still missing.) #! perl -w use strict; sub on_user_command { my ($self, $cmd) = @_; open PIPE, "|cat -n" or die "urxvt-pipe: error opening pipe: $^E\n"; for (my $i = $self->top_row; $i nrow; $i++) { print PIPE $self->ROW_t($i), "\n"; } close PIPE or warn "urxvt-pipe: error closing pipe: $^E\n"; () } Replacing the pipe with exec_async does not help: #! perl -w use strict; sub on_user_command { my ($self, $cmd) = @_; open FH, ">/tmp/urxvt.txt" or die "urxvt-pipe: error opening file: $^E\n"; for (my $i = $self->top_row; $i nrow; $i++) { print FH $self->ROW_t($i), "\n"; } close FH or warn "urxvt-pipe: error closing file: $^E\n"; $self->exec_async("cat", "-n", "/tmp/urxvt.txt"); () } The problem with both is that the cat runs inside urxvt's parent (e.g. another urxvt or an emacs buffer if I call urxvt as the "compile" command during extension development). I would like it to run in the instance whose contents I'm piping, or a new tab thereof. Is that possible? Obviously as a workaround, the exec_async could be modified to open a new window: $self->exec_async("urxvt", "-title", "less urxvt scrollback", "-e", "less", "-S", "/tmp/urxvt.txt"); But I'd prefer the same window, and also rather avoid creating a temporary file.
EndlosSchleife (173 rep)
Sep 10, 2015, 11:01 PM • Last activity: Dec 10, 2022, 03:08 PM
0 votes
0 answers
204 views
Can't get URxvt to work with the font "Inter". Using it causes spaces in-between letters
I cannot get the popular Google font "Inter" to work with URxvt. When I set the font, `xrdb -merge .Xresources` and open a new terminal, it has spaces between the letters `l i k e t h i s`. Suggestions on Google point to `URxvt.letterSpace: -1`, but this doesn't do anything. Also, I don't need to us...
I cannot get the popular Google font "Inter" to work with URxvt. When I set the font, xrdb -merge .Xresources and open a new terminal, it has spaces between the letters l i k e t h i s. Suggestions on Google point to URxvt.letterSpace: -1, but this doesn't do anything. Also, I don't need to use this for my other working fonts. I know Inter works because it's installed on my system and I am using it in my top panel. I know other fonts are working in URxvt, specifically UbuntuMono Nerd Font Mono and Noto Sans Mono. In my .Xresources it looks like this: URxvt.font: xft:Inter: size=13. I tried things like Inter-regular, Inter: style=regular, but nothing works. Not sure what I am doing wrong. There is nothing special or fancy about the Inter font.
user898458 (61 rep)
Nov 18, 2022, 06:55 AM
Showing page 1 of 20 total questions