[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scm_shell in C-Thread - Quit vs. Terminal Corruption
From: |
Linas Vepstas |
Subject: |
Re: scm_shell in C-Thread - Quit vs. Terminal Corruption |
Date: |
Fri, 16 Oct 2009 21:49:34 -0500 |
2009/10/16 <address@hidden>:
>
> Hitting return three times yields:
> shellprompt ~ $ shellprompt ~ $ shellprompt ~ $
I didn't quite understand everything, but -- saying
"stty sane" should fix this problem.
I'm not sure what stty sane does, its some sequence of
calls to tcsetattr I guess.
strace reports that its opost isig icanon echo ...
so you should use atexit, and have the atexit routine do the
tcsetattr -- right?
--linas