Date: Thu, 25 Sep 2014 19:06:50 -0700 From: "Brian W." <brian@brianwhalen.net> To: Polytropon <freebsd@edvax.de> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org>, Dave Babb <dcbdbis@comcast.net> Subject: Re: TCSH issue Message-ID: <CADV=szX5arTnPKQGUZk2G_ivXvusapykN8do=KHRJBS2uG1ARg@mail.gmail.com> In-Reply-To: <20140926035851.301e3cc6.freebsd@edvax.de> References: <54243DA2.1070805@comcast.net> <20140926035851.301e3cc6.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
If I remember correctly I used to use stty erase ^H for that. Brian On Sep 25, 2014 6:59 PM, "Polytropon" <freebsd@edvax.de> wrote: > On Thu, 25 Sep 2014 10:06:58 -0600, Dave Babb wrote: > > Upon a recommendation of a fellow and very experienced FreeBSD user...I > > have switched from bash to tcsh as my user shell. I have not and will > > not change the root's shell from sh. > > The dialog shell for root is also the C shell; sh is the > system's standard scripting shell, as well as the suggestion > for the maintenance shell in single user mode. > > > > > Let me explain: If I fat finger something into the cli....lets say > > "freeecolor -om"....If I was to place my cursor on the last "e" and > > backspace...everythings fine...However if I put my cursor on that same > > letter and press the delete key...it doesn't delete the letter, rather > > it inserts a tilde "~". "sh" behaves the same way on my system. > > What you're experiencing here is a "problem" with the setting > of the terminal emulator (what codes are generated by keys) > and the shell (how shell actions are defined in keyboard > control sequences). The shell prints the "code" for the key > when it doesn't know what to do with it. > > > > > Does anyone know how I can correct this behavior? > > I have the following addition in /etc/csh.cshrc so all user > shells inherit the setting: > > if ($?prompt) then > # ... stuff omitted ... > if ( $?tcsh ) then > bindkey "^W" backward-delete-word > bindkey -k up history-search-backward > bindkey -k down history-search-forward > endif > bindkey ^? delete-char # for console > bindkey ^[[3~ delete-char # for xterm > endif > > The last two "bindkey" lines should make sure the delete key > does what you rightfully expect it to do. :-) > > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADV=szX5arTnPKQGUZk2G_ivXvusapykN8do=KHRJBS2uG1ARg>