Re: Bug#25689: xbase: Delete mapping in Xresources wrong if connecting from remote
Christoph Martin writes:
> Branden Robinson writes:
> > On Thu, Aug 20, 1998 at 10:34:56AM +0200, Christoph Martin wrote:
> > > Brian May writes:
> > > > Branden Robinson wrote:
> > > > >> >No, wrong. xev shows that the xserver generates correct Backspace and
> > > > >> >Delete keycodes.=20
> > > > >>=20
> > > > >> Somehow xterm is receiving Backspace as Delete, because the key
> > > > >> translations in /etc/X11/Xresources don't affect Backspace.
> > > > >
> > > > >They do as of xfree86 3.3.2.3-1, per Ian Jackson's recommendation. (Old
> > > > >xterms on remote hosts don't understand the *VT100.backarrowKey resource).
> > > >
> > > > I was under the impression that the xterm in question was running on the
> > > > (hamm?) Debian host.
> > >
> > > Correct. xterm on remote Debian hamm host. But Xresources on local
> > > (non Debian hamm) host.
> >
> > Then it sounds like the problem can be solved by copying the overrides
> > from a Debian /etc/X11/Xresources (running xbase 3.3.2.3-1) machine to a
> > user-specific or global Xresources file on the non-Debian host.
> >
> > Alternatively, you could do some fancy magic with your .{t}cshrc or
> > .bashrc on the Debian box, and have an if block conditional on the
> > value of $DISPLAY, and if true, do merge in the overrides with xrdb.
> > Inelegant, but it should work.
> >
>
> Sorry, now I mixed up some things and gave you the wrong
> information. My last statement was wrong.
>
> Correst is: Xserver on local host (eg. hcl exceed), then login via xdm
> to remote Debian host. /etc/X11/Xresources and xterm from there.
>
> I don't know why it is working from if I login locally into a debian
> box, but not if I come from remote.
I did some more testing now.
If do the Delete change via Translations:
! Make the backspace key generate ^? instead of ^H, per Debian keyboard policy.
!*VT100*backarrowKey: false
! Make the delete key generate ^[[3~ instead of ^?, per Debian keyboard policy.
! Make the home and end keys appear to always be in keypad-application mode.
*VT100.Translations: #override <Key>BackSpace: string("\177")\n\
<Key>Delete: string("\033[3~")\n\
<Key>Home: string("\033OH")\n\
<Key>End: string("\033OF")
it is working from other Xservers too, even on non-Debian xterms if I
help bash and emacs with recognising ^[[3~ as Delete.
So I would recommend to change this in the distribution.
Christoph
Reply to: