Frustrating but simple preference question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Frustrating but simple preference question
# 1  
Old 06-23-2010
Frustrating but simple preference question

So I am set up on a new box for work here and I have a frustrating preference issue. Whenever I hit backspace, it deletes a whole word instead of a single character. I understand that this is generally the functionality of hitting ctrl-backspace. I tried googling for a solution and dabbled in my .profile and .bashrc files a bit but I have yet to come up with a fix for this. Does anyone know how to correct this?

---------- Post updated at 01:54 PM ---------- Previous update was at 11:13 AM ----------

I probably should have specified that I am running bash
# 2  
Old 06-23-2010
It is a problem with tty settings - how bash reads keystrokes from the terminal.

Look for the word "erase" followed by some goofy character(s) in the output of:
Code:
stty -a

You want that to be "erase ^H"

If it does not:
1. run this from the command line
Code:
stty erase ^H

2. add the same thing to your .profile
This User Gave Thanks to jim mcnamara For This Post:
# 3  
Old 06-23-2010
Quote:
Originally Posted by jim mcnamara
If it does not:
1. run this from the command line
Code:
stty erase ^H

2. add the same thing to your .profile
That fixed it thank you.
# 4  
Old 06-23-2010
In this case it was ^H, but it depends on which terminal or emulator you are using. It can also be ^?
I usually just type "stty erase " and then press the backspace character. Then you always get the right character for the command.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Syslog.conf: looking for a simple answer on a simple question

Cheers! In /etc/syslog.conf, if an error type is not specified, is it logged anywhere (most preferable is it logged to /var/log/messages) or not? To be more precise I am interested in error and critical level messages. At default these errors are not specified in syslog.conf, and I need to... (6 Replies)
Discussion started by: dr1zzt3r
6 Replies

2. Shell Programming and Scripting

Frustrating Groups loop

I'm trying to list a bunch of users' groups and filter them out to be space delimited like this: 3610 14 25 2810 Using the "id" command they would look like this: uid=39693(user1) gid=14(dev) groups=3610(a_dev),14(dev) uid-39471(user2) gid=25(testing) groups=2810(prod),25(testing) I want the... (13 Replies)
Discussion started by: MaindotC
13 Replies

3. Ubuntu

PPPOE + Ubuntu = Frustrating

Hii everyone, I will be explaining what kind of problem I am having with Ubuntu and PPPOE. I have dual booted my PC with Win 7 and Ubuntu 10.10 Previously, whenever I use to start my ubuntu, internet automatically used to start up.. .no problems. I had created a DSL connection through... (0 Replies)
Discussion started by: zsycho
0 Replies

4. OS X (Apple)

adding second password to preference or an app

Hi I am new to forum and glad I found this place. I have been searching for a way to add a secondary password to a preference pane such as date/time in Unix (Ox10.4.11) or to lock an application which I found a backdoor for access when password is not available. An app I use is a internet... (9 Replies)
Discussion started by: botchagalou
9 Replies

5. OS X (Apple)

Editing System Preference in Terminal

Mac OS X 10.6: Leopard - I'm trying to create a script that will run on its own that can edit system preferences. I've done some digging, and found that a lot of system preference options are controlled by .plist files in ~/library/preferences, /library/preferences, and... (1 Reply)
Discussion started by: Jalaska13
1 Replies

6. OS X (Apple)

Find file associated with GUI preference pane

The flat files associated with the GUI are very useful in scripting, like the DNS section of the network pref pane seems to be a front end for resolv.conf.. but sometimes I cannot seem to find the file associated with the GUI area so i was wondering what is an easy way to do this? I was... (1 Reply)
Discussion started by: glev2005
1 Replies

7. Programming

Simple C question... Hopefully it's simple

Hello. I'm a complete newbie to C programming. I have a C program that wasn't written by me where I need to write some wrappers around it to automate and make it easier for a client to use. The problem is that the program accepts standard input to control the program... I'm hoping to find a simple... (6 Replies)
Discussion started by: Xeed
6 Replies

8. Shell Programming and Scripting

Frustrating Disk space script

This my frustrating disk space script that is supposed to send me a email whenever the disk space reaches 90% but this has some problem that just would not work ..can anyone please tell me when im going wrong #!/bin/ksh sendemail=-1 space=`df -bhk /users/siebelserver |awk '{print$5}'` echo... (4 Replies)
Discussion started by: vivsiv
4 Replies

9. UNIX for Dummies Questions & Answers

Ok simple question for simple knowledge...

Ok what is BSD exactly? I know its a type of open source but what is it exactly? (1 Reply)
Discussion started by: Corrail
1 Replies

10. Linux

Frustrating!

Hi All I have an extremely frustrating problem with my Mandrake 9.1 machine. When I am in KDE no browser at all will resolve hostnames. Networking is fine, as I can reach websites via IP address, however hostnames just don't work! When I conduct 'nslookup' or 'host' queries via the command line,... (2 Replies)
Discussion started by: saabir
2 Replies
Login or Register to Ask a Question