-
Notifications
You must be signed in to change notification settings - Fork 102
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
Have bug with chinese #59
Comments
This is a nasty one to track down. Could you attach the file reproducing the bug? I.e. I'd like to do |
`/Users/guang/.virtualenvs/python2.7/lib/python2.7/site-packages/pyte/screens.pyc in draw(self, char) IndexError: list assignment index out of range` I save to a file, when I stream.feed(open(...).read()), It's well . I see content is different will terminal, less some control char
|
May be I know the reason, Screen object size is not equal my terminal size. I set equal to my terminal size, It's Ok |
Ah, right. That could be the cause. Make sure the |
Ok, Thank you, It's a good project. https://github.com/jumpserver/jumpserver Because in terminal, user input is not the full command, the server return is.
I want to get ifconfig. So I use pyte do it. https://github.com/jumpserver/jumpserver/blob/master/connect.py#L138-L163 Thank you again |
Glad By the way, you can get rendered screen in |
遇到了类似的问题, 谷歌搜到这里了
|
Hi @hellorocky, could you give a bit more context? Have you checked the env. variables mentioned above? |
When output mix up with chinese and english will trigger a bug .
pyte version 0.5.2
The text was updated successfully, but these errors were encountered: