Unable to understand a stty option for Emacs in OS/X [closed]

Steve recommends to run the following code before you start your Emacs

stty erase ^\?

I get after running it

stty: illegal option -- Backups
usage: stty [-a|-e|-g] [-f file] [options]

Steve’s blog post

Note that the ^\? – – dorks the Delete key by making it send
a ^H, but enables the C-h sequence in
Emacs. Note that C-Delete does a
normal backward-delete-char, so just
remember that when you’re backspacing
in a terminal, hold the control key
down.

How can you see what Steve’s command does?

Answer

That command works fine for me. At first I thought perhaps you weren’t using bash, and the ^ or \ characters were being interpreted differently, so I tried csh and sh and it still worked fine. Are you sure that you’re typing “^” (shift 6) “\” (not /) and “?” (normal question mark)?

You can try it like this:

stty erase "^?"

which should have the same effect.

If that doesn’t work, I can’t help since I don’t have access to OS X. Good luck!

Attribution
Source : Link , Question Author : Léo Léopold Hertz 준영 , Answer Author : Randy Orrison

Leave a Comment