Python terminfo参数化字符串中的延迟

Python terminfo参数化字符串中的延迟,python,terminal,ncurses,terminfo,termcap,Python,Terminal,Ncurses,Terminfo,Termcap,在terminfo的手册页中,提到了在编码中指定延迟的$,在ms中,其角括号内是精度最多为小数点后一位的a数字 通过以下python脚本,我确认$的语法非常明确: A delay in milliseconds may appear anywhere in a string capability, enclosed in $<..> brackets, as in el=\EK$<5>, and padding characters are

在terminfo的手册页中,提到了在编码中指定延迟的
$
,在
ms
中,其角括号内是精度最多为小数点后一位的a数字

通过以下python脚本,我确认
$的语法非常明确:

   A  delay  in  milliseconds  may appear anywhere in a string capability,
   enclosed in $<..> brackets, as in el=\EK$<5>,  and  padding  characters
   are supplied by tputs(3x) to provide this delay.

   o   The delay must be a number with at most one decimal place of preci-
       sion; it may be followed by suffixes "*" or "/" or both.

   o   A "*" indicates that the padding required is  proportional  to  the
       number  of lines affected by the operation, and the amount given is
       the per-affected-unit padding required.  (In  the  case  of  insert
       character, the factor is still the number of lines affected.)

       Normally, padding is advisory if the device has the xon capability;
       it is used for cost computation but does not trigger delays.

   o   A "/" suffix indicates that the padding is mandatory and  forces  a
       delay of the given number of milliseconds even on devices for which
       xon is present to indicate flow control.
以毫秒为单位的延迟可能出现在字符串功能中的任何位置,
用$括号括起来,如el=\EK$和填充字符
由TPUT(3x)提供,以提供此延迟。
o延迟必须是一个最多小数点后一位的数字-
锡安;它可以后跟后缀“*”或“/”或两者。
o A“*”表示所需的填充与
受操作影响的行数,给出的数量为
需要每个受影响单元的填充。(在插入的情况下)
字符,该因子仍然是受影响的行数。)
通常,如果设备具有xon功能,则填充是建议性的;
它用于成本计算,但不会触发延迟。
o后缀“/”表示填充是必需的,并强制
给定毫秒数的延迟,即使在
xon表示流量控制。
如果没有结尾,则语法非常明确:

   A  delay  in  milliseconds  may appear anywhere in a string capability,
   enclosed in $<..> brackets, as in el=\EK$<5>,  and  padding  characters
   are supplied by tputs(3x) to provide this delay.

   o   The delay must be a number with at most one decimal place of preci-
       sion; it may be followed by suffixes "*" or "/" or both.

   o   A "*" indicates that the padding required is  proportional  to  the
       number  of lines affected by the operation, and the amount given is
       the per-affected-unit padding required.  (In  the  case  of  insert
       character, the factor is still the number of lines affected.)

       Normally, padding is advisory if the device has the xon capability;
       it is used for cost computation but does not trigger delays.

   o   A "/" suffix indicates that the padding is mandatory and  forces  a
       delay of the given number of milliseconds even on devices for which
       xon is present to indicate flow control.
以毫秒为单位的延迟可能出现在字符串功能中的任何位置,
用$括号括起来,如el=\EK$和填充字符
由TPUT(3x)提供,以提供此延迟。
o延迟必须是一个最多小数点后一位的数字-
锡安;它可以后跟后缀“*”或“/”或两者。
o A“*”表示所需的填充与
受操作影响的行数,给出的数量为
需要每个受影响单元的填充。(在插入的情况下)
字符,该因子仍然是受影响的行数。)
通常,如果设备具有xon功能,则填充是建议性的;
它用于成本计算,但不会触发延迟。
o后缀“/”表示填充是必需的,并强制
给定毫秒数的延迟,即使在
xon表示流量控制。
如果没有结尾