Penguin
Annotated edit history of stty(1) version 2, including all changes. View license author blame.
Rev Author # Line
1 perry 1 STTY
2 !!!STTY
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 AUTHOR
7 REPORTING BUGS
8 COPYRIGHT
9 SEE ALSO
10 ----
11 !!NAME
12
13
14 stty - change and print terminal line settings
15 !!SYNOPSIS
16
17
18 __stty__ [[''-F DEVICE''] [[''--file=DEVICE'']
19 [[''SETTING'']...__
20 stty__ [[''-F DEVICE''] [[''--file=DEVICE'']
21 [[''-a|--all'']__
22 stty__ [[''-F DEVICE''] [[''--file=DEVICE'']
23 [[''-g|--save'']
24 !!DESCRIPTION
25
26
27 Print or change terminal characteristics.
28
29
30 __-a__, __--all__
31
32
33 print all current settings in human-readable
34 form
35
36
37 __-g__, __--save__
38
39
40 print all current settings in a stty-readable
41 form
42
43
44 __-F__, __--file__=''DEVICE''
45
46
47 open and use the specified DEVICE instead of
48 stdin
49
50
51 __--help__
52
53
54 display this help and exit
55
56
57 __--version__
58
59
60 output version information and exit
61
62
63 Optional - before SETTING indicates negation. An * marks
64 non-POSIX settings. The underlying system defines which
65 settings are available.
66
67
68 __Special characters:__
69
70
71 * dsusp CHAR
72
73
74 CHAR will send a terminal stop signal once input
75 flushed
76
77
78 eof CHAR
79
80
81 CHAR will send an end of file (terminate the
82 input)
83
84
85 eol CHAR
86
87
88 CHAR will end the line
89
90
91 * eol2 CHAR
92
93
94 alternate CHAR for ending the line
95
96
97 erase CHAR
98
99
100 CHAR will erase the last character typed
101
102
103 intr CHAR
104
105
106 CHAR will send an interrupt signal
107
108
109 kill CHAR
110
111
112 CHAR will erase the current line
113
114
115 * lnext CHAR
116
117
118 CHAR will enter the next character quoted
119
120
121 quit CHAR
122
123
124 CHAR will send a quit signal
125
126
127 * rprnt CHAR
128
129
130 CHAR will redraw the current line
131
132
133 start CHAR
134
135
136 CHAR will restart the output after stopping it
137
138
139 stop CHAR
140
141
142 CHAR will stop the output
143
144
145 susp CHAR
146
147
148 CHAR will send a terminal stop signal
149
150
151 * swtch CHAR
152
153
154 CHAR will switch to a different shell layer
155
156
157 * werase CHAR
158
159
160 CHAR will erase the last word typed
161
162
163 __Special settings:__
164
165
166 N
167
168
169 set the input and output speeds to N bauds
170
171
172 * cols N
173
174
175 tell the kernel that the terminal has N columns
176
177
178 * columns N
179
180
181 same as cols N
182
183
184 ispeed N
185
186
187 set the input speed to N
188
189
190 * line N
191
192
193 use line discipline N
194
195
196 min N
197
198
199 with __-icanon__, set N characters minimum for a
200 completed read
201
202
203 ospeed N
204
205
206 set the output speed to N
207
208
209 * rows N
210
211
212 tell the kernel that the terminal has N rows
213
214
215 * size
216
217
218 print the number of rows and columns according to the
219 kernel
220
221
222 speed
223
224
225 print the terminal speed
226
227
228 time N
229
230
231 with __-icanon__, set read timeout of N tenths of a
232 second
233
234
235 __Control settings:__
236
237
238 [[-]clocal
239
240
241 disable modem control signals
242
243
244 [[-]cread
245
246
247 allow input to be received
248
249
250 * [[-]crtscts
251
252
253 enable RTS/CTS handshaking
254
255
256 csN
257
258
259 set character size to N bits, N in [[5..8]
260
261
262 [[-]cstopb
263
264
265 use two stop bits per character (one with `-')
266
267
268 [[-]hup
269
270
271 send a hangup signal when the last process closes the
272 tty
273
274
275 [[-]hupcl
276
277
278 same as [[-]hup
279
280
281 [[-]parenb
282
283
284 generate parity bit in output and expect parity bit in
285 input
286
287
288 [[-]parodd
289
290
291 set odd parity (even with `-')
292
293
294 __Input settings:__
295
296
297 [[-]brkint
298
299
300 breaks cause an interrupt signal
301
302
303 [[-]icrnl
304
305
306 translate carriage return to newline
307
308
309 [[-]ignbrk
310
311
312 ignore break characters
313
314
315 [[-]igncr
316
317
318 ignore carriage return
319
320
321 [[-]ignpar
322
323
324 ignore characters with parity errors
325
326
327 * [[-]imaxbel
328
329
330 beep and do not flush a full input buffer on a
331 character
332
333
334 [[-]inlcr
335
336
337 translate newline to carriage return
338
339
340 [[-]inpck
341
342
343 enable input parity checking
344
345
346 [[-]istrip
347
348
349 clear high (8th) bit of input characters
350
351
352 * [[-]iuclc
353
354
355 translate uppercase characters to lowercase
356
357
358 * [[-]ixany
359
360
361 let any character restart output, not only start
362 character
363
364
365 [[-]ixoff
366
367
368 enable sending of start/stop characters
369
370
371 [[-]ixon
372
373
374 enable XON/XOFF flow control
375
376
377 [[-]parmrk
378
379
380 mark parity errors (with a 255-0-character
381 sequence)
382
383
384 [[-]tandem
385
386
387 same as [[-]ixoff
388
389
390 __Output settings:__
391
392
393 * bsN
394
395
396 backspace delay style, N in [[0..1]
397
398
399 * crN
400
401
402 carriage return delay style, N in [[0..3]
403
404
405 * ffN
406
407
408 form feed delay style, N in [[0..1]
409
410
411 * nlN
412
413
414 newline delay style, N in [[0..1]
415
416
417 * [[-]ocrnl
418
419
420 translate carriage return to newline
421
422
423 * [[-]ofdel
424
425
426 use delete characters for fill instead of null
427 characters
428
429
430 * [[-]ofill
431
432
433 use fill (padding) characters instead of timing for
434 delays
435
436
437 * [[-]olcuc
438
439
440 translate lowercase characters to uppercase
441
442
443 * [[-]onlcr
444
445
446 translate newline to carriage return-newline
447
448
449 * [[-]onlret
450
451
452 newline performs a carriage return
453
454
455 * [[-]onocr
456
457
458 do not print carriage returns in the first
459 column
460
461
462 [[-]opost
463
464
465 postprocess output
466
467
468 * tabN
469
470
471 horizontal tab delay style, N in [[0..3]
472
473
474 * tabs
475
476
477 same as tab0
478
479
480 * __-tabs__
481
482
483 same as tab3
484
485
486 * vtN
487
488
489 vertical tab delay style, N in [[0..1]
490
491
492 __Local settings:__
493
494
495 [[-]crterase
496
497
498 echo erase characters as
499 backspace-space-backspace
500
501
502 * crtkill
503
504
505 kill all line by obeying the echoprt and echoe
506 settings
507
508
509 * __-crtkill__
510
511
512 kill all line by obeying the echoctl and echok
513 settings
514
515
516 * [[-]ctlecho
517
518
519 echo control characters in hat notation (`^c')
520
521
522 [[-]echo
523
524
525 echo input characters
526
527
528 * [[-]echoctl
529
530
531 same as [[-]ctlecho
532
533
534 [[-]echoe
535
536
537 same as [[-]crterase
538
539
540 [[-]echok
541
542
543 echo a newline after a kill character
544
545
546 * [[-]echoke
547
548
549 same as [[-]crtkill
550
551
552 [[-]echonl
553
554
555 echo newline even if not echoing other
556 characters
557
558
559 * [[-]echoprt
560
561
562 echo erased characters backward, between `' and
563 '/'
564
565
566 [[-]icanon
567
568
569 enable erase, kill, werase, and rprnt special
570 characters
571
572
573 [[-]iexten
574
575
576 enable non-POSIX special characters
577
578
579 [[-]isig
580
581
582 enable interrupt, quit, and suspend special
583 characters
584
585
586 [[-]noflsh
587
588
589 disable flushing after interrupt and quit special
590 characters
591
592
593 * [[-]prterase
594
595
596 same as [[-]echoprt
597
598
599 * [[-]tostop
600
601
602 stop background jobs that try to write to the
603 terminal
604
605
606 * [[-]xcase
607
608
609 with icanon, escape with `' for uppercase
610 characters
611
612
613 __Combination settings:__
614
615
616 * [[-]LCASE
617
618
619 same as [[-]lcase
620
621
622 cbreak
623
624
625 same as __-icanon__
626
627
628 __-cbreak__
629
630
631 same as icanon
632
633
634 cooked
635
636
637 same as brkint ignpar istrip icrnl ixon opost isig icanon,
638 eof and eol characters to their default values
639
640
641 __-cooked__
642
643
644 same as raw
645
646
647 crt
648
649
650 same as echoe echoctl echoke
651
652
653 dec
654
655
656 same as echoe echoctl echoke __-ixany__ intr ^c erase
657 0177 kill ^u
658
659
660 * [[-]decctlq
661
662
663 same as [[-]ixany
664
665
666 ek
667
668
669 erase and kill characters to their default
670 values
671
672
673 evenp
674
675
676 same as parenb __-parodd__ cs7
677
678
679 __-evenp__
680
681
682 same as __-parenb__ cs8
683
684
685 * [[-]lcase
686
687
688 same as xcase iuclc olcuc
689
690
691 litout
692
693
694 same as __-parenb -istrip -opost__ cs8
695
696
697 __-litout__
698
699
700 same as parenb istrip opost cs7
701
702
703 nl
704
705
706 same as __-icrnl -onlcr__
707
708
709 __-nl__
710
711
712 same as icrnl __-inlcr -igncr__ onlcr __-ocrnl
713 -onlret__
714
715
716 oddp
717
718
719 same as parenb parodd cs7
720
721
722 __-oddp__
723
724
725 same as __-parenb__ cs8
726
727
728 [[-]parity
729
730
731 same as [[-]evenp
732
733
734 pass8
735
736
737 same as __-parenb -istrip__ cs8
738
739
740 __-pass8__
741
742
743 same as parenb istrip cs7
744
745
746 raw
747
748
749 same as __-ignbrk -brkint -ignpar -parmrk -inpck -istrip
750 -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany -imaxbel
751 -opost -isig -icanon -xcase__ min 1 time 0
752
753
754 __-raw__
755
756
757 same as cooked
758
759
760 sane
761
762
763 same as cread __-ignbrk__ brkint __-inlcr -igncr__
764 icrnl __-ixoff -iuclc -ixany__ imaxbel opost __-olcuc
765 -ocrnl__ onlcr __-onocr -onlret -ofill -ofdel__ nl0 cr0
766 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok
767 __-echonl -noflsh -xcase -tostop -echoprt__ echoctl
768 echoke, all special characters to their default
769 values.
770
771
772 Handle the tty line connected to standard input. Without
773 arguments, prints baud rate, line discipline, and deviations
774 from stty sane. In settings, CHAR is taken literally, or
775 coded as in ^c, 0x37, 0177 or 127; special values ^- or
776 undef used to disable special characters.
777 !!AUTHOR
778
779
2 perry 780 Written by David !MacKenzie.
1 perry 781 !!REPORTING BUGS
782
783
784 Report bugs to
785 !!COPYRIGHT
786
787
788 Copyright 2000 Free Software Foundation, Inc.
789 This is free software; see the source for copying
790 conditions. There is NO warranty; not even for
791 MERCHANTABILITY or FITNESS FOR A PARTICULAR
792 PURPOSE.
793 !!SEE ALSO
794
795
796 The full documentation for __stty__ is maintained as a
797 Texinfo manual. If the __info__ and __stty__ programs
798 are properly installed at your site, the
799 command
800
801
802 __info stty__
803
804
805 should give you access to the complete manual.
806 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.