Re: bash/xterm/(Home|End) Taste

From: Oliver Fromme <olli(at)secnetix.de>
Date: Wed, 28 Nov 2001 17:09:38 +0100 (CET)

Georg Graf <georg-dfbsd(at)graf.priv.at> wrote:
> Hallo (Free)BSD, xterm und bash Benutzer!

Bin zsh-Benutzer, aber vielleicht kann ich trotzdem helfen.

> seit ich FreeBSD benutze (3.3), lebe ich damit, daß im xterm mit
> der bash meine Home und End (Pos1 bzw. Ende) in der bash nicht funktionieren.

Bei mir geht's (zsh im xterm) und ging auch schon immer.
In meiner ~/.Xresources habe ich (unetr anderem) folgendes:

*VT100.Translations: #override \
        <KeyPress>Home: string(0x1b) string("[g") \n\
        <KeyPress>End: string(0x1b) string("[h")

Und in meiner ~/.zshrc (unter anderem) folgendes:

bindkey "^[[g" beginning-of-line
bindkey "^[[h" end-of-line

Die bindkey-Kommandos mußt Du ggf. an bash-Syntax anpassen
und in Dein bash-Profile reinschreiben. Außerdem mußt Du
natürlich sicherstellen, daß Deine .Xresources auch gelesen
wird, evtl. heißt die Datei bei Dir auch anders.

Gruß
   Olli

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"All that we see or seem is just a dream within a dream" (E. A. Poe)
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 28 Nov 2001 - 17:09:38 CET

search this site