Ed Schouten
f8f8c9f0d6
Make stty(1) use tab0 and tab3 to handle tab completion.
...
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.
2008-08-23 13:28:55 +00:00
Colin Percival
f9bcf9cabf
Mark functions as __dead2 in order to help the LLVM static checker
...
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".
2008-08-04 01:25:48 +00:00
Ed Schouten
94a340ae73
Remove OTTYDISC, NETLDISC and NTTYDISC definitions.
...
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)
2008-07-16 11:20:04 +00:00
Andrey A. Chernov
aaf9c3b784
Fix: printed output flags (onocr) and (onlret) same as oxtabs
...
PR: 81256
Submitted by: Arseny Nasokin <tarc@tarc.po.cs.msu.su>
2005-05-26 06:57:57 +00:00
Ruslan Ermilov
a89237ae95
Sync program's usage() with manpage's SYNOPSIS.
2005-02-09 17:37:39 +00:00
Ruslan Ermilov
6fca4c7c3f
Add the new standard EXIT STATUS section where appropriate.
...
Sort standard sections in the (documented) preferred order.
2005-01-16 16:41:59 +00:00
Warner Losh
9ddb49cbe4
/*- or .\"- or #- to begin license clauses.
2005-01-10 08:39:26 +00:00
Andrey A. Chernov
b56bffc41b
Back out recent TTYDEF_LFLAG_ECHO invention.
...
This change is NOP, because TTYDEF_LFLAG = TTYDEF_LFLAG_ECHO now,
but to minimize diffs with other BSDs.
2004-11-06 13:56:18 +00:00
Poul-Henning Kamp
9372ddf0d1
stty sane should set the echo bits.
...
PR: 73423
Submitted by: Michiel Boland <michiel@boland.org>
Overlooked by: phk
2004-11-02 18:10:01 +00:00
Ruslan Ermilov
1171aedcdf
Deal with double whitespace.
2004-07-03 00:06:28 +00:00
Ruslan Ermilov
eccea571a7
Mechanically kill hard sentence breaks.
2004-07-02 21:04:19 +00:00
Mark Murray
6195fb4102
Remove clause 3 from the UCB licenses.
...
OK'ed by: imp, core
2004-04-06 20:06:54 +00:00
Mark Murray
97daf7ec12
Fix format warning. This is WARNS=9, std=c99 clean on i386.
2003-05-03 10:16:51 +00:00
David E. O'Brien
09a80d4867
Quiet warnings about copyright[].
2003-05-01 16:58:57 +00:00
David E. O'Brien
2749b14129
Consistently use FBSDID
2002-06-30 05:15:05 +00:00
Warner Losh
5134c3f799
o __P has been reoved
...
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)
{
...
2002-02-02 06:50:57 +00:00
David E. O'Brien
a748290789
Default to WARNS=2. Binary builds that cannot handle this must explicitly
...
set WARNS=0.
Reviewed by: mike
2001-12-04 01:57:47 +00:00
Brian Feldman
a240291a2a
Note that stty is a utility and not... err... a program....
...
Submitted by: ru
2001-11-29 15:46:54 +00:00
Brian Feldman
63f9c0358e
Stty is a program, not a function.
2001-11-29 03:26:42 +00:00
Dima Dorfman
d736886a81
Implement stty ek
as documented.
...
PR: 24063
Submitted by: Seth Kingsley <sethk@osd.bsdi.com>
2001-08-23 22:31:13 +00:00
Ruslan Ermilov
d628d776c4
mdoc(7) police: utilize the new .Ex macro.
2001-08-15 09:09:47 +00:00
Ruslan Ermilov
753d686d34
mdoc(7) police: s/BSD/.Bx/ where appropriate.
2001-08-14 10:01:54 +00:00
Ruslan Ermilov
94ba280c59
mdoc(7) police: join split punctuation to macro calls.
2001-08-10 17:35:21 +00:00
Dima Dorfman
982f5d88ff
WARNS= -> WARNS?=
...
Submitted by: Mike Barcroft <mike@q9media.com>
2001-06-22 21:38:30 +00:00
Kris Kennaway
7f204f9b36
Silence WARNS=2 and BDECFLAGS on alpha and i386
...
MFC after: 1 week
2001-05-20 05:25:37 +00:00
Kris Kennaway
5e5a566754
BDECFLAGS cleanup
2001-05-18 11:04:19 +00:00
Assar Westerlund
3617ddfc33
implement OCRNL, ONOCR, and ONLRET
...
Obtained from: NetBSD
2001-03-04 06:04:50 +00:00
Ruslan Ermilov
c2d03ea879
Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.
2001-02-28 17:38:53 +00:00
Ruslan Ermilov
d0353b836e
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:38:02 +00:00
Ruslan Ermilov
12e720d78b
Prepare for mdoc(7)NG.
2000-12-15 17:37:31 +00:00
Jordan K. Hubbard
4660b1416d
Add support for an "erase2" so that both ^H and DEL can be used
...
for backspacing.
Submitted By: Rui Pedro Mendes Salgueiro <rps@mat.uc.pt>
2000-11-28 19:48:06 +00:00
Ruslan Ermilov
be8b149795
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 11:39:41 +00:00
Ruslan Ermilov
726b61ab5f
Avoid use of direct troff requests in mdoc(7) manual pages.
2000-11-10 17:46:15 +00:00
Andrey A. Chernov
43175e5e19
Fix warn format
...
Pointed-by: bde
2000-04-30 17:12:49 +00:00
Andrey A. Chernov
df41cfee75
Back out all drainwait changes. It is enough controllable via sysctl or
...
comcontrol, having it in stty cause too many problems with existing drivers
and tty access permissings of non-superuser.
Asked-by: bde
2000-04-30 17:04:26 +00:00
Andrey A. Chernov
3363a08f8c
gfmt: set drainwait only if changed
...
It allows to restore tty state without a warning for non-superuser
2000-04-30 16:22:09 +00:00
Andrey A. Chernov
441e1d5cb8
Describe drainwait
2000-04-27 22:08:29 +00:00
Andrey A. Chernov
b2953dfa7d
part of gfmt really changed commit
2000-04-27 21:48:48 +00:00
Andrey A. Chernov
18430c2095
gfmt: set 'changed' flags only if something really changed.
2000-04-27 21:45:41 +00:00
Andrey A. Chernov
d0834e7f9d
Add ability to manipulate with drain wait time
2000-04-27 21:31:23 +00:00
Sheldon Hearn
bef84d6bc0
Remove single-space hard sentence breaks. These degrade the quality
...
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 10:43:09 +00:00
Peter Wemm
8687e09584
Don't report the tablet line discipline, it "doesn't happen (TM)"
2000-01-29 16:44:08 +00:00
Peter Wemm
2a4562393f
$Id$ -> $FreeBSD$
1999-08-27 23:15:48 +00:00
Kris Kennaway
46be34b902
Various spelling/formatting changes.
...
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
1999-05-08 10:22:15 +00:00
Bruce Evans
0eb7b1cad0
Fixed printf format errors.
1998-06-28 18:08:54 +00:00
Joseph Koshy
d693a28e3c
Correct description of -crtscts.
...
PR: 6836
Submitted by: Andrew <andrew@ugh.net.au>
1998-06-03 04:07:59 +00:00
Philippe Charnier
9ba8bd6557
Correct use of .Nm. Add rcsid.
1998-05-18 06:51:59 +00:00
Eivind Eklund
ca8f21d65c
Merge from OpenBSD:
...
>sprintf -> snprintf paranoia
Obtainted from: OpenBSD src/bin/stty/print.c v1.5
by Todd Miller <millert@openbsd.org>
1997-12-12 18:11:29 +00:00
Steve Price
b74ad5265d
Correct confusing error message when called as 'stty -sane'.
...
PR: bin/3573
1997-08-24 00:26:12 +00:00
Philippe Charnier
3e23dae445
Typo in usage string. Looks like the man page now.
1997-06-06 06:48:35 +00:00