@@ -434,13 +434,13 @@ msgstr "如果打开终端时发生错误,则下层的 curses 库可能会导
434434msgid ""
435435"Return ``True`` if :func:`resize_term` would modify the window structure, "
436436"``False`` otherwise."
437- msgstr ""
437+ msgstr "如果 :func:`resize_term` 会修改窗口结构则返回 ``True``,否则返回 ``False``。 "
438438
439439#: ../../library/curses.rst:318
440440msgid ""
441441"Return ``True`` if :func:`endwin` has been called (that is, the curses "
442442"library has been deinitialized)."
443- msgstr ""
443+ msgstr "如果 :func:`endwin` 已经被调用(即 curses 库已经被撤销初始化则返回 ``True``。 "
444444
445445#: ../../library/curses.rst:324
446446msgid ""
@@ -452,34 +452,42 @@ msgid ""
452452"of the prefix ``b'M-'`` followed by the name of the corresponding ASCII "
453453"character."
454454msgstr ""
455+ "将编号为 *k* 的键名称作为字节串对象返回。 生成可打印 ASCII 字符的键名称就是键所对应的字符。 Ctrl-"
456+ "键组合的键名称则是一个两字节的字节串对象,它由插入符 (``b'^'``) 加对应的可打印 ASCII 字符组成。 Alt-键组合 (128--255)"
457+ " 的键名称则是由前缀 ``b'M-'`` 加对应的可打印 ASCII 字符组成的字节串对象。"
455458
456459#: ../../library/curses.rst:334
457460msgid ""
458461"Return the user's current line kill character as a one-byte bytes object. "
459462"Under Unix operating systems this is a property of the controlling tty of "
460463"the curses program, and is not set by the curses library itself."
461464msgstr ""
465+ "将用户的当前行删除字符以单字节字节串对象的形式返回。 在 Unix 操作系统下这是 curses 程序用来控制 tty 的属性,而不是由 curses "
466+ "库本身来设置的。"
462467
463468#: ../../library/curses.rst:341
464469msgid ""
465470"Return a bytes object containing the terminfo long name field describing the"
466471" current terminal. The maximum length of a verbose description is 128 "
467472"characters. It is defined only after the call to :func:`initscr`."
468473msgstr ""
474+ "返回一个字节串对象,其中包含描述当前终端的 terminfo 长名称字段。 详细描述的最大长度为 128 个字符。 它仅在调用 "
475+ ":func:`initscr` 之后才会被定义。"
469476
470477#: ../../library/curses.rst:348
471478msgid ""
472479"If *flag* is ``True``, allow 8-bit characters to be input. If *flag* is "
473480"``False``, allow only 7-bit chars."
474481msgstr ""
482+ "如果 *flag* 为 ``True``,则允许输入 8 比特位的字符。 如果 *flag* 为 ``False``,则只允许 7 比特位的字符。"
475483
476484#: ../../library/curses.rst:354
477485msgid ""
478486"Set the maximum time in milliseconds that can elapse between press and "
479487"release events in order for them to be recognized as a click, and return the"
480488" previous interval value. The default value is 200 msec, or one fifth of a "
481489"second."
482- msgstr ""
490+ msgstr "以毫秒为单位设置能够被识别为点击的按下和释放事件之间可以间隔的最长时间,并返回之前的间隔值。 默认值为 200 毫秒,即五分之一秒。 "
483491
484492#: ../../library/curses.rst:361
485493msgid ""
@@ -489,10 +497,13 @@ msgid ""
489497"previous value of the given window's mouse event mask. If this function is "
490498"never called, no mouse events are ever reported."
491499msgstr ""
500+ "设置要报告的鼠标事件,并返回一个元组 ``(availmask, oldmask)``。 *availmask* "
501+ "表明指定的鼠标事件中哪些可以被报告;当完全失败时将返回 ``0``。 *oldmask* 是给定窗口的鼠标事件之前的掩码值。 "
502+ "如果从未调用此函数,则不会报告任何鼠标事件。"
492503
493504#: ../../library/curses.rst:370
494505msgid "Sleep for *ms* milliseconds."
495- msgstr ""
506+ msgstr "休眠 *ms* 毫秒。 "
496507
497508#: ../../library/curses.rst:375
498509msgid ""
0 commit comments