Create two separate windows in terminal

喜夏-厌秋 提交于 2019-12-11 07:09:55

问题


Picture a terminal. There are two windows inside that terminal. One on top, one on bottom. The top one is much bigger. The top one receives asynchronous updates. The bottom one is for user input.

It would work almost exactly the same as vim - the text editor.

I'm writing this in Python. I'm guessing you would do this by using curses, but I'm not sure if it's possible.


回答1:


Yes, you want the python standard library implementation of ncurses for this.




回答2:


http://docs.python.org/library/curses.html

Yes, curses + some code that will do parallel stuff



来源:https://stackoverflow.com/questions/2639853/create-two-separate-windows-in-terminal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!