Ok, I will try these as soon as I get my Mac back.
I didn't know I was treading on flamewar ground. :( I was just trying to
get back to having what I was used to in a Linux environment. (When I was
running Windows, I would even boot linux in a VM just so I could use the
shell there, instead of trying to make the Windows shell programs
interoperate correctly.) There are so many little tweaks you take for
granted, until they are not the default. Does BSD just handle backspace
differently than Linux by default or something? I was wondering why it
was not already defaulted that way. All the 'nix machine I administer are
Linux.
I'm already using the emacs shell mode. I actually like to use vi, but I
can't stand shell vi mode. There's just something I prefer about being
able to get to the end of the line and hitting backspace if I want to.
I haven't tried gmacs shell mode. I will have to try that.
Thanks for the reply!
Kasey Speakman
HPC Systems Admin
Alabama Supercomputer Authority
> Perhaps;
>
> $ stty erase ^h
>
> You will likely find that the built in emacs mode
> will save quite a few keystrokes over vi mode:
>
> $ set -o emacs
>
> Some shells , e.g. bash, can do:
>
> $ set -o gmacs ; # which includes setting ^h to destructive backspace
>
> Destructive backspace was a flame war issue many years ago.
> Please let us not rekindle it.
>
>
>
> On 3/16/07, email@hidden <
> email@hidden> wrote:
>>
>> Send Darwin-userlevel mailing list submissions to
>> email@hidden
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://lists.apple.com/mailman/listinfo/darwin-userlevel
>> or, via email, send a message with subject or body 'help' to
>> email@hidden
>>
>> You can reach the person managing the list at
>> email@hidden
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Darwin-userlevel digest..."
>>
>>
>> Today's Topics:
>>
>> 1. shell annoyances (Kasey Speakman)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Fri, 16 Mar 2007 09:22:28 -0500 (CDT)
>> From: "Kasey Speakman" <email@hidden>
>> Subject: shell annoyances
>> To: email@hidden
>> Message-ID: <email@hidden>
>> Content-Type: text/plain;charset=iso-8859-1
>>
>> Dear list,
>>
>> I have a question about using the shell and ssh. Firstly, I've already
>> been through the pain of getting Delete, Backspace, Home, and End to
>> work
>> in both local and remote shells, as well as vi. I'm a bit disappointed
>> that these things are not already in place, as they are in Linux.
>>
>> I'm using iTerm, as it seems to have better defaults, and it does tabbed
>> terminals, but Terminal.app tends to suffer the same ills.
>>
>> Anyway, my question is about using backspace while a program is running.
>> The main example of this is when I ssh to a server and the key password
>> prompt comes up. If I know I made a mistake typing in Linux, I can just
>> hit backspace a number of times (even though the cursor never moves),
>> and
>> retype the password, no problem. But in OS X iTerm, the backspace gets
>> sent as ^H in this circumstance, and so there's no way to back up over
>> your input.
>>
>> Another illustration of this is using an rsync command that runs a while
>> (this is the reason I know that ^H is sent rather than backspace). Say
>> I'm running a rsync on large amounts of data and it takes a while to
>> run.
>> Like so:
>>
>> rsync -a /big/files /backup
>>
>> Now, normally, as I'm sitting there waiting, I can type another command
>> and hit enter and that command will execute after rsync finishes.
>> However, what if I notice my syntax for the next command is wrong or I
>> mistyped? In Linux, I can just backspace over what I typed. But in OS
>> X
>> iTerm, I get ^H printed out for every backspace. How do I fix that?
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> Darwin-userlevel mailing list
>> email@hidden
>> http://lists.apple.com/mailman/listinfo/darwin-userlevel
>>
>> End of Darwin-userlevel Digest, Vol 4, Issue 14
>> ***********************************************
>>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-userlevel mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/darwin-userlevel/email@hidden
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-userlevel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-userlevel/email@hidden
This email sent to email@hidden