summaryrefslogtreecommitdiff
path: root/usr.bin/tset
AgeCommit message (Collapse)Author
2024-08-23Fix some program names that were not expanded correctly when ncurses wasNicholas Marriott
updated and were instead replaced by ?. ok millert
2023-10-17Update ncurses and associated libraries (form, panel, menu) toNicholas Marriott
6.4-20230826 (from 5.7-20081102). Based on result from Thomas Dickey's ncu2openbsd script and then modified. Switches to the upstream tput. Major bump for the ncurses libraries and for libedit and libreadline. Help from tb, millert. ok deraadt sthen
2022-12-04userspace: remove vestigial '?' cases from top-level getopt(3) loopsScott Soule Cheloha
getopt(3) returns '?' when it encounters a flag not present in the in the optstring or if a flag is missing its option argument. We can handle this case with the "default" failure case with no loss of legibility. Hence, remove all the redundant "case '?':" lines. Prompted by dlg@. With help from dlg@ and millert@. Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2 ok naddy@ millert@ dlg@
2022-10-13controm terminql -> controlling terminal;Jason McIntyre
2022-03-31man pages: add missing commas between subordinate and main clausesChristian Weisgerber
jmc@ dislikes a comma before "then" in a conditional, so leave those untouched. ok jmc@
2021-06-22Reduce verbosity in tset/reset usage()Theo Buehler
from jmc, ok kn
2021-06-22Hoist initialization of _nc_progname to start of main()Theo Buehler
This way early calls to err(), failed() and usage() show "reset" instead of "tset" if the program was invoked as reset(1). Issue noted by jmc ok kn
2019-12-21a few depend:-related thingies that were still in.Marc Espie
okay millert@, tb@
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2019-03-12Almost all terminals now support hardware tabs so default to OXTABSNicholas Marriott
off. This makes three changes: adds the ht capability to the standard lines in gettytab(5); removes OXTABS from TTYDEF_OFLAG in ttydefaults.h (the defaults used by pty(4) - diff from martijn); and only sets OXTABS on terminals which lack hts and tbc in tset(1) (from Thomas Dickey upstream). Addresses problems reported by tedu. ok millert
2017-06-16mark files as BUILDFIRST, or write explicit dependencies, so that mostMarc Espie
programs will build even without a make depend first. okay tb@ millert@
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2015-12-03Change /usr/share/misc/terminfo.db to /usr/share/terminfo.Nicholas Marriott
ok millert
2015-11-16pledge "stdio rpath wpath tty"Theo de Raadt
2015-11-15Simplify TIOCGWINSZ codeblock by removing support for SCO Unix.Theo de Raadt
2015-11-09add missing NAME entries; ok schwarzeJason McIntyre
2015-08-20Do not need to cast malloc(). stdlib.h is brought in via a local .h file.Theo de Raadt
ok millert
2014-11-15Reduce instances of `` '' in manuals.Anthony J. Bentley
troff displays these as typographic quotes, but nroff implementations almost always print them literally, which rarely has the intended effect with modern fonts, even in stock xterm. These uses of `` '' can be replaced either with more semantic alternatives or with Dq, which prints typographic quotes in a UTF-8 locale (but will automatically fall back to `` '' in an ASCII locale). improvements and ok schwarze@
2013-09-18Remove "tset -S" compatibility I added years ago. Most convertedTodd C. Miller
terminfo entries for most terminals are too large to fit within the 1023 bytes allowed for termcap. We're better off without it. OK espie@ jmc@
2011-12-28Complete documenting the HISTORY of what remains of the 1BSD heritage;Ingo Schwarze
actually, the number of programs is quite small, about ten all told. feedback mckusick@, feedback and ok sobrado@, ok jmc@
2010-01-12Update to ncurses 5.7, with local changes reapplied.Nicholas Marriott
This is around eight years worth of changes (previously we were around ncurses 5.2), too many to list - many bug fixes and also a few new functions. A major bump for libcurses, libpanel, libform and libmenu. ok deraadt
2009-11-11Fix memory leaks found by parfait.Nicholas Marriott
ok deraadt@ jsg@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-05-06add missing flags to the output of usage() and sort them as usualIgor Sobrado
in BSD operating systems; while here, indent source code in a way it fits on 80-column displays. ok jmc@
2009-05-06Use getttynam() from libc instead of the private version in tset.Todd C. Miller
2007-10-15specifying int instead of just unsigned is better styleTheo de Raadt
2007-09-14remove some warnings:Charles Longeau
unused variable `variable' `variable' might be used uninitialized in this function ok gilles@ ray@
2007-09-11use strcspn to properly overwrite '\n' in fgets returned bufferGilles Chehade
ok pyr@, ray@, millert@, moritz@, chl@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-03-20remove some bogus *p tests from charles longeauTed Unangst
ok deraadt millert
2007-02-20Change hard coded numbers to sizeof(buf). Also change someRay Lai
sizeof(buf) - 1 to sizeof(buf), since fgets takes the whole buffer size. Based on diff from Charles Longeau <chl at tuxfamily dot org> long ago. OK millert@.
2006-10-10fgets(3) returns NULL on error, not 0. No functional change, but it makesChad Loder
the code easier to read. OK deraadt
2004-04-04.br workaround no longer necessary;Jason McIntyre
2003-09-02escape punctuation;Jason McIntyre
ok deraadt@
2003-06-12de-register and ansification; millert okTheo de Raadt
2003-06-10- section reorderJason McIntyre
- COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-04easy snprintf; tedu okTheo de Raadt
2003-01-10typo police; jmcHenning Brauer
2001-11-19kill more registersMike Pechkin
millert@ ok
2001-07-16-Wall cleanup; ok millertPeter Valchev
2001-02-28ncurses-5.2-20010224Todd C. Miller
2001-01-29$OpenBSD$Niklas Hallqvist
2001-01-22Update to ncurses-5.2-20010114Todd C. Miller
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-10-08update to ncurses-5.1-20001007Todd C. Miller
2000-08-02$HOME paranoia: never use getenv("HOME") w/o checking for NULL and non-zeroTodd C. Miller
2000-07-24Update to ncurses-5.1-20000722Todd C. Miller
2000-07-07avoid non-formatter printf, use fputsTheo de Raadt
2000-03-15Repair mdoc botch.Aaron Campbell