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

How can I modify the cols rows in CreateShellStream according to the size of the front-end terminal? #1252

Open
zengnanhua opened this issue Nov 27, 2023 · 8 comments

Comments

@zengnanhua
Copy link

How can I modify the cols rows in CreateShellStream according to the size of the front-end terminal?

@scott-xu
Copy link
Collaborator

Your question is out of SSH.NET's scope.

@scott-xu scott-xu closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2023
@Rob-Hague
Copy link
Collaborator

@zengnanhua By "front-end terminal", are you referring to the console instance of your app? Or otherwise could you clarify?

@scott-xu Please consider providing a more informative explanation when closing issues.

@scott-xu
Copy link
Collaborator

@zengnanhua 如果前台的长度和宽度是绝对值,那么可以根据字体大小自行计算最多可以容纳多少行/列的字符。

@zengnanhua
Copy link
Author

@scott-xu 怎么动态变化 CreateShellStream创建完 就不能更改了

@scott-xu
Copy link
Collaborator

scott-xu commented Dec 6, 2023

目前是不能修改的。建议关闭后重新创建。 @zengnanhua

@zengnanhua
Copy link
Author

重新创建 环境就不一样了 比如到cd 到了某个文件夹 ,请问一下有没有其他方式

@zengnanhua
Copy link
Author

python 这个包(paramiko)有 worker.chan.resize_pty(*resize) 这样的一个方法 ,,不知道他怎么实现的

@scott-xu
Copy link
Collaborator

scott-xu commented Dec 7, 2023

Duplicate with issue #1061 (PR #1062)
User wants to change window dimensions after shell creation.
Sorry I shouldn't close this issue.
Would you mind help reopen it? @WojciechNagorski @drieseng

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

4 participants