From werner@suse.de Thu Feb 12 23:03:35 1998 From: werner@suse.de To: users@lists.opensuse.org Subject: [S.u.S.E. Linux] Re: BackSpace in XTerm SuSE differences. Date: Fri, 13 Feb 1998 00:03:35 +0100 Message-ID: <6bvv47$u21$1@Galois.suse.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6120329397704916970==" --===============6120329397704916970== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable >=20 > Hubert >=20 > Well I have found the file that is causing a problem. .inputrc. >=20 > To make the Delete key work as it should ( delete the character the > cursor is on) I have in, .inputrc, the following line > DEL: delete-char PLEASE do not use a ~/.inputrc ... the full stuff is done in /etc/inputrc ... for the xterm with its used settings in /usr/X11R6/lib/X11/app-defaults/XTerm (VT100*Translations) (here is the place I've changed DEL to the common ANSI sequenz \033[3~ and BackSpace to to the good old \127 also known as DEL in ASCII code) The changes are reflected in terminfo/termcap, /etc/inputrc, /etc/csh.cshrc, /etc/vimrc, emacs, xemacs, /etc/skel/.exrc, /usr/lib/mc/mc.lib, and /etc/lesskey.bin. >=20 > If I put the .inputrc file in the new users dir, they NOW have the same > problem, so this is the offending file. >=20 > I had other lines to make Home & End work but SuSE seems to have taken > care of that (in us.map ?). =20 >=20 > Anyway, with that DEL line in there the console works fine. BUT, the=20 > xterm BackSpace key does not. If I remove .inputrc ( or comment out=20 > the DEL line) the console delete key doesn't work BUT the BackSpace=20 > key does work in Xterm! All the .X* and .x* files are now from /etc/skel. = > All Slackware files have been removed and/or had their filenames changed. >=20 > I am curious why no-one else has reported this. Hmmm ... I've done a well-considered work to catch the full keyboard stuff. With new files in /etc/skel/ may break this ;^) >=20 > It seems that SuSE has really done a good job in setting up the > keyboard file. 990f the customization I had made to my custom.map > has already been done by SuSE! Ctrl-Alt Keypad # to switch consoles, > etc. I do NOT need my custom.map file at all now! You guys have done a=20 > good job on that. You might want to let people know that they don't > have to go thrugh all that work, because you already have! >=20 > Now, so I don't mess up anything SuSE has already done, where do you > suggest I make changes to allow the Delete key to work in the console > and the BackSpace key to work in Xterm? Please do not change this. Use the package xlogin written by me for remote logins via xterm. This gives to skript: xlogin and xtelnet both with man page. xlogin start a remote xterm on the locale display with the remote shell with the remote terminfo/termcap description valid for the remote xterm. xtelnet says what you have to do to tell applications what they have to do for \127 ... stty erase ^\? (^? =3D=3D Ctrl-? =3D=3D \127). The traditional usage of BackSpace (Ctrl-H or \010) is `back one space' ... one reason why emacs ignores the terminfo/termcap entry for the key BackSpace ... Ctrl-H is help in emacs. This control sequence is also used by `man' to overstrike or underline characters ... just like a good old telex machine (for which ASCII was defined:). Note that the xterm has two distinct keyboard settings: one for applications and one for the shell. The terminfo/termcap describes the application mode (try Ctrl-Button2 : `Enable Application Cursor Key' and `Enable Application Keypad' and you get an extended vt220) ... to handle the normal mode (an extended vt100) I'm using /etc/inputrc and /etc/csh.cshrc. /etc/inputrc handels also the application mode to make all readline using applications happy. Werner --=20 Dr. Werner Fink -- S.u.S.E. GmbH, Gebhardtstr. 2, 90762 Fuerth, Germany mail:werner(a)suse.de http://www.suse.de/~werner/> fax:= +49-911-3206727 Click http://www.suse.de/~werner/>">here ------ Hiroshima '45 ----- Chernobyl '86 ----- Windows '95 ----- -- To get out of this list, please send email to majordomo(a)suse.com with this text in its body: unsubscribe suse-linux-e --===============6120329397704916970==--