Re: [S.u.S.E. Linux] Re: BackSpace in XTerm SuSE differences.
![](https://seccdn.libravatar.org/avatar/64f8793c7ad0eef351592c4bdcc34aff.jpg?s=120&d=mm&r=g)
Werner With the ~/.inputrc file removed the Xterm works correctly. Delete, BackSpace, Home and end work as they should. The problem is, as I stated below, on the console the Delete key does not work correctly. The Delete key deletes the character to the right of the cursor rather then the character the cursor is on. This is the reason I added "Del: delete-char" to the .inputrc file in my home directory. I did not expect for all the keys to work in X and am happy that you have done all the work required to make them work. I do, however, want to get the console Delete key to work. I had already done all this for the Slackware distribution and had everything working correctly. I am now 99% there except for that darn Delete key! I will load the xlogin and xtelnet packages and read up on them. If I understand you correctly, you think that the keyboard is working correctly and I should leave it as is. Or that there may be some file in /etc/skel that has changed something. I am sorry if I have mis-understood you. wayne Subject: [S.u.S.E. Linux] Re: BackSpace in XTerm SuSE differences. Date: Thu, Feb 12, 1998 at 11:54:48PM +0100 In reply to:Dr. Werner Fink Quoting Dr. Werner Fink(werner@suse.de):
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
.
--
If you put garbage in a computer nothing comes out but garbage. But
this garbage, having passed through a very expensive machine, is
somehow enobled and none dare criticize it.
_______________________________________________________
Wayne T. Topa
participants (1)
-
wtopa@ix.netcom.com