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.
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
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
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.
Last edited by master5001; 09-24-2008 at 07:24 PM.
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).
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 copied it from the last program in which I passed a parameter, which would have been pre-1989 I guess. - esbo