Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i used urxvt, but ,when i input C-enter, it seems that it can not recognize it!
when i use emacs in urxvt, when i type C-enter, it just like input a <Enter>!
how to configure it?thanks a lot!
It works for me after adding this line to ~/.Xresources (but not until I had rebooted. Logging off and back on would probably have been enough): URxvt.keysym.Control-Return: \033<Control-Return>
"C" could have been used instead of "Control".
Testing at a command prompt:
Code:
c@CW8:~$ ^M
[above by using Ctrl+V then Enter]
c@CW8:~$ ^[<Control-Return>
[above by using Ctrl+V then Ctrl+Enter]
c@CW8:~$ urxvt -help
rxvt-unicode (urxvt) v9.12 - released: 2011-12-05
[snip]
EDIT: maybe that didn't work! Maybe it should have shown ^[^M. But it demonstrated that .Xresources is effective.
Now using xrdb ~/.Xresources and starting a new urxvt instance instead of logging off and back on (there had to be a better way!) ...
It seems urxvt is taking <Control-Return> as a literal string instead of substituting Control-Return's value:
Code:
c@CW8:~$ read -r
[pressed Ctrl+Enter]
^[<Control-Return>
c@CW8:~$ echo "$REPLY" | od -a
0000000 esc < C o n t r o l - R e t u r n
0000020 > nl
0000022
If the input required by emacs is Escape followed by ^M, a workaround is possible using URxvt.keysym.Control-Return: \033\015
After setting that and re-initialising:
Code:
c@CW8:~$ read -r
^[
c@CW8:~$ echo "$REPLY" | od -a
0000000 esc nl
0000002
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.