aboutsummaryrefslogtreecommitdiff
path: root/bin/stty
Commit message (Collapse)AuthorAgeFilesLines
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* bin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-276-18/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* Remove copyright strings ifdef'd outWarner Losh2023-11-271-9/+0
| | | | | | | | | | | We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require). Sponsored by: Netflix
* bin: Remove ancient SCCS tags.Warner Losh2023-11-2711-28/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* (s)tty: add support for IUTF8 input flagBojan Novković2023-10-073-0/+6
| | | | | | | | | | | This patch adds the necessary kernel and stty code to support setting the IUTF8 flag for ttys. It is the first of two patches that fix backspace behaviour for UTF-8 encoded characters when in canonical mode. Reported by: christos Reviewed by: christos, imp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D42066
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-167-14/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Remove $FreeBSD$: one-line .h patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* stty(1): provide details about interaction with job controlKonstantin Belousov2022-10-021-1/+27
| | | | | | | | | | | | Describe a shell trick to do non-blocking modification of the terminal settings, by ignoring job control signals with trap built-in. PR: 266627 With input from: jilles Reviewed by: pauamma Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D36745
* stty: Remove stray '-'.Warner Losh2022-05-241-2/+2
| | | | | | | | There's a stray '-' that causes Fl to double the dash, but that's not how the command works. MFC After: 2 days Sponsored by: Netflix
* Replace sscanf() by strtoul()Stefan Eßer2020-12-271-4/+5
| | | | | | | | | | | This change has been motivated by a mail from bde sent in 2015 in which he mentioned inappropriate use of sscanf() in 3 programs in /bin. This change removes the potential mismatch of the types of the return values and the variable width specified in the scan pattern. While there was no issue with the patterns and types used, the new code is simpler and more efficient.
* Remove unneeded headers.Xin LI2020-12-125-6/+0
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=368573
* Some devices take undesired actions when RTS and DTR areStephen Hurd2019-06-123-0/+10
| | | | | | | | | | | | | | | asserted. Some development boards for example will reset on DTR, and some radio interfaces will transmit on RTS. This patch allows "stty -f /dev/ttyu9.init -rtsdtr" to prevent RTS and DTR from being asserted on open(), allowing these devices to be used without problems. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D20031 Notes: svn path=/head/; revision=348999
* stty.1: Document kern.tty_info_kstacks behavior (r339471)Conrad Meyer2018-10-201-1/+8
| | | | | | | | | Reported by: bdrewery Reviewed by: bdrewery Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=339474
* .Xr pstat(8), so that people have a chance to learn how to get a listEdward Tomasz Napierala2018-03-021-2/+3
| | | | | | | | | | of terminal devices using "pstat -t". MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=330277
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* .Xr resizewin from stty(1) man page.Edward Tomasz Napierala2017-05-071-0/+1
| | | | | | | | MFC after: 2 weeks Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=317904
* Renumber copyright clause 4Warner Losh2017-02-2810-10/+10
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Add history section for stty(1)Sevan Janiyan2016-10-051-1/+6
| | | | | | | | | | | | http://minnie.tuhs.org/cgi-bin/utree.pl?file=V3/man/man1/stty.1 PR: 211788 Approved by: bcr (mentor) MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D8104 Notes: svn path=/head/; revision=306721
* Explicitly add unmarked bin/ binaries to the runtime package.Glen Barber2016-02-091-0/+1
| | | | | | | | | | | Note: tcsh(1) has a MK_TCSH=no test, so this should be a separate package, which requires pre-install/post-install scripts, to be added later. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295439
* Prevent potential integer overflowBaptiste Daroussin2015-07-131-2/+5
| | | | | | | | PR: 192971 Submitted by: David Carlier <david.carlier@hardenedbsd.org> Notes: svn path=/head/; revision=285438
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync from headSimon J. Gerraty2012-11-041-1/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=242545
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | stty: Mark usage() __dead2.Jilles Tjoelker2012-07-151-1/+1
|/ | | | | | | This reduces code size a little and should fix a scan-build warning. Notes: svn path=/head/; revision=238508
* mdoc: fix column names, indentation, column separation within each row, andJoel Dahl2012-04-071-1/+1
| | | | | | | | | | 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 Notes: svn path=/head/; revision=233992
* Remove superfluous paragraph macro.Joel Dahl2012-03-251-3/+0
| | | | Notes: svn path=/head/; revision=233457
* Move 3.5 KB from the data segment to the text segment.Ed Schouten2011-12-111-5/+5
| | | | | | | | The `struct modes' are only used by the getter-functions in the same file, so we can safely mark them static and const. Notes: svn path=/head/; revision=228406
* Don't call -f option's argument "stdin".Ruslan Ermilov2011-05-031-1/+4
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=221372
* Add a new libc function: cfmakesane(3).Ed Schouten2010-11-021-5/+6
| | | | | | | | | | | | | | 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_*. Notes: svn path=/head/; revision=214680
* mdoc: drop redundant .Pp and .LP callsUlrich Spörlein2010-10-081-1/+0
| | | | | | | They have no effect when coming in pairs, or before .Bl/.Bd Notes: svn path=/head/; revision=213573
* 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