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

Can we set the default value of width to 300 or larger than 80 in get_pty function ? #1642

Open
zhutiemin opened this issue Mar 13, 2020 · 1 comment

Comments

@zhutiemin
Copy link

@open_only
def get_pty(
    self,
    term="vt100",
    **width=80,**
    height=24,
    width_pixels=0,
    height_pixels=0,
):

Why set the width to 80 , Can we set the larger than 80, such as 300 or other default value ?
I have some questions. when I run the command in the arm OS, I found that the recv result will change when the length of result exceed 80 .
Example:
use the channel to send command and recieve the result
ssh_client['channel'].send(cmd)
ssh_client['channel'].recv(65535)
when the length of result exceeded 80, the result will change:
“|” change to “|\r|”,“-v" change to ”-v\rv"

@zhutiemin
Copy link
Author

I want to change the width to 300, but I don't know what's the impact.

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

1 participant