prompt-toolkit / ptpython

A better Python REPL
BSD 3-Clause "New" or "Revised" License
5.16k stars 278 forks source link

suspend SIGTSTP #165

Open FxIII opened 7 years ago

FxIII commented 7 years ago

suspending a running ptpython somehow messed up the newline for the terminal: when shell input reaches the end of the line the subsequent output si written in the same line. if I recover ptpython and exit the terminal works as expected. probably there is some sort of cleanup and recover need to be done in SIGSTP/SIGCONT.

jonathanslenders commented 7 years ago

Hi @FxIII,

Thanks for pointing out! This is a bug indeed. I'll try to fix it - shouldn't be too hard.