Hello,

pushing the 'home' or 'end' keys display a '~' character in the terminal.
I would like an other behavior:
* if I press the 'home' key, I want my cursor go to the begin of the line
* if I press the 'end' key, I want my cursor go to the end of the line

A first solution for this problem is editing my .Xresource file and adding 
these 2 lines:
urxvt*keysym.Home: \033[1~
urxvt*keysym.End: \033[4~
I also do:
export TERM=rxvt
Because the rxvt-unicode terminfo file isn't present in my terminfo database.

An other solution is to create my terminfo terminal description file using the 
'infocmp' and 'tic' commands.
We need to see the '/etc/inputrc' file to see what is the corresponding escape 
character for 'beginning-of-line' and 'end-of-line'.
But this solution doesn't work on my computer.
I do this :
$ infocmp rxvt > rxvt.cmp
$ vim rxvt.cmp
I change the terminal name:
rxvt-unicode|rxvt-unicode
I change the escape character for the 2 keys:
khome=\E[1~
kend=\E[4~
$ tic rxvt
Now I have a file in:
~/.terminfo/r/rxvt-unicode
$ export TERMINFO=~/.terminfo
Also, I unset the TERM variable because now the rxvt-unicode terminfo file 
present in my terminfo database.
And I restart my X server.

But pushing the 'home' or 'end' keys display a '~' character in the terminal.

Can you explain me how to correctly edit my terminfo file in order to expected 
behavior ?

Thank you.
Regards.

_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode

Reply via email to