免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4368 | 回复: 9
打印 上一主题 下一主题

请教:[ stty min 0 time 2 ] 什么意思? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-05-22 11:56 |只看该作者 |倒序浏览
如题,

Thanks!

论坛徽章:
0
2 [报告]
发表于 2003-05-22 20:31 |只看该作者

请教:[ stty min 0 time 2 ] 什么意思?

设置stty的min和time两个属性的值。

look : stty -a

论坛徽章:
0
3 [报告]
发表于 2003-05-23 08:57 |只看该作者

请教:[ stty min 0 time 2 ] 什么意思?

我在 AIX v5 环境下,
man stty 或 stty -a 都没有任何 min 与 time 的相关信息,

哪位大侠帮忙把相关的帮助文档给贴出来?

Thanks!

论坛徽章:
0
4 [报告]
发表于 2003-05-26 13:59 |只看该作者

请教:[ stty min 0 time 2 ] 什么意思?

各位,Help me!

论坛徽章:
0
5 [报告]
发表于 2003-05-26 16:01 |只看该作者

请教:[ stty min 0 time 2 ] 什么意思?

俺这还没AIX5.

最好你把shell前后语句都帖出来,看看能不能帮你.

论坛徽章:
0
6 [报告]
发表于 2003-05-26 16:21 |只看该作者

请教:[ stty min 0 time 2 ] 什么意思?

各位,我期待着
    任意版本的帮助文档,
    只要能解答问题就行。

Thanks!

论坛徽章:
0
7 [报告]
发表于 2003-05-26 18:50 |只看该作者

请教:[ stty min 0 time 2 ] 什么意思?

os: linux
man stty content


   Special settings:
       N      set the input and output speeds to N bauds

       * cols N        tell the kernel that the  terminal  has  N
       columns * columns N     same as cols N

       ispeed N
              set the input speed to N

       * line N        use line discipline N

       min N  with  -icanon,  set N characters minimum for a com-
              pleted read

       ospeed N
              set the output speed to N

       * rows N        tell the kernel that the  terminal  has  N
       rows  * size          print the number of rows and columns
       according to the kernel

       speed  print the terminal speed

       time N with -icanon, set read timeout of  N  tenths  of  a
              second

论坛徽章:
0
8 [报告]
发表于 2003-05-26 18:51 |只看该作者

请教:[ stty min 0 time 2 ] 什么意思?

原帖由 "masher" 发表:
各位,我期待着
    任意版本的帮助文档,
    只要能解答问题就行。

Thanks!



STTY(1)          OpenBSD Reference Manual          STTY(1)

NAME
   stty - set the options for a terminal device interface

SYNOPSIS
   stty [-a | -e | -g] [-f file] [operands]

DESCRIPTION
   The stty utility sets or reports on terminal characteristics for the de-
   vice that is its standard input. If no options or operands are speci-
   fied, it reports the settings of a subset of characteristics as well as
   additional ones if they differ from their default values. Otherwise it
   modifies the terminal state according to the specified arguments. Some
   combinations of arguments are mutually exclusive on some terminal types.

   The options are as follows:

   -a   Display all the current settings for the terminal to standard
       output as per IEEE Std1003.2 (``POSIX.2'').

   ...


  Control characters

   control-character string
         Set control-character to string. If string is a single char-
         acter, the control character is set to that character. If
         string is the two character sequence `^-' or the string
         ``undef'' the control character is disabled (i.e., set to
         {_POSIX_VDISABLE}).

         Recognized control-characters:

            control-
            character  Subscript  Description
            _________  _________  _______________
            eof     VEOF     EOF character
            eol     VEOL     EOL character
            eol2     VEOL2    EOL2 character
            erase    VERASE    ERASE character
            werase    VWERASE   WERASE character
            intr     VINTR    INTR character
            kill     VKILL    KILL character
            quit     VQUIT    QUIT character
            susp     VSUSP    SUSP character
            start    VSTART    START character
            stop     VSTOP    STOP character
            dsusp    VDSUSP    DSUSP character
            lnext    VLNEXT    LNEXT character
            reprint   VREPRINT   REPRINT character
            status    VSTATUS   STATUS character

   min number

   time number

         Set the value of min or time to number. MIN and TIME are
         used in non-canonical mode input processing (-icanon).

  Combination modes

   saved settings

   ...

论坛徽章:
0
9 [报告]
发表于 2003-05-27 09:18 |只看该作者

请教:[ stty min 0 time 2 ] 什么意思?

Thanks everybody above!

论坛徽章:
0
10 [报告]
发表于 2003-05-27 21:19 |只看该作者

请教:[ stty min 0 time 2 ] 什么意思?

FreeBSD out:

$ stty -g
gfmt1:cflag=4b00:iflag=2b02:lflag=200005cbflag=3:discard=f:dsusp=19:eof=4:eol=ff:eol2=ff:erase=7f:erase2=8:intr=3:kill=15:lnext=16:min=1:quit=1c:reprint=12:start=11:status=14:stop=13:susp=1a:time=1:werase=17:ispeed=38400speed=38400

如果执行stty min 0 time 2,那么min和time的值就改了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP