aboutsummaryrefslogtreecommitdiff
path: root/bin/stty
Commit message (Collapse)AuthorAgeFilesLines
* Make stty(1) use tab0 and tab3 to handle tab completion.Ed Schouten2008-08-233-8/+23
| | | | | | | | | | | | | After the MPSAFE TTY import, we have support for the TAB0 and TAB3 flags to handle tab expansion, while we only used to support OXTABS. Switch stty(1) to use tab0 and tab3 to print whether tab expansion is turned on or off. Implement the oxtabs and tabs switches by setting the appropriate TABx value. Even though POSIX only lists this as being XSI, we'd better follow it. Notes: svn path=/head/; revision=182052
* Mark functions as __dead2 in order to help the LLVM static checkerColin Percival2008-08-041-1/+1
| | | | | | | | | | understand which code paths aren't possible. This commit eliminates 117 false positive bug reports of the form "allocate memory; error out if pointer is NULL; use pointer". Notes: svn path=/head/; revision=181269
* Remove OTTYDISC, NETLDISC and NTTYDISC definitions.Ed Schouten2008-07-161-5/+0
| | | | | | | | | | | | | | | | | | | When I ported most applications away from <sgtty.h>, I noticed none of them were actually using these definitions. I kept them in place, because I didn't want to touch tools like pstat(8) and stty(1). In preparation for the MPSAFE TTY layer, remove these definitions. This doesn't have any impact with respect to binary compatibility (see tty_conf.c). We couldn now add an #error to <sys/ioctl_compat.h> when included outside the kernel. Unfortunately, kdump's mkioctls includes this file unconditionally. Approved by: philip (mentor) Notes: svn path=/head/; revision=180559
* Fix: printed output flags (onocr) and (onlret) same as oxtabsAndrey A. Chernov2005-05-261-2/+2
| | | | | | | | PR: 81256 Submitted by: Arseny Nasokin <tarc@tarc.po.cs.msu.su> Notes: svn path=/head/; revision=146636
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-02-092-4/+5
| | | | Notes: svn path=/head/; revision=141578
* Add the new standard EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-161-1/+1
| | | | | | | Sort standard sections in the (documented) preferred order. Notes: svn path=/head/; revision=140353
* /*- or .\"- or #- to begin license clauses.Warner Losh2005-01-101-0/+1
| | | | Notes: svn path=/head/; revision=139969
* Back out recent TTYDEF_LFLAG_ECHO invention.Andrey A. Chernov2004-11-061-1/+1
| | | | | | | | This change is NOP, because TTYDEF_LFLAG = TTYDEF_LFLAG_ECHO now, but to minimize diffs with other BSDs. Notes: svn path=/head/; revision=137314
* stty sane should set the echo bits.Poul-Henning Kamp2004-11-021-1/+1
| | | | | | | | | PR: 73423 Submitted by: Michiel Boland <michiel@boland.org> Overlooked by: phk Notes: svn path=/head/; revision=137131
* Deal with double whitespace.Ruslan Ermilov2004-07-031-1/+1
| | | | Notes: svn path=/head/; revision=131505
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-12/+23
| | | | Notes: svn path=/head/; revision=131484
* Remove clause 3 from the UCB licenses.Mark Murray2004-04-0610-40/+0
| | | | | | | OK'ed by: imp, core Notes: svn path=/head/; revision=127958
* Fix format warning. This is WARNS=9, std=c99 clean on i386.Mark Murray2003-05-031-1/+1
| | | | Notes: svn path=/head/; revision=114576
* Quiet warnings about copyright[].David E. O'Brien2003-05-011-2/+2
| | | | Notes: svn path=/head/; revision=114433
* Consistently use FBSDIDDavid E. O'Brien2002-06-307-15/+14
| | | | Notes: svn path=/head/; revision=99110
* o __P has been reovedWarner Losh2002-02-028-108/+66
| | | | | | | | | | | | | | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. o Change int foo() { ... to int foo(void) { ... Notes: svn path=/head/; revision=90111
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyDavid E. O'Brien2001-12-041-2/+0
| | | | | | | | | set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87323
* Note that stty is a utility and not... err... a program....Brian Feldman2001-11-291-1/+1
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=87094
* Stty is a program, not a function.Brian Feldman2001-11-291-1/+1
| | | | Notes: svn path=/head/; revision=87083
* Implement `stty ek` as documented.Dima Dorfman2001-08-231-0/+12
| | | | | | | | PR: 24063 Submitted by: Seth Kingsley <sethk@osd.bsdi.com> Notes: svn path=/head/; revision=82237
* mdoc(7) police: utilize the new .Ex macro.Ruslan Ermilov2001-08-151-3/+1
| | | | Notes: svn path=/head/; revision=81687
* mdoc(7) police: s/BSD/.Bx/ where appropriate.Ruslan Ermilov2001-08-141-1/+1
| | | | Notes: svn path=/head/; revision=81622
* mdoc(7) police: join split punctuation to macro calls.Ruslan Ermilov2001-08-101-2/+2
| | | | Notes: svn path=/head/; revision=81462
* WARNS= -> WARNS?=Dima Dorfman2001-06-221-1/+1
| | | | | | | Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=78624
* Silence WARNS=2 and BDECFLAGS on alpha and i386Kris Kennaway2001-05-202-2/+4
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=76882
* BDECFLAGS cleanupKris Kennaway2001-05-187-23/+32
| | | | Notes: svn path=/head/; revision=76810
* implement OCRNL, ONOCR, and ONLRETAssar Westerlund2001-03-043-0/+19
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=73421
* Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.Ruslan Ermilov2001-02-281-1/+1
| | | | Notes: svn path=/head/; revision=73233
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-1/+1
| | | | Notes: svn path=/head/; revision=71895
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-151-18/+18
| | | | Notes: svn path=/head/; revision=70056
* Add support for an "erase2" so that both ^H and DEL can be usedJordan K. Hubbard2000-11-282-1/+4
| | | | | | | | | for backspacing. Submitted By: Rui Pedro Mendes Salgueiro <rps@mat.uc.pt> Notes: svn path=/head/; revision=69321
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68935
* Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-101-4/+2
| | | | Notes: svn path=/head/; revision=68575
* Fix warn formatAndrey A. Chernov2000-04-301-1/+1
| | | | | | | Pointed-by: bde Notes: svn path=/head/; revision=59790
* Back out all drainwait changes. It is enough controllable via sysctl orAndrey A. Chernov2000-04-307-55/+17
| | | | | | | | | | comcontrol, having it in stty cause too many problems with existing drivers and tty access permissings of non-superuser. Asked-by: bde Notes: svn path=/head/; revision=59788
* gfmt: set drainwait only if changedAndrey A. Chernov2000-04-301-2/+4
| | | | | | | It allows to restore tty state without a warning for non-superuser Notes: svn path=/head/; revision=59787
* Describe drainwaitAndrey A. Chernov2000-04-271-0/+2
| | | | Notes: svn path=/head/; revision=59718
* part of gfmt really changed commitAndrey A. Chernov2000-04-271-1/+1
| | | | Notes: svn path=/head/; revision=59716
* gfmt: set 'changed' flags only if something really changed.Andrey A. Chernov2000-04-272-7/+14
| | | | Notes: svn path=/head/; revision=59715
* Add ability to manipulate with drain wait timeAndrey A. Chernov2000-04-276-15/+42
| | | | Notes: svn path=/head/; revision=59714
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-2/+4
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57663
* Don't report the tablet line discipline, it "doesn't happen (TM)"Peter Wemm2000-01-291-3/+0
| | | | Notes: svn path=/head/; revision=56853
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2711-11/+11
| | | | Notes: svn path=/head/; revision=50471
* Various spelling/formatting changes.Kris Kennaway1999-05-081-3/+3
| | | | | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org> Notes: svn path=/head/; revision=46684
* Fixed printf format errors.Bruce Evans1998-06-282-5/+7
| | | | Notes: svn path=/head/; revision=37230
* Correct description of -crtscts.Joseph Koshy1998-06-031-2/+2
| | | | | | | | PR: 6836 Submitted by: Andrew <andrew@ugh.net.au> Notes: svn path=/head/; revision=36599
* Correct use of .Nm. Add rcsid.Philippe Charnier1998-05-187-25/+39
| | | | Notes: svn path=/head/; revision=36152
* Merge from OpenBSD:Eivind Eklund1997-12-121-3/+5
| | | | | | | | | | >sprintf -> snprintf paranoia Obtainted from: OpenBSD src/bin/stty/print.c v1.5 by Todd Miller <millert@openbsd.org> Notes: svn path=/head/; revision=31686
* Correct confusing error message when called as 'stty -sane'.Steve Price1997-08-241-5/+8
| | | | | | | PR: bin/3573 Notes: svn path=/head/; revision=28642
* Typo in usage string. Looks like the man page now.Philippe Charnier1997-06-061-2/+2
| | | | Notes: svn path=/head/; revision=26468