Backspace key not working in RCS

Greetings:

For some reason my backspace key doesn't work when I'm checking a file
into RCS? I have

stty erase '^H'

in my .login file and it works fine in the shell (tcsh), but when I do
a "ci -u <file>" and type in a comment I can't use the backspace key
and CTRL-H doesn't work either. I'm working on RH5... Any ideas?

Thanks
Tom
g4173c [ Do, 31 Januar 2008 18:52 ] [ ID #1920601 ]

Re: Backspace key not working in RCS

On Jan 31, 12:52 pm, T <g41... [at] motorola.com> wrote:
> Greetings:
>
> For some reason my backspace key doesn't work when I'm checking a file
> into RCS? I have
>
> stty erase '^H'
>
> in my .login file and it works fine in the shell (tcsh), but when I do
> a "ci -u <file>" and type in a comment I can't use the backspace key
> and CTRL-H doesn't work either. I'm working on RH5... Any ideas?
>
> Thanks
> Tom

This also doesn't work in ssh ....
g4173c [ Fr, 01 Februar 2008 13:17 ] [ ID #1921505 ]

Re: Backspace key not working in RCS

T wrote:
> On Jan 31, 12:52 pm, T <g41... [at] motorola.com> wrote:
>> Greetings:
>>
>> For some reason my backspace key doesn't work when I'm checking a
>> file into RCS? I have
>>
>> stty erase '^H'
>>
>> in my .login file and it works fine in the shell (tcsh), but when I
>> do a "ci -u <file>" and type in a comment I can't use the backspace
>> key and CTRL-H doesn't work either. I'm working on RH5... Any ideas?
>>
>> Thanks
>> Tom
>
> This also doesn't work in ssh ....
Then most probably your emulation isn't sending ^H when you press the
backspace key, quite a few send ^? instead

Try (interactively):
stty erase <backspacekey>

check whether it works now, if so check stty -a to see what erase has been
set to. Put that into your .login file

Bye, Jojo
Joachim Schmitz [ Fr, 01 Februar 2008 13:31 ] [ ID #1921506 ]

Re: Backspace key not working in RCS

On Feb 1, 7:31 am, "Joachim Schmitz" <nospam.j... [at] schmitz-digital.de>
wrote:
> T wrote:
> > On Jan 31, 12:52 pm, T <g41... [at] motorola.com> wrote:
> >> Greetings:
>
> >> For some reason my backspace key doesn't work when I'm checking a
> >> file into RCS? I have
>
> >> stty erase '^H'
>
> >> in my .login file and it works fine in the shell (tcsh), but when I
> >> do a "ci -u <file>" and type in a comment I can't use the backspace
> >> key and CTRL-H doesn't work either. I'm working on RH5... Any ideas?
>
> >> Thanks
> >> Tom
>
> > This also doesn't work in ssh ....
>
> Then most probably your emulation isn't sending ^H when you press the
> backspace key, quite a few send ^? instead
>
> Try (interactively):
> stty erase <backspacekey>
>
> check whether it works now, if so check stty -a to see what erase has been
> set to. Put that into your .login file
>
> Bye, Jojo

After much cursing, I've found the problem. It's the gnome terminal. I
switch to use xterms
and everything worked fine. Read my .login and the backspace key was
correct.

To fix this in the gnome terminal go to: "Edit->Current Profile..." go
to the Compatibility tab and
set the "Backspace key generates:" to ASCII DEL. (at least this one
worked for me). The default is
Control-H.

Thanks for the help!

-T
g4173c [ Fr, 01 Februar 2008 19:12 ] [ ID #1921524 ]
Linux » comp.unix.shell » Backspace key not working in RCS

Vorheriges Thema: SFTP permissions
Nächstes Thema: I want to open a bunch of ssh sessions, how to script it?