制作一个用Python编写的终端服务器

huangapple go评论79阅读模式
英文:

Making a Terminal Server in Python

问题

我工作的公司多年来一直在使用一个终端软件,我们使用Anzio Lite(使用Telnet)连接到它。这个软件叫做OMNI,由ACCEO Solutions开发,它在所有特许经营店中都是默认的。这个软件是35年前创建的,我的用户非常习惯使用这种类型的软件,我正在考虑用Python制作类似的工具。

我想知道是否有办法用Python制作类似的软件?

制作一个用Python编写的终端服务器

英文:

The company I work for has been using a terminal software that we connect to using Anzio Lite (using Telnet) for many years. This software is called OMNI by ACCEO Solutions and is not going anywhere and is the default in all of the franchises. This was created 35 years ago and my users are quite used to working with this sort of software and I was thinking of making something similar for some tools.

I'd like to know if there is a way to make software like it in python?

制作一个用Python编写的终端服务器

答案1

得分: 1

有现代的Python库可以创建完整的TUI(文本用户界面)应用程序。

其中最完整的是"textual" https://textual.textualize.io/ - 还有我的自己的"terminedia",可以进行应用程序开发 - 但目前对于结构化应用程序或文档化要少得多 - https://pypi.org/project/terminedia/

请注意,"终端仿真器"本身是执行"telnet"(或等效命令)的程序 - 它必须支持用于更改文本颜色、定位光标等的控制序列...通常称为"ANSI控制序列"。带有TUI的程序然后可以在任何服务器上执行,界面应该可以正常工作。

英文:

There are modern Python libraries for creating full-fledged "TUI" (text user interface) applications.

The most complete of which is "textual" https://textual.textualize.io/ - and there is my own "terminedia" which allows application development - but is far less ready for structured applications or documented at the moment - https://pypi.org/project/terminedia/

Note that the "terminal emulator" itself is the program where "telnet" (or equivalent) is executed - and it has to support control sequences for changing text color, positioning the cursor, etc... usually known as "ANSI control sequences". The program with a TUI can then be executed in any server, and the interface should just work.

huangapple
  • 本文由 发表于 2023年8月4日 21:38:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/76836470.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定