[S.u.S.E. Linux] Re: BackSpace in XTerm SuSE differences.
![](https://seccdn.libravatar.org/avatar/d2f7bef0955962945cf8aef4a147f5d1.jpg?s=120&d=mm&r=g)
Hubert
Well I have found the file that is causing a problem. .inputrc.
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.
If I put the .inputrc file in the new users dir, they NOW have the same problem, so this is the offending file.
I had other lines to make Home & End work but SuSE seems to have taken care of that (in us.map ?).
Anyway, with that DEL line in there the console works fine. BUT, the xterm BackSpace key does not. If I remove .inputrc ( or comment out the DEL line) the console delete key doesn't work BUT the BackSpace 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.
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 ;^)
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 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!
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 ^\? (^? == Ctrl-? == \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 -- Dr. Werner Fink -- S.u.S.E. GmbH, Gebhardtstr. 2, 90762 Fuerth, Germany mail:werner@suse.de <A HREF="http://www.suse.de/~werner/"><A HREF="http://www.suse.de/~werner/</A">http://www.suse.de/~werner/ fax:+49-911-3206727 Click here</A> ------ Hiroshima '45 ----- Chernobyl '86 ----- Windows '95 ----- -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
participants (1)
-
werner@suse.de