ed
31729dd573
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
cperciva
45f0d08992
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
27f054a7ef
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
ache
c5682ca184
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
ru
978b8f7f1d
Sync program's usage() with manpage's SYNOPSIS.
2005-02-09 17:37:39 +00:00
ru
ffd9fd4c0e
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
imp
a76898b849
/*- or .\"- or #- to begin license clauses.
2005-01-10 08:39:26 +00:00
ache
0c2935739d
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
phk
e721e7f566
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
ru
305463f129
Deal with double whitespace.
2004-07-03 00:06:28 +00:00
ru
d40c857e0d
Mechanically kill hard sentence breaks.
2004-07-02 21:04:19 +00:00
markm
4383f14801
Remove clause 3 from the UCB licenses.
...
OK'ed by: imp, core
2004-04-06 20:06:54 +00:00
markm
8fbb9826c9
Fix format warning. This is WARNS=9, std=c99 clean on i386.
2003-05-03 10:16:51 +00:00
obrien
eaf3fff90a
Quiet warnings about copyright[].
2003-05-01 16:58:57 +00:00
obrien
f6f518b207
Consistently use FBSDID
2002-06-30 05:15:05 +00:00
imp
5ef5088ac4
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
obrien
099f8ecbe9
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
green
74b53a2f1a
Note that stty is a utility and not... err... a program....
...
Submitted by: ru
2001-11-29 15:46:54 +00:00
green
77ac0dbce8
Stty is a program, not a function.
2001-11-29 03:26:42 +00:00
dd
b5c6e30e9c
Implement stty ek
as documented.
...
PR: 24063
Submitted by: Seth Kingsley <sethk@osd.bsdi.com>
2001-08-23 22:31:13 +00:00
ru
bde8ec1b70
mdoc(7) police: utilize the new .Ex macro.
2001-08-15 09:09:47 +00:00
ru
24c7b0a61d
mdoc(7) police: s/BSD/.Bx/ where appropriate.
2001-08-14 10:01:54 +00:00
ru
f858dca3dc
mdoc(7) police: join split punctuation to macro calls.
2001-08-10 17:35:21 +00:00
dd
d705df8034
WARNS= -> WARNS?=
...
Submitted by: Mike Barcroft <mike@q9media.com>
2001-06-22 21:38:30 +00:00
kris
749bca5ec2
Silence WARNS=2 and BDECFLAGS on alpha and i386
...
MFC after: 1 week
2001-05-20 05:25:37 +00:00
kris
5dcd334a54
BDECFLAGS cleanup
2001-05-18 11:04:19 +00:00
assar
c78c138f0f
implement OCRNL, ONOCR, and ONLRET
...
Obtained from: NetBSD
2001-03-04 06:04:50 +00:00
ru
f4325cbb8b
Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.
2001-02-28 17:38:53 +00:00
ru
8a6f8b5fe4
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:38:02 +00:00
ru
d4cb36bcfe
Prepare for mdoc(7)NG.
2000-12-15 17:37:31 +00:00
jkh
644ee6003f
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
ru
be1f850a8f
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 11:39:41 +00:00
ru
a6f5d950d8
Avoid use of direct troff requests in mdoc(7) manual pages.
2000-11-10 17:46:15 +00:00
ache
718d9c4df2
Fix warn format
...
Pointed-by: bde
2000-04-30 17:12:49 +00:00
ache
9e83ee311b
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
ache
aa662159af
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
ache
9c5f71c789
Describe drainwait
2000-04-27 22:08:29 +00:00
ache
d14408a93c
part of gfmt really changed commit
2000-04-27 21:48:48 +00:00
ache
1ce5b73060
gfmt: set 'changed' flags only if something really changed.
2000-04-27 21:45:41 +00:00
ache
ecbfef142f
Add ability to manipulate with drain wait time
2000-04-27 21:31:23 +00:00
sheldonh
306562fd67
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
60b8b4c557
Don't report the tablet line discipline, it "doesn't happen (TM)"
2000-01-29 16:44:08 +00:00
peter
66312e4a8d
$Id$ -> $FreeBSD$
1999-08-27 23:15:48 +00:00
kris
713dd62834
Various spelling/formatting changes.
...
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
1999-05-08 10:22:15 +00:00
bde
9aff3bce59
Fixed printf format errors.
1998-06-28 18:08:54 +00:00
jkoshy
fb0af3e989
Correct description of -crtscts.
...
PR: 6836
Submitted by: Andrew <andrew@ugh.net.au>
1998-06-03 04:07:59 +00:00
charnier
d40a1af7e0
Correct use of .Nm. Add rcsid.
1998-05-18 06:51:59 +00:00
eivind
1294d81731
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
6c92f05ce5
Correct confusing error message when called as 'stty -sane'.
...
PR: bin/3573
1997-08-24 00:26:12 +00:00
charnier
eb1ddf1705
Typo in usage string. Looks like the man page now.
1997-06-06 06:48:35 +00:00