我知道我可以使用鼠标中间按钮复制和粘贴rxvt中的文本,但我想知道是否有一种方法可以在.Xdefaults中定义用于复制和粘贴文本的快捷键。
此外,如果也可以用键盘选择文本,那就太棒了。
尝试使用urxvt似乎不起作用(可能是因为zsh绑定?)。当我尝试从命令行运行脚本时,我还会得到以下错误:
% perl keyboard-select
Bareword "urxvt::ControlMask" not allowed while "strict subs" in use at keyboard-select line 137.
Bareword "urxvt::ControlMask" not allowed while "strict subs" in use at keyboard-select line 151.
Execution of keyboard-select aborted due to compilation errors.不幸的是,我对perl一无所知,也不知道这是否与它在urxvt itself.strong文本中不工作有关。
发布于 2012-01-25 20:27:18
您可以使用urxvt-perls启用键盘快捷方式复制和粘贴在urxvt中。
将所需的脚本放在/usr/lib/urxvt/perl/中并将这些行添加到您的.X{resources,defaults}中:
URxvt.perl-ext-common: ...,keyboard-select
URxvt.keysym.M-Escape: perl:keyboard-select:activatehttps://unix.stackexchange.com/questions/29994
复制相似问题