Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make xterm use home and end
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Mon Jan 20, 2003 8:37 pm    Post subject: make xterm use home and end Reply with quote

How do i make xterm respond to home and end.
Also, is there a way to modify the font size without using truetryp fonts? -fs appars not to work w/ the default font.

btw, the newest version of xterm is great. It finally supports scrolling and goes back a lot farther than aterm.
Back to top
View user's profile Send private message
fifo
Guru
Guru


Joined: 14 Jan 2003
Posts: 437

PostPosted: Tue Jan 21, 2003 1:09 am    Post subject: Reply with quote

Well I got home/end to work by editing /etc/inputrc. Look for the section:
Code:

#
# Home and End
#
$if term=xterm
#
# Normal keypad and cursor of xterm
#
"\e[1~":        history-search-backward
"\e[4~":        set-mark

Change the last two lines to read:
Code:

"\e[1~":        beginning-of-line
"\e[4~":        end-of-line

There seems to be some alternative bindings for begin/end-of-line, but no keys seem to generate these for me.

Not sure about the font size issue. You could use xfontsel to choose a font and then pass that with the -fn option, e.g.
Code:

$ xterm -fn -misc-fixed-medium-r-*-*-15-*-75-75-*-*-iso8859-1

_________________
fifo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum