stty question

stty question

Post by Rafal Grabowsk » Tue, 29 Feb 2000 04:00:00



Hello,

Does anybody know how I should use stty or any other command in order to
be able to use the backspace key in emacs for backward deleting? It is
interpreted as ^h and I cannot get used to it.

Thank you,
Rafal

 
 
 

stty question

Post by Matthew Jenkin » Tue, 29 Feb 2000 04:00:00



Quote:> Hello,

> Does anybody know how I should use stty or any other command in order to
> be able to use the backspace key in emacs for backward deleting? It is
> interpreted as ^h and I cannot get used to it.

> Thank you,
> Rafal

Ummm...

stty erase ^h

--
Well, that's my $0.02 worth
Matt

 
 
 

stty question

Post by Rafal Grabowsk » Tue, 29 Feb 2000 04:00:00





> > Hello,

> > Does anybody know how I should use stty or any other command in order to
> > be able to use the backspace key in emacs for backward deleting? It is
> > interpreted as ^h and I cannot get used to it.

> > Thank you,
> > Rafal

> Ummm...

> stty erase ^h

> --
> Well, that's my $0.02 worth
> Matt

Thank you, but I think that's my default setting. I will check this once
again.
--
Rafal Grabowski
 
 
 

stty question

Post by J Wuns » Tue, 29 Feb 2000 04:00:00



> Does anybody know how I should use stty or any other command in
> order to be able to use the backspace key in emacs for backward
> deleting? It is interpreted as ^h and I cannot get used to it.

It's probably easier to use DEL on your rubout key than to convince
Emacs of using ^H as something else than `help'. :)  This seems to be
one of the highly political points of RMS...

I've just tried it... in theory, there's a Lisp variable called
`help-char' that by default has the value of 8.  However, simply
redefining that variable to another value, like putting

(setq help-char 4)

into your .emacs doesn't do the trick.  Seems you also need to remap
the help-map keybinding map.  As i wrote, it's easier to get used to
use DEL for rubout everywhere.

--
cheers, J"org  /  73 de DL8DTL


Never trust an operating system you don't have sources for. ;-)

 
 
 

stty question

Post by David R. Tucke » Wed, 01 Mar 2000 04:00:00



> Hello,

> Does anybody know how I should use stty or any other command in order to
> be able to use the backspace key in emacs for backward deleting? It is
> interpreted as ^h and I cannot get used to it.

> Thank you,
> Rafal

; In your .emacs:
(define-key global-map "\C-x?" 'help-for-help)
(define-key global-map "\C-h" 'backward-delete-char)

--

 
 
 

1. Another stty question.

Monday, I posted a question relating to the following:  

I'm trying to use stty to set the values of a terminal that I then
want to open with an application I've written.  

   I "stty blablabla < /dev/tty00" and when I then look at it with
"stty -a < /dev/tty00", it's values are as they were before my first
stty.  

   Several people have told me that this is the way it's supposed
to work.  As I now understand it, the stty opens the port and sets
it's values, but closes the port, undoing the changes, when it
exits.  

   I've looked at the man page for stty, and I just don't get it.  

   Is there a way to set a port's values, then open that port in
an app while preserving those values, and set additional values
with tcsetattr?  

   I've been contracted to do a small project.  I would like the
user to change the com port values without setting entries for
tcsetattr, and then recompiling.  My client wants this program to
be portable between Solaris to DOS, and I want to minimize the
volume of code in conditional compile clauses.  

                                                          Thanks
                                                          Larry

2. Let Matrox know about US!

3. Stty Question

4. Help - Spurious Interrupt 8259a IRQ 7 errors (lots of them)!!

5. stty question

6. vi and term error

7. Port Scanners and sniffers

8. An stty question

9. Another stty question....

10. stty questions

11. Stty questions for serial port modem

12. Newbie stty question