I know this is a little off-topic, but I can't find another forum to post it.
When I press "Delete" Key in a command line of bash, it just shows a ~. What's wrong?
I tried to use
But it still won't work.Code:stty erase '^?'
Thanks for helping me.
Printable View
I know this is a little off-topic, but I can't find another forum to post it.
When I press "Delete" Key in a command line of bash, it just shows a ~. What's wrong?
I tried to use
But it still won't work.Code:stty erase '^?'
Thanks for helping me.
There is a Linux forum, so perhaps one fo the fine moderating team can move the post to the appropriate place.
My guess would be that your terminal settings and what your keyboard (driver) is sending do not match up. But without being at your machine to see what happens when you do certain things, I can't quite say. I'm usually using Emacs commands for editing in Bash anyways, so I don't tend to use delete often.
--
Mats
Or perhaps even the tech board since this is not a question pertaining to linux programming. What OS are you using? What version of bash on that OS?
I am thinking matsp's driver hypothesis sounds the most likely. Perhaps you can double check to make sure your keyboard is being detected properly. I imagine your delete key works fine in x, right?
Oh? So obviously the best solution is to type without making mistakes (LOL! I have to laugh at the irony behind the typing of that sentense. I am normally a very accurate typer--rather I type exactly what I mean too; which doesn't necessarily guarantee what I was intending to type was spelled correctly--and I typoed nearly every single word on that line)
I am googling around for more info...
hmmm.
Are you telnetting from a windows box? Actually, that link should help you regardless of your configuration on your machine and the configuration of the target machine.
Just check out the bottom of that page. This thread will likely get moved to the linux or tech board as soon as laserlight or Salem happens by. And if you have posted this question anywhere else on the web, Salem will hunt it down (that is his mission in life).
Got it. It seems that this post does not apply to my case.
When I press down "Delete" Key, the screen shows ~ rather than ^H or ^?
I tried
orCode:stty erase ~
Neither work, i.e. when I press Delete key again, it does not function correctly.Code:stty erase ^?
Does your backspace work correctly at least? Let me see if there is some other magic to be worked.
It seems to me you should have been putting
But that is ok. Try doing an stty sane to default everything.Code:stty erase '~'
I think it might be a problem with SSH.
I just tried ssh'ing from my XP machine to a Solaris server and I get the same thing.
I am glad you gave up now... for I must be off. I will mess with it later. I am on the crappiest machine I have access to atm and am not going to telnet home from this crappy xp machine.
It produces ~ even in Terminal on OSX Tiger! Must be one of the dogmas related to early days of unix ;)
Take a look at /etc/ssh2/ssh2_config or ~/.ssh2/ssh2_config report anything obvious here :) -- specifically SSH2_TTY
It seems delete is being "escaped" with ~ (which is the default escape character for ssh) -- what a great help that was ;).