aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tset
Commit message (Collapse)AuthorAgeFilesLines
* ncurses: Add support for terminfo databaseBaptiste Daroussin2021-02-2510-1720/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Along with the termcap database, ncurses will now lookup for the terminfo database, note that the terminfo database is being looked up first and then it fallsback on the termcap one. While here drop our custom reader for the termcap database, over the time it is needed maintenance to be able to catchup with changes on ncurses side. Install the ncurses tools which are needed to deal with the terminfo database: tic, infocmp, toe Replace our termcap only aware tools with the ncurses counterpart: tput, tabs, tset, clear and reset In particular they can your the extra capabilities described in the terminfo database, which does not exist in termcap Note that to add a new terminfo information to the database from ports the ports will just need to add their extra information into: /usr/local/share/site-terminfo/<firstletteroftheterm>/<term> Tested by: jbeich, manu
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-207-0/+14
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* The memory assigned to the local variable 'copy' needs to be freed.Stephen J. Kiernan2017-06-061-0/+1
| | | | | | | | | | | | | Found using clang's static analyzer - scan-build Submitted by: Thomas Rix <trix@juniper.net> Reviewed by: ed Approved by: sjg (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D9663 Notes: svn path=/head/; revision=319636
* Renumber copyright clause 4Warner Losh2017-02-288-8/+8
| | | | | | | | | | | | 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 META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=283595
| * \ Merge head from 7/28Simon J. Gerraty2014-08-192-3/+3
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | | 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-043-6/+8
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | Complete documenting the HISTORY of what remains of the 1BSD heritageBaptiste Daroussin2015-06-061-3/+20
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Obtained from: OpenBSD (by schwarze@) Notes: svn path=/head/; revision=284056
* | | | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|/ |/| | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* | | Replace all uses of libncurses and libtermcap with their wide characterBrooks Davis2014-07-171-2/+3
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | variants. This allows usable file system images (i.e. those with both a shell and an editor) to be created with only one copy of the curses library. Exp-run: antoine PR: 189842 Discussed with: bapt Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=268804
* | More -Wmissing-variable-declarations fixes.Ed Schouten2012-10-193-6/+8
|/ | | | | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'. Notes: svn path=/head/; revision=241737
* Replace index() and rindex() calls with strchr() and strrchr().Ed Schouten2012-01-033-4/+4
| | | | | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls. Notes: svn path=/head/; revision=229403
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-118-32/+0
| | | | | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson Notes: svn path=/head/; revision=216370
* Remove unnecessary termcap.h includes inherited from extern.h and otherXin LI2009-12-117-27/+16
| | | | | | | | unneeded headers. While I'm there, make function definations ANSI prototypes. Notes: svn path=/head/; revision=200419
* Reduce compiler warning: variable might be used uninitialized, by givingPhilippe Charnier2005-05-291-0/+1
| | | | | | | an initial value. Notes: svn path=/head/; revision=146752
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Sort sections.Ruslan Ermilov2005-01-181-13/+13
| | | | Notes: svn path=/head/; revision=140420
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+1
| | | | Notes: svn path=/head/; revision=131491
* Add section number to .XrPhilippe Charnier2003-06-081-1/+1
| | | | Notes: svn path=/head/; revision=116048
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-011-1/+1
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* ANSIify function definitions.David Malone2002-09-041-10/+4
| | | | | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5 Notes: svn path=/head/; revision=102944
* Clean up malloc(3)'s argument. Remove casts which do nothing when we'reJuli Mallett2002-05-171-1/+1
| | | | | | | | | | using sizeof() anyway. Use slightly more consistent (per-file) error reporting for malloc(3) returning NULL. If "malloc failed" was being printed, don't use err(3). If a NULL format is being used, use err(3). In one case errx(3) was being used with strerror(3), so just use err(3). Notes: svn path=/head/; revision=96785
* Use `The .Nm utility'Philippe Charnier2002-04-201-4/+4
| | | | Notes: svn path=/head/; revision=95124
* remove __PWarner Losh2002-03-225-17/+17
| | | | Notes: svn path=/head/; revision=92922
* WARNS=2 fixes, use __FBSDID().Mark Murray2001-12-117-62/+74
| | | | Notes: svn path=/head/; revision=87701
* mdoc(7) police: s/BSD/.Bx/ where appropriate.Ruslan Ermilov2001-08-141-1/+3
| | | | Notes: svn path=/head/; revision=81622
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535
* Nuke unused variables.Dima Dorfman2001-06-241-1/+1
| | | | Notes: svn path=/head/; revision=78737
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-191-1/+1
| | | | Notes: svn path=/head/; revision=70197
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68963
* Changed variable killchar to killch and erasechar to erasech to avoidDavid Greenman2000-11-113-13/+14
| | | | | | | | | a name clash with the library functions of the same name (in libncurses). This problem was masked when building tset shared (the local symbols had precedence), but caused tset to core dump when it was built -static. Notes: svn path=/head/; revision=68617
* Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-101-2/+1
| | | | Notes: svn path=/head/; revision=68575
* Take a shot at making this work under termcap/terminfo ncurses. ItPeter Wemm1999-08-304-25/+33
| | | | | | | | cheats a bit by accessing the termcap string buffer. A better solution is needed. Notes: svn path=/head/; revision=50638
* $Id$ -> $FreeBSD$Peter Wemm1999-08-287-7/+7
| | | | Notes: svn path=/head/; revision=50477
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48792
* Clean up some ambiguous nested if/elses.Bill Fumerola1999-07-041-2/+3
| | | | Notes: svn path=/head/; revision=48566
* Add the 'reset' command to the NAME section.Mike Pritchard1999-06-241-1/+2
| | | | | | | Pointed-out-by: Jesus Monroy <jesus.monroy@usa.net> in freebsd-doc Notes: svn path=/head/; revision=48165
* Many places in the code NULL is used in integer context, wherePoul-Henning Kamp1997-09-181-2/+2
| | | | | | | | | | | | plain 0 should be used. This happens to work because we #define NULL to 0, but is stylistically wrong and can cause problems for people trying to port bits of code to other environments. PR: 2752 Submitted by: Arne Henrik Juul <arnej@imf.unit.no> Notes: svn path=/head/; revision=29574
* Use err(3) insteadof local redefinition. Sync usage string with man page.Philippe Charnier1997-08-188-76/+73
| | | | Notes: svn path=/head/; revision=28370
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Remove _set_ospeed, done in tgetent now.Andrey A. Chernov1995-08-051-1/+0
| | | | Notes: svn path=/head/; revision=9941
* Change outc to match prototypeAndrey A. Chernov1995-08-041-2/+2
| | | | Notes: svn path=/head/; revision=9889