<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Mar 20, 2016 at 3:13 PM,  <span dir="ltr">&lt;<a href="mailto:petr.2006@centrum.cz" target="_blank">petr.2006@centrum.cz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Still lost keyboard. When I start new terminal I see what I have typed into the dead one in command history.<br>
I will try to reinstall python33 with +readline.</blockquote></div><br>Sorry, I meant that&#39;s what to type into the &quot;dead&quot; terminal to make it behave again. When python3 is using libedit, for some reason it doesn&#39;t reset to linemode+echo on exit. Seeing stuff in command history would seem to confirm this.</div><div class="gmail_extra"><br></div><div class="gmail_extra">(You could make a script to automate this, if readline turns out to be unacceptable for some reason:</div><div class="gmail_extra"><br></div><div class="gmail_extra">    #! /bin/sh</div><div class="gmail_extra">    tty=&quot;$(stty -g)&quot;</div><div class="gmail_extra">    python3 ${1+&quot;$@&quot;}</div><div class="gmail_extra">    rc=$?</div><div class="gmail_extra">    stty &quot;$tty&quot;</div><div class="gmail_extra">    exit $rc</div><div class="gmail_extra">)<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>