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

top命令在xterm显示不正常 #57

Closed
zhxiaohe opened this issue Apr 9, 2019 · 8 comments
Closed

top命令在xterm显示不正常 #57

zhxiaohe opened this issue Apr 9, 2019 · 8 comments

Comments

@zhxiaohe
Copy link

zhxiaohe commented Apr 9, 2019

您好,我现在遇到一个Linux top命令的问题
如图,我执行top命令 一开始是固定
116281554779502_ pic
然后过一会儿或者进程比较多xterm样式就飞了
image
请问这种情况有解决办法吗?

@huashengdun
Copy link
Owner

执行top命令前刷新下屏幕Ctrl+L会不会好点?

@zhxiaohe
Copy link
Author

跟ctrl+l没关系哈,感觉跟chan.recv(BUF_SIZE)取到的值有关,我在研究看看,感谢答复☺️

@huashengdun
Copy link
Owner

huashengdun commented Apr 10, 2019

top命令差不多每隔3秒实时刷新。
浏览器大小改变也会实时地改变channel_pty大小。
命令执行后的结果是跟channel_pty有关系的。
所以在执行top命令时,最好不要改变浏览器大小。

@zhxiaohe
Copy link
Author

木有啊,我就是打开浏览器执行top命令,其他什么都没动,今天还没来得及处理这问题,等我搞定了给您个反馈O(∩_∩)O谢谢up主

@huashengdun
Copy link
Owner

@zhxiaohe
xterm.js更新到了 3.12.2,我这边好像没有这个问题了。
你那边还存在这个问题吗?

@zhxiaohe
Copy link
Author

我还没升级,等我升级下看看哈

@huashengdun
Copy link
Owner

我这边测试下来似乎没这个问题了,可能跟xterm.js版本有关系。
先关闭这个issue。

@zhxiaohe
Copy link
Author

好的,辛苦up主

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