summaryrefslogtreecommitdiffstats
path: root/bin/stty
Commit message (Collapse)AuthorAgeFilesLines
* Make stty(1) use tab0 and tab3 to handle tab completion.ed2008-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.
* Mark functions as __dead2 in order to help the LLVM static checkercperciva2008-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".
* Remove OTTYDISC, NETLDISC and NTTYDISC definitions.ed2008-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)
* Fix: printed output flags (onocr) and (onlret) same as oxtabsache2005-05-261-2/+2
| | | | | PR: 81256 Submitted by: Arseny Nasokin <tarc@tarc.po.cs.msu.su>
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-092-4/+5
|
* Add the new standard EXIT STATUS section where appropriate.ru2005-01-161-1/+1
| | | | Sort standard sections in the (documented) preferred order.
* /*- or .\"- or #- to begin license clauses.imp2005-01-101-0/+1
|
* Back out recent TTYDEF_LFLAG_ECHO invention.ache2004-11-061-1/+1
| | | | | This change is NOP, because TTYDEF_LFLAG = TTYDEF_LFLAG_ECHO now, but to minimize diffs with other BSDs.
* stty sane should set the echo bits.phk2004-11-021-1/+1
| | | | | | PR: 73423 Submitted by: Michiel Boland <michiel@boland.org> Overlooked by: phk
* Deal with double whitespace.ru2004-07-031-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-12/+23
|
* Remove clause 3 from the UCB licenses.markm2004-04-0610-40/+0
| | | | OK'ed by: imp, core
* Fix format warning. This is WARNS=9, std=c99 clean on i386.markm2003-05-031-1/+1
|
* Quiet warnings about copyright[].obrien2003-05-011-2/+2
|
* Consistently use FBSDIDobrien2002-06-307-15/+14
|
* o __P has been reovedimp2002-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) { ...
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyobrien2001-12-041-2/+0
| | | | | | set WARNS=0. Reviewed by: mike
* Note that stty is a utility and not... err... a program....green2001-11-291-1/+1
| | | | Submitted by: ru
* Stty is a program, not a function.green2001-11-291-1/+1
|
* Implement `stty ek` as documented.dd2001-08-231-0/+12
| | | | | PR: 24063 Submitted by: Seth Kingsley <sethk@osd.bsdi.com>
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-151-3/+1
|
* mdoc(7) police: s/BSD/.Bx/ where appropriate.ru2001-08-141-1/+1
|
* mdoc(7) police: join split punctuation to macro calls.ru2001-08-101-2/+2
|
* WARNS= -> WARNS?=dd2001-06-221-1/+1
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Silence WARNS=2 and BDECFLAGS on alpha and i386kris2001-05-202-2/+4
| | | | MFC after: 1 week
* BDECFLAGS cleanupkris2001-05-187-23/+32
|
* implement OCRNL, ONOCR, and ONLRETassar2001-03-043-0/+19
| | | | Obtained from: NetBSD
* Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.ru2001-02-281-1/+1
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-151-18/+18
|
* Add support for an "erase2" so that both ^H and DEL can be usedjkh2000-11-282-1/+4
| | | | | | for backspacing. Submitted By: Rui Pedro Mendes Salgueiro <rps@mat.uc.pt>
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-4/+2
|
* Fix warn formatache2000-04-301-1/+1
| | | | Pointed-by: bde
* Back out all drainwait changes. It is enough controllable via sysctl orache2000-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
* gfmt: set drainwait only if changedache2000-04-301-2/+4
| | | | It allows to restore tty state without a warning for non-superuser
* Describe drainwaitache2000-04-271-0/+2
|
* part of gfmt really changed commitache2000-04-271-1/+1
|
* gfmt: set 'changed' flags only if something really changed.ache2000-04-272-7/+14
|
* Add ability to manipulate with drain wait timeache2000-04-276-15/+42
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-2/+4
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Don't report the tablet line discipline, it "doesn't happen (TM)"peter2000-01-291-3/+0
|
* $Id$ -> $FreeBSD$peter1999-08-2711-11/+11
|
* Various spelling/formatting changes.kris1999-05-081-3/+3
| | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* Fixed printf format errors.bde1998-06-282-5/+7
|
* Correct description of -crtscts.jkoshy1998-06-031-2/+2
| | | | | PR: 6836 Submitted by: Andrew <andrew@ugh.net.au>
* Correct use of .Nm. Add rcsid.charnier1998-05-187-25/+39
|
* Merge from OpenBSD:eivind1997-12-121-3/+5
| | | | | | | >sprintf -> snprintf paranoia Obtainted from: OpenBSD src/bin/stty/print.c v1.5 by Todd Miller <millert@openbsd.org>
* Correct confusing error message when called as 'stty -sane'.steve1997-08-241-5/+8
| | | | PR: bin/3573
* Typo in usage string. Looks like the man page now.charnier1997-06-061-2/+2
|
OpenPOWER on IntegriCloud