display problem in terminal for version 1.11.x
An artefact if printed at each prompt:
SESSION_SXM [1]: [2 q
This occurs (at least) on debian8 with some terminal emulators:
mate-terminal, roxterm, sakura, gnome-terminal 3.14.1, konsole 2.14.2
and not some others:
xterm, rxvt, terminology
.
Remotely (ssh) from a debian 10 (recent term emulators) it's working fine.
terminology gives the following errors:
ERR<4573>:termpty termptyesc.c:1297 _handle_esc_xterm() unhandled xterm esc 11
ERR<4573>:termpty termptyesc.c:1040 _handle_esc_csi() unhandled CSI 't': 22;0;0t
ERR<4573>:termpty termptyesc.c:1040 _handle_esc_csi() unhandled CSI 'q': >q
...
ERR<4573>:termpty termptyesc.c:1040 _handle_esc_csi() unhandled CSI 'q': 2 q
This may come from CSI support by prompt-toolkit
but not by terminal emulators.
https://github.com/prompt-toolkit/python-prompt-toolkit/blob/master/CHANGELOG
Using prompt-toolkit
and ptpython
version from 1.10.x seems to fix the problem
pip install prompt-toolkit==3.0.30 ptpython==3.0.20