emer/leabra

stty behaviour, pyleabra

anargam opened this issue · 1 comments

I compiled the pyleabra binary from the current version on the ra25.py example. I get a seemingly working GUI and a Python REPL. After quitting both (and confirming that no left-behind process is running), my bash terminal no longer echoes characters typed. Reproduced in X-forwarded sessions on two separate systems. ra25 compiled from go source does not yield this behaviour.

(stty sane resets to normal behaviour, but it seems noteworthy.)

[edit: Python 3.8.5, go 1.13]

I get this on crashes from python but not from regular exits. probably there is something that needs to be called on exit -- possibly-helpful google result:

https://stackoverflow.com/questions/7938402/terminal-in-broken-state-invisible-text-no-echo-after-exit-during-input

I will also look at how the actual python exe exits -- likely that has the proper fix -- python interactive mode is presumably setting something.