📄 stty.3
字号:
.\" SCCSID: @(#)stty.3 8.1 9/11/90.TH stty 3.SH Namestty, gtty \- set and get terminal state .SH Syntax.nf.B #include <sgtty.h>.sp.B stty(fd, buf).B int fd;.B struct sgttyb *buf;.sp.B gtty(fd, buf).B int fd;.B struct sgttyb *buf;.fi.SH Description.NXR "stty subroutine".NXA "stty subroutine" "ioctl system call".NXR "gtty subroutine".NXR "terminal" "setting state".NXR "terminal" "getting state"This interface has been superseded by .MS ioctl 2 ..PPThe.PN sttysubroutinesets the state of the terminal associated with.IR fd .The.PN gttysubroutineretrieves the state of the terminal associatedwith.IR fd .To set the state of a terminal the call must havewrite permission..PPThe.PN sttycall is actually ``ioctl(fd, TIOCSETP, buf)'', whilethe.PN gttycall is ``ioctl(fd, TIOCGETP, buf)''.See .MS ioctl 2and.MS tty 4for an explanation..SH Return ValuesIf the call is successful 0 is returned, otherwise \-1 isreturned and the global variable.I errnocontains the reason for the failure..SH See Alsoioctl(2), tty(4)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -