@@ -68,6 +68,8 @@ msgid ""
6868"areas. Different terminals use widely differing codes, and often have their"
6969" own minor quirks."
7070msgstr ""
71+ "curses 库为基于文本的终端提供了独立于终端的屏幕绘制和键盘处理功能;这些终端包括 VT100,Linux "
72+ "控制台以及各种程序提供的模拟终端。显示终端支持各种控制代码以执行常见的操作,例如移动光标,滚动屏幕和擦除区域。不同的终端使用相差很大的代码,并且往往有自己的小怪癖。"
7173
7274#: ../../howto/curses.rst:28
7375msgid ""
@@ -79,6 +81,8 @@ msgid ""
7981"configurators that may have to run before any graphical support is "
8082"available."
8183msgstr ""
84+ "在普遍使用图形显示的世界中,人们可能会问“为什么自找要麻烦”?毕竟字符单元显示终端确实是一种过时的技术,但是在某些领域中,能够用它们做花哨的事情仍然很有价值。一个小众市场是在不运行"
85+ " X server 的小型或嵌入式 Unix 上。另一个是在提供图形支持之前,可能需要运行的工具,例如操作系统安装程序和内核配置程序。"
8286
8387#: ../../howto/curses.rst:36
8488msgid ""
@@ -92,6 +96,10 @@ msgid ""
9296" features, consider a user interface library such as `Urwid "
9397"<https://pypi.org/project/urwid/>`_."
9498msgstr ""
99+ "curses 库提供了相当基础的功能,为程序员提供了包含多个非重叠文本窗口的显示的抽象。窗口的内容可以通过多种方式更改---"
100+ "添加文本,擦除文本,更改其外观---以及curses库将确定需要向终端发送哪些控制代码以产生正确的输出。 "
101+ "curses并没有提供诸多用户界面概念,例如按钮,复选框或对话框。如果需要这些功能,请考虑用户界面库,例如 `Urwid "
102+ "<https://pypi.org/project/urwid/>`_ 。"
95103
96104#: ../../howto/curses.rst:46
97105msgid ""
@@ -105,6 +113,10 @@ msgid ""
105113"older versions of curses carried by some proprietary Unixes may not support "
106114"everything, though."
107115msgstr ""
116+ "curses 库最初是为BSD Unix 编写的。 后来 AT&T 的Unix System V 版本加入了许多增强功能和新功能。如今BSD "
117+ "curses已不再维护,被ncurses取代,ncurses是 AT&T 接口的开源实现。如果使用的是 Linux 或 FreeBSD "
118+ "等开源Unix,则系统几乎肯定会使用ncurses。由于大多数当前的商业Unix版本都基于System "
119+ "V代码,因此这里描述的所有功能可能都可用。但是,某些专有Unix所带来的较早版本的curses可能无法支持所有功能。"
108120
109121#: ../../howto/curses.rst:56
110122msgid ""
@@ -115,6 +127,10 @@ msgid ""
115127"API as curses but provides cursor-addressable text output and full support "
116128"for mouse and keyboard input."
117129msgstr ""
130+ "Windows 版本的 Python 不包含 :mod:`curses` 模块。提供了一个名为 `UniCurses "
131+ "<https://pypi.org/project/UniCurses>`_ 的移植版本。也可以尝试使用 Fredrik Lundh 编写 `the "
132+ "Console module <http://effbot.org/zone/console-"
133+ "index.htm>`_,它使用了与curses不相同的API,但提供了可光标定位的文本输出,完全支持鼠标和键盘输入。"
118134
119135#: ../../howto/curses.rst:66
120136msgid "The Python curses module"
0 commit comments