在终端中创建两个单独的窗口 [英] Create two separate windows in terminal

查看:39
本文介绍了在终端中创建两个单独的窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想象一个终端.该终端内有两个窗口.一个在上面,一个在下面.上面的要大得多.最上面的一个接收异步更新.底部的一个用于用户输入.

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.

它的工作方式与 vim 几乎完全相同——文本编辑器.

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

我是用 Python 写的.我猜你会通过使用 curses 来做到这一点,但我不确定这是否可能.

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.

推荐答案

是的,您想要 ncurses的python标准库实现为此.

这篇关于在终端中创建两个单独的窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆