Closed anazmy closed 7 years ago
Thanks! Could you also share the value of $TERM in the environment of the mc
process?
It is TERM=xterm
We do support some xterm extensions in pyte
, but the contract is that pyte
implements TERM=linux
. Could you please verify that this quirk also happens with TERM=linux
?
It doesn't happen with TERM=linux
but I think a side effect of using term=linux is that I cant capture mouse clicks
If you need to use TERM=xterm
then subclass pyte.Screen
and override set_margins
e.g. like this
class CustomScreen(pyte.Screen):
def set_margins(self, *args, **kwargs):
kwargs.pop("private", None)
return super(CustomScreen, self).set_margins(*args, **kwargs)
testing latest master branch and python 2.7
Using
When I exit out of a midnight commander screen
mc
I get an error reported by stream.feed(buf) , where buf is the below :