Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-24-2009, 12:14 PM
|
#1
|
|
Member
Registered: Oct 2002
Posts: 318
Rep:
|
back space erases whole term on command line
Have a problem with backspace on the command line. It backspaces over entire terms instead of single characters
Lets say I enter 'cd /home/$USER/.d5' when I meant to enter 'cd /home/$USER/.dt'. If I hit the backspace button to correct the last character everything is erased except the 'cd'. I have to retype the whole path and keep doing it until it's perfect. If I accidentally hit the backspace more than once it continues erasing whole terms rather than single characters.
Is there a way to turn off this 'feature'?
|
|
|
|
04-24-2009, 02:32 PM
|
#2
|
|
Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,644
|
Hit Ctrl-v (hold down ctrl key then hit v). Then hit the backspace key. What you see should be the code the backspace key is sending. (Typically it is ^? or ^H).
Then type "stty -a" and see what "erase=" shows to determine if it matches.
If not then type "stty erase" and hit your backspace key - that should set it to match. You can hit stty -a afterwards to verify it.
Of course this assumes you're not using incorrect TERM value (echo $TERM to se that) or haven't done some odd mapping manually.
|
|
|
|
04-24-2009, 05:47 PM
|
#3
|
|
Member
Registered: Oct 2002
Posts: 318
Original Poster
Rep:
|
Quote:
Originally Posted by jlightner
Hit Ctrl-v (hold down ctrl key then hit v). Then hit the backspace key. What you see should be the code the backspace key is sending. (Typically it is ^? or ^H).
Then type "stty -a" and see what "erase=" shows to determine if it matches.
If not then type "stty erase" and hit your backspace key - that should set it to match. You can hit stty -a afterwards to verify it.
Of course this assumes you're not using incorrect TERM value (echo $TERM to se that) or haven't done some odd mapping manually.
|
Thanks for the response.
Ctrl-v backspace returns ^?
partial return of stty -a:
Quote:
.
intr = ^c; quit = ^\; erase = ^h; kill = ^u;
rprnt = ^r; flush = ^o; werase = ^?; lnext = ^v;
|
$TERM is set to xterm.
If I enter 'stty erase' and then hit the backspace key it simply erases 'erase' on the command line. No change is affected.
|
|
|
|
04-24-2009, 06:22 PM
|
#4
|
|
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,717
Rep: 
|
Mention distro and shell.
Otherwise things will not be clear.
|
|
|
|
04-27-2009, 12:28 PM
|
#5
|
|
Member
Registered: Oct 2002
Posts: 318
Original Poster
Rep:
|
Quote:
Originally Posted by amani
Mention distro and shell.
Otherwise things will not be clear.
|
Not a distro. It's Solaris. The shell is csh. Just discover that if I invoke tcsh the issues vanish. That might be the easiest workaround.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:07 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|