Sevan Janiyan
02e4504e75
MFC r306721:
...
Add history section for stty(1)
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V3/man/man1/stty.1
PR: 211788
Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D8104
2016-10-16 23:16:05 +00:00
Jilles Tjoelker
989006abe5
stty: Mark usage() __dead2.
...
This reduces code size a little and should fix a scan-build warning.
2012-07-15 21:12:22 +00:00
Joel Dahl
748611c9c0
mdoc: fix column names, indentation, column separation within each row, and
...
quotation. Also make sure we have the same amount of columns in each row as
the number of columns we specify in the head arguments.
Reviewed by: brueffer
2012-04-07 09:05:30 +00:00
Joel Dahl
904d0726c8
Remove superfluous paragraph macro.
2012-03-25 09:20:14 +00:00
Ed Schouten
7b44b80961
Move 3.5 KB from the data segment to the text segment.
...
The `struct modes' are only used by the getter-functions in the same
file, so we can safely mark them static and const.
2011-12-11 09:56:48 +00:00
Ruslan Ermilov
a35a58824b
Don't call -f option's argument "stdin".
...
MFC after: 3 days
2011-05-03 10:08:11 +00:00
Ed Schouten
736fc28680
Add a new libc function: cfmakesane(3).
...
I've noticed various terminal emulators that need to obtain a sane
default termios structure use very complex `hacks'. Even though POSIX
doesn't provide any functionality for this, extend our termios API with
cfmakesane(3), which is similar to the commonly supported cfmakeraw(3),
except that it fills the termios structure with sane defaults.
Change all code in our base system to use this function, instead of
depending on <sys/ttydefaults.h> to provide TTYDEF_*.
2010-11-02 17:00:56 +00:00
Ulrich Spörlein
0d9deed52c
mdoc: drop redundant .Pp and .LP calls
...
They have no effect when coming in pairs, or before .Bl/.Bd
2010-10-08 12:40:16 +00:00
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