FreeBSD putty delete key

I am using putty to connect to a FreeBSD system. I would like the delete key to operate by deleting the character under the cursor and leaving the cursor in the same posiion.

Instead, it causes a beep and inserts a hyphen ("-"). <-- not a smiley, showing the hyphen.

This happens no matter what keyboard emulation or setting I have in putty (except that SCO emulation makes it act like the backspace key).

I believe that putty it is trying to insert ESC- for the delete key . The backspace works normally.

Is there a stty setting that I can use to enable "proper" delete key functioning?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Putty as installed on FreeBSD constantly inserts Esc[n~ no matter keyboard config tickmarks , which is fine by Linux, but not good with anything else.
jasimon9Author Commented:
It sounds like you are suggesting that no correction of this condition can be made. If so, I am open to suggestions as to other ssh clients.
On FreeBSD you can use shipped OpenSSH client instead of PuTTY. It certainly has same terminal capabilities as another FreeBSD system holding ssh server.
Last time I routinely used windows best client around was SecureCRT from VanDyke company.
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

Some preferred MindTerm from
jasimon9Author Commented:
I have seen several references to SecureCRT, so I will investigate that option, as well as MindTerm.
That's been bugging me for ages to, your question prompted me to find the solution. I hope you enjoy it as much as I do now ;)

Caveat: this is a solution for the Bash shell (which I assume you are using). If you're using another shell, follow the link at the bottom for other workarounds.

Create a file, /etc/inputrc for system wide use or ~/.inputrc for personal use. Actually, this is the readline initialization file, readline is a library that some programs (bash, kvt) use to read input (try bind -v to see a list of readline key and function bindings). Cut and paste the following in the file to make the Delete key delete characters under the cursor, and make Home and End work as well:

"\e[3~": delete-char
# this is actually equivalent to "\C-?": delete-char
# VT
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# kvt
# rxvt and konsole (i.e. the KDE-app...)

I did it with a local ~/.inputrc. Log in again and enjoy. (The solution will also fix the Home/End keys)

You can find out everything you could every want to know about the Delete/Backspace keys on linux here:

I found that link from here: (the export term=LINUX there didn't work for me).



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
No bash on FreeBSD yet or ever.
Rubbish, it's in the ports tree. The fact that jasimon9 was having the same term/PuTTY problems as me makes me think he/she may be using bash like I am.

FYI, long description of the bash port here:
jasimon9Author Commented:

Exactly what I was looking for.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.