[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: fixing backspace and delete



Hi,

Patching or remapping will not be necessary.

On 23 Apr, Yann Dirson wrote:
> anne@ibbnet.nl writes:
>  > 	The kernelpatch mentioned above changes the default keymap, 
>  > swapping backspace and delete
> 
> If we're going to solve the problem by changing the default keymap, I
> think it SHOULD NOT be with a kernel patch.  The reason I say that is
> that some people (eg. me) do not use the official kernels (I don't
> want PCI support and such), and that it can be fixed by making the
> boot sequence run loadkeys on an additionnal keymap, in which case
> there wouldn't be any deps on a particular unofficial patch, which
> would somehow break drop-in compatibility with other dists.

I have recreated Philip's succes on a machine with hamm. The modified
xterminfo does the trick, great! Less works out of the box, as do joe,
vim and ftp (in both cases home/end too). Now the question is (as
Philip mentioned before, I am lagging behind:-) to figure out whether
there are any problems with other systems, and other terminfo entries.
Maybe we even can start thinking about how to actually implement this?

.Xdefaults/Xresources (home/end were ok):

*VT100.Translations: #override \
                <Key>Delete:        string(0x1b) string("[3~") \n\
                <Key>BackSpace: string(0x7F)
*ttyModes: erase ^? 

# apps based on Athena widgets (xbmbrowser) need this. It doesn't 
# seem to work on all Athena flavours. 
*Text.translations:    #override \
        ~Shift ~Meta <Key>Delete: delete-next-character()

.inputrc (for readline apps, not needed for bash though):

#fix delete in rxvt
"\e[3~": delete-char

#Home and end
#Console
"\e[1~": beginning-of-line
"\e[4~": end-of-line
#rxvt
"\e[7~":beginning-of-line
"\e[8~":end-of-line
#kvt
"\e[H":beginning-of-line
"\e[F":end-of-line

.cshrc:

#.cshrc
 if ($term == "xterm" || $term == "vt100" \
            || $term == "vt102" || $term !~ "con*") then
          # bind keypad keys for console, vt100, vt102, xterm
          bindkey "\e[1~" beginning-of-line  # Home
          bindkey "\e[7~" beginning-of-line  # Home rxvt
          bindkey "\e[2~" overwrite-mode     # Ins
          bindkey "\e[3~" delete-char        # Delete
          bindkey "\e[4~" end-of-line        # End
          bindkey "\e[8~" end-of-line        # End rxvt
      endif


Regards, Anne

P.S. I use vmb0abb@dhi.dk (current working-place) as anne@ibbnet.nl is
temporarily out of order.


--
To UNSUBSCRIBE, email to debian-i18n-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: