📄 stty.2
字号:
.th STTY II 12/15/74.sh NAMEstty \*- set mode of typewriter.sh SYNOPSIS(stty = 31.).br(file descriptor in r0).br.ft Bsys stty; arg.br.li....brarg: .byte ispeed, ospeed; .byte erase, kill; mode.s3.nfstty(fildes, arg)struct { char ispeed, ospeed; char erase, kill; int mode;} *arg;.fi.ft R.s3.sh DESCRIPTION.it Sttysets mode bits and character speeds for the typewriter whose file descriptoris passed in r0 (resp. is the first argument to the call).First, the system delays until the typewriter is quiescent.The input and output speeds are set from the first two bytesof the argument structureas indicated by the following table,which corresponds to thespeeds supported by the DH-11 interface.If DC-11, DL-11 or KL-11 interfaces are used,impossible speed changes are ignored..s3.lp +8 40 (hang up dataphone).lp +8 41 50 baud.lp +8 42 75 baud.lp +8 43 110 baud.lp +8 44 134.5 baud.lp +8 45 150 baud.lp +8 46 200 baud.lp +8 47 300 baud.lp +8 48 600 baud.lp +8 49 1200 baud.lp +8 410 1800 baud.lp +8 411 2400 baud.lp +8 412 4800 baud.lp +8 413 9600 baud.lp +8 414 External A.lp +8 415 External B.s3.i0In the current configuration,only 110, 150 and 300 baud are really supported on dial-up lines,in that the code conversion and line control required forIBM 2741's (134.5 baud)must be implemented by the user'sprogram,and the half-duplex line disciplinerequired for the 202 dataset (1200 baud)is not supplied..s3The next two characters of the argument structurespecify the erase and kill characters respectively.(Defaults are # and @.).s3The.it modecontains several bits which determine thesystem's treatment of the typewriter:.s3.lp +12 7100000 Select one of two algorithms for backspace delays.lp +12 7040000 Select one of two algorithms for form-feed and vertical-tab delays.lp +12 7030000 Select one of four algorithms for carriage-return delays.lp +12 7006000 Select one of four algorithms for tab delays.lp +12 7001400 Select one of four algorithms for new-line delays.lp +12 7000200 even parity allowed on input (e. g. for M37s).lp +12 7000100 odd parity allowed on input.lp +12 7000040 raw mode: wake up on all characters.lp +12 7000020 map CR into LF; echo LF or CR as CR-LF.lp +12 7000010 echo (full duplex).lp +12 7000004 map upper case to lower on input (e. g. M33).lp +12 7000002 echo and print tabs as spaces.lp +12 7000001 hang up (remove `data terminal ready,' lead CD) after last close.i0.s3The delay bits specify how longtransmission stops to allow for mechanical or other movementwhen certain characters are sent to the terminal.In all cases a value of 0 indicates no delay..s3Backspace delays are currently ignored but willbe used for Terminet 300's..s3If a form-feed/vertical tab delay is specified,it lasts for about 2 seconds..s3Carriage-return delay type 1 lasts about .08 secondsand is suitable for the Terminet 300.Delay type 2 lasts about .16 seconds and is suitablefor the VT05 and the TI 700.Delay type 3 is unimplemented and is 0..s3New-line delay type 1 is dependent on the current columnand is tuned for Teletype model 37's.Type 2 is useful for the VT05 and is about .10 seconds.Type 3 is unimplemented and is 0..s3Tab delay type 1 is dependent on the amount of movementand is tuned to the Teletype model37.Other types are unimplemented and are 0..s3Characters with the wrong parity, as determined by bits 200 and100, are ignored..s3In raw mode, every character is passed immediatelyto the program without waiting until a full line has been typed.No erase or kill processing is done;the end-of-file character (EOT), the interrupt character(DEL) and the quit character (FS) are not treated specially..s3Mode 020 causes input carriage returns to be turned intonew-lines;input of either CR or LF causes LF-CR both tobe echoed(used for GE TermiNet 300's and other terminals without the newline function)..s3The hangup mode 01causes the line to be disconnectedwhen the last process with the line open closes it or terminates.It is useful when a port is to be used for some specialpurpose;for example, if it is associatedwith an ACU used to place outgoing calls..s3This system call is also used with certain specialfiles other than typewriters,but since none of them are part of the standard systemthe specifications will not be given..sh "SEE ALSO"stty (I), gtty (II).sh DIAGNOSTICSThe error bit(c-bit) is set if the file descriptor does not refer to a typewriter.From C, a negative value indicates an error.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -