Re: home, end, delete, pageup, pagedown with ksh

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Markus Hennecke
Date: Tuesday, October 13, 2009 - 3:29 am

Nicolas Letellier wrote:

I have the lines
XTerm*loginShell: true
XTerm*eightBitInput: true
in my .Xdefaults file together with set +o emacs-usemeta in my .profile.
Those bind statements are in my .kshrc, set differently for each terminal:

if [ -o interactive ]; then
        case "$TERM" in
        vt220)
                bind '^[[3'=prefix-2                # DEL
                bind '^[[3~'=delete-char-forward        # DEL
                ;;
        wsvt25)
                bind '^[[3'=prefix-2                # DEL
                bind '^[[3~'=delete-char-forward        # DEL
                ;;
        xterm*)
                export TERM=xterm-color         # force color
                bind '^XH'=beginning-of-line    # Pos1
                bind '^XF'=end-of-line          # End
                ;;
        nxterm)
                bind '^XH'=beginning-of-line    # Pos1
                bind '^XF'=end-of-line          # End
                ;;
        *)      ;;
        esac
fi


HTH,
  Markus
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
home, end, delete, pageup, pagedown with ksh, Nicolas Letellier, (Mon Oct 12, 1:54 pm)
Re: home, end, delete, pageup, pagedown with ksh, Nicholas Marriott, (Tue Oct 13, 12:57 am)
Re: home, end, delete, pageup, pagedown with ksh, Nicolas Letellier, (Tue Oct 13, 2:00 am)
Re: home, end, delete, pageup, pagedown with ksh, Nicholas Marriott, (Tue Oct 13, 2:26 am)
Re: home, end, delete, pageup, pagedown with ksh, Markus Hennecke, (Tue Oct 13, 3:29 am)
Re: home, end, delete, pageup, pagedown with ksh, Nicolas Letellier, (Tue Oct 13, 5:00 am)