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

仅当窗口大小改变的时候调整terminal的大小 #506

Merged
merged 1 commit into from
Mar 9, 2017

Conversation

pro711
Copy link
Contributor

@pro711 pro711 commented Mar 9, 2017

原来的UI在即使窗口大小没有改变的情况下也会每隔500ms调用 curses.resizeterm, 致使 ncurses 重绘整个窗口,导致终端历史被刷屏,并且增加终端的 CPU 占用率。这个 PR 修正了这个问题。

@darknessomi darknessomi merged commit f1a5a42 into darknessomi:master Mar 9, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants