Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

w3m crashes in pyte #126

Open
ruapotato opened this issue Feb 26, 2019 · 1 comment
Open

w3m crashes in pyte #126

ruapotato opened this issue Feb 26, 2019 · 1 comment

Comments

@ruapotato
Copy link

When you use any key in w3m running through pyte I see the following crash:

Exception in thread Thread-204: News GmaSearch Images Maps Play YouTube News Gma
Traceback (most recent call last):      Web History | Settings | Sign in        
  File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner       
    self.run()                      Goog                                    Goog
  File "/usr/lib64/python3.6/threading.py", line 864, in run                    
    self._target(*self._args, **self._kwargs)      [                            
  File "<string>", line 109, in bashScreenRef                                   
  File "/usr/lib/python3.6/site-packages/pyte/streams.py", line 392, in feedh][I
    super(ByteStream, self).feed(data)                                          
  File "/usr/lib/python3.6/site-packages/pyte/streams.py", line 196, in feedess 
    taking_plain_text = send(data[offset:offset + 1])                           
  File "/usr/lib/python3.6/site-packages/pyte/streams.py", line 323, in _parser_fsm                                                                             
    csi_dispatch[char](*params, private=True)                                   
TypeError: set_margins() got an unexpected keyword argument 'private' 

Posible fix:
ruapotato@2f91353

I also see a crash looking at config files on extream switches.
Possible workaground:
ruapotato@b24f60d

@superbobry
Copy link
Collaborator

This is likely because your TERM is xterm* instead of vt220 or linux. Which TERM variable are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants