Linux和Solaris下STTY设置比较

本文基址: http://blog.csdn.net/cugxueyu/archive/2007/12/07/1923166.aspx

stty(set tty,设置tty)命令用于检查和修改当前注册的终端的通信参数。UNIX系统为键盘的输入和终端的输出提供了重要的控制手段,可以通过stty命令对特定终端或通信线路设置选项。

可以在stty命令中使用-a查看当前注册终端的设置情况。

「stty -a」显示结果如下:

Ⅰ、*----------------------------------Linux------------------------------------*

   speed 9600 baud;
   rows 42; columns 104; line = 0;

   intr = ^C; quit = ^/; erase = ^?; kill = ^U;
   eof = ^D; eol = <undef>; eol2 = <undef>; start = ^Q;
   stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
   lnext = ^V; flush = ^O; min = 1; time = 0;

   -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts

   -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel

   opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0

   isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke

  *----------------------------------Linux------------------------------------*


Ⅱ、*----------------------------------Solaris----------------------------------*

   speed 9600 baud;
   rows = 24; columns = 80; ypixels = 0; xpixels = 0;
   csdata ?
   eucw 1:0:0:0, scrw 1:0:0:0
 
   intr = ^c; quit = ^/; erase = ^?; kill = ^u;
   eof = ^d; eol = <undef>; eol2 = <undef>; swtch = <undef>;
   start = ^q; stop = ^s; susp = ^z; dsusp = ^y;
   rprnt = ^r; flush = ^o; werase = ^w; lnext = ^v;

   -parenb -parodd cs8 -cstopb -hupcl cread -clocal -loblk -crtscts -crtsxoff -parext
  
   -ignbrk brkint -ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
   ixon -ixany -ixoff imaxbel
   isig icanon -xcase echo echoe echok -echonl -noflsh

   -tostop echoctl -echoprt echoke -defecho -flusho -pendin iexten
   opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3

  *----------------------------------Solaris---------------------------------* 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值