码迷,mamicode.com
首页 > 其他好文 > 详细

stty--设置终端线

时间:2016-12-28 01:45:47      阅读:301      评论:0      收藏:0      [点我收藏+]

标签:tar   sig   eof   ica   ops   hang   lin   before   ble   

stty - chang and print terminal line settings

SYNOPSIS
stty [-F DEVICE | --file=DEVICE] [SETTING]...
stty [-F DEVICE | --file=DEVICE] [-a|--all]
stty [-F DEVICE | --file=DEVICE] [-g|--save]

DESCRIPTION
Print or change terminal characteristics.

-a, --all
print all current settings in human-readable form

-g, --save
print all current settings in a stty-readable form

-F, --file=DEVICE
open and use the specified DEVICE instead of stdin

--help display this help and exit

--version
output version information and exit

Optional - before SETTING indicates negation. An * marks non-POS
IX settings. The underlying system defines which settings are available.

可用stty设置波特率,设置串口回现等。

~$sudo stty -F /dev/tty0 -a
speed 38400 baud; rows 37; columns 100; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <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 -iutf8
-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

~$sudo stty -F /dev/tty0 echo

stty--设置终端线

标签:tar   sig   eof   ica   ops   hang   lin   before   ble   

原文地址:http://www.cnblogs.com/embedded-linux/p/6227851.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!