aboutsummaryrefslogtreecommitdiff
path: root/coreutils-5.3.0-bin/man/cat1/stty.1.txt
blob: 6d1cebf5db945209002a509c1303a92d0e3b95ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
STTY(1)                  User Commands                  STTY(1)





NAME
       stty - change 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-POSIX settings.  The underlying system defines
       which settings are available.

   Special characters:
       * dsusp CHAR
              CHAR will send a terminal stop signal once  input
              flushed

       eof CHAR
              CHAR  will  send  an  end  of file (terminate the
              input)

       eol CHAR
              CHAR will end the line

       * eol2 CHAR
              alternate CHAR for ending the line

       erase CHAR
              CHAR will erase the last character typed

       intr CHAR
              CHAR will send an interrupt signal

       kill CHAR
              CHAR will erase the current line

       * lnext CHAR
              CHAR will enter the next character quoted

       quit CHAR
              CHAR will send a quit signal

       * rprnt CHAR
              CHAR will redraw the current line

       start CHAR
              CHAR will restart the output after stopping it

       stop CHAR
              CHAR will stop the output

       susp CHAR
              CHAR will send a terminal stop signal

       * swtch CHAR
              CHAR will switch to a different shell layer

       * werase CHAR
              CHAR will erase the last word typed

   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

   Control settings:
       [-]clocal
              disable modem control signals

       [-]cread
              allow input to be received

       * [-]crtscts
              enable RTS/CTS handshaking

       csN    set character size to N bits, N in [5..8]

       [-]cstopb
              use two stop bits per character (one with `-')

       [-]hup send a hangup signal when the last process closes
              the tty

       [-]hupcl
              same as [-]hup

       [-]parenb
              generate parity bit in output and  expect  parity
              bit in input

       [-]parodd
              set odd parity (even with `-')

   Input settings:
       [-]brkint
              breaks cause an interrupt signal

       [-]icrnl
              translate carriage return to newline

       [-]ignbrk
              ignore break characters

       [-]igncr
              ignore carriage return

       [-]ignpar
              ignore characters with parity errors

       * [-]imaxbel
              beep  and  do  not flush a full input buffer on a
              character

       [-]inlcr
              translate newline to carriage return

       [-]inpck
              enable input parity checking

       [-]istrip
              clear high (8th) bit of input characters

       * [-]iutf8
              assume input characters are UTF-8 encoded

       * [-]iuclc
              translate uppercase characters to lowercase

       * [-]ixany
              let any character restart output, not only  start
              character

       [-]ixoff
              enable sending of start/stop characters

       [-]ixon
              enable XON/XOFF flow control

       [-]parmrk
              mark   parity   errors  (with  a  255-0-character
              sequence)

       [-]tandem
              same as [-]ixoff

   Output settings:
       * bsN  backspace delay style, N in [0..1]

       * crN  carriage return delay style, N in [0..3]

       * ffN  form feed delay style, N in [0..1]

       * nlN  newline delay style, N in [0..1]

       * [-]ocrnl
              translate carriage return to newline

       * [-]ofdel
              use delete characters for fill  instead  of  null
              characters

       * [-]ofill
              use  fill  (padding) characters instead of timing
              for delays

       * [-]olcuc
              translate lowercase characters to uppercase

       * [-]onlcr
              translate newline to carriage return-newline

       * [-]onlret
              newline performs a carriage return

       * [-]onocr
              do not print carriage returns in the first column

       [-]opost
              postprocess output

       * tabN horizontal tab delay style, N in [0..3]

       * tabs same as tab0

       * -tabs
              same as tab3

       * vtN  vertical tab delay style, N in [0..1]

   Local settings:
       [-]crterase
              echo          erase         characters         as
              backspace-space-backspace

       * crtkill
              kill all line by obeying the  echoprt  and  echoe
              settings

       * -crtkill
              kill  all  line  by obeying the echoctl and echok
              settings

       * [-]ctlecho
              echo control characters in hat notation (`^c')

       [-]echo
              echo input characters

       * [-]echoctl
              same as [-]ctlecho

       [-]echoe
              same as [-]crterase

       [-]echok
              echo a newline after a kill character

       * [-]echoke
              same as [-]crtkill

       [-]echonl
              echo newline even if not echoing other characters

       * [-]echoprt
              echo  erased characters backward, between `\' and
              '/'

       [-]icanon
              enable erase, kill,  werase,  and  rprnt  special
              characters

       [-]iexten
              enable non-POSIX special characters

       [-]isig
              enable interrupt, quit, and suspend special char-
              acters

       [-]noflsh
              disable flushing after interrupt and quit special
              characters

       * [-]prterase
              same as [-]echoprt

       * [-]tostop
              stop  background  jobs  that  try to write to the
              terminal

       * [-]xcase
              with icanon, escape with `\' for uppercase  char-
              acters

   Combination settings:
       * [-]LCASE
              same as [-]lcase

       cbreak same as -icanon

       -cbreak
              same as icanon

       cooked same  as  brkint  ignpar  istrip icrnl ixon opost
              isig icanon, eof  and  eol  characters  to  their
              default values

       -cooked
              same as raw

       crt    same as echoe echoctl echoke

       dec    same as echoe echoctl echoke -ixany intr ^c erase
              0177 kill ^u

       * [-]decctlq
              same as [-]ixany

       ek     erase and kill characters to their default values

       evenp  same as parenb -parodd cs7

       -evenp same as -parenb cs8

       * [-]lcase
              same as xcase iuclc olcuc

       litout same as -parenb -istrip -opost cs8

       -litout
              same as parenb istrip opost cs7

       nl     same as -icrnl -onlcr

       -nl    same as icrnl -inlcr -igncr onlcr -ocrnl -onlret

       oddp   same as parenb parodd cs7

       -oddp  same as -parenb cs8

       [-]parity
              same as [-]evenp

       pass8  same as -parenb -istrip cs8

       -pass8 same as parenb istrip cs7

       raw    same  as  -ignbrk  -brkint -ignpar -parmrk -inpck
              -istrip  -inlcr  -igncr  -icrnl   -ixon    -ixoff
              -iuclc   -ixany  -imaxbel  -opost  -isig  -icanon
              -xcase min 1 time 0

       -raw   same as cooked

       sane   same as cread -ignbrk brkint -inlcr -igncr  icrnl
              -iutf8  -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,  all special characters to their
              default values.

       Handle the tty line connected to standard input.   With-
       out  arguments,  prints  baud rate, line discipline, and
       deviations from stty sane.  In settings, CHAR  is  taken
       literally, or coded as in ^c, 0x37, 0177 or 127; special
       values ^- or undef used to disable special characters.

AUTHOR
       Written by David MacKenzie.

REPORTING BUGS
       Report bugs to <bug-coreutils@gnu.org>.

COPYRIGHT
       Copyright (C) 2004 Free Software Foundation, Inc.
       This is free software; see the source for copying condi-
       tions.  There is NO warranty; not even for MERCHANTABIL-
       ITY or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSO
       The full documentation for stty is maintained as a  Tex-
       info manual.  If the info and stty programs are properly
       installed at your site, the command

              info stty

       should give you access to the complete manual.



stty 5.3.0               November 2004                  STTY(1)