Commit Graph

43 Commits

Author SHA1 Message Date
roy a6aba8c961 Use putp(3) to output our strings.
Fixes PR lib/47532
2013-02-05 11:31:56 +00:00
roy 2429e4f2af If char * > long then print a suitable error when passing a string parameter. 2013-01-25 12:27:13 +00:00
roy f2a0b2e345 Remove debug accidently commited. 2013-01-25 12:12:30 +00:00
roy a17592c001 Move the strings vs long analysis to a private function, but allow
tput(1) to use it so we can work with string parameters to capabilities.
2013-01-24 10:41:28 +00:00
roy 258cf0abec Add capfile(5) to describe the termcap format.
Adjust various man pages and other documentation to point to capfile(5)
instead of termcap(5).
Remove getcap(3) as curses hasn't been building it for a long time.
Punt wrterm.c as tset no longer uses it.
2012-04-21 12:27:24 +00:00
roy 26bd22ac44 Ensure we only pass cap names of one or two characters to tgetstr
and friends so we don't mistakenly try and convert a terminfo code to a
termcap code.
2011-10-04 12:23:14 +00:00
roy 9f4db5a1ea tput now uses longname(3) to derive the terminal description instead
of trying to parse it from termpcap.
Fixes PR/43386.
2011-10-04 11:02:32 +00:00
joerg 94a2c2884b Fix trailing whitespace 2010-05-14 01:58:07 +00:00
roy 98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
lukem c1ceae17f0 Enable WARNS=4 by default for usr.bin, except for:
awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
2009-04-14 22:15:16 +00:00
lukem 98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
christos e8323719e6 Usage should exit with to according to posix (from Liam Foy).
While here, pass WARNS=3 and lint
2005-07-30 14:43:13 +00:00
wiz 3ce5fd4931 Sync usage with man page; use getprogname().
From Kouichirou Hiratsuka in PR 26280.
2004-07-23 13:33:22 +00:00
jdc a775b2011b Note in the BUGS section that some termcap entries don't have
reset capabilities, so use init instead.
Part of the fix for PR misc/11052
2004-03-29 20:56:24 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
wiz ba63bbaa01 Sort sections. 2001-12-08 19:19:05 +00:00
wiz 6060525d91 Add section to xrefs. Markup improvements. 2001-04-04 09:48:37 +00:00
is 135600f947 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
kleink 4918722a89 For commands and utilities, use EXIT STATUS rather than RETURN VALUES or
DIAGNOSTICS as appropriate (and documented in mdoc(7)).
2000-09-04 07:35:15 +00:00
matt fcd0fb118f Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>,
etc. as appropriate to get exit,srncmp,abs,abort,etc.
Add -I${.CURDIR} to a few Makefiles
2000-07-03 02:51:12 +00:00
simonb d88dfea295 Don't declare 'extern opt*' getopt variables. 2000-04-14 06:11:07 +00:00
lukem 88d3d7c59e update after change to return value of tputs() third argument 1999-10-04 23:26:59 +00:00
garbled 9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
ross 607173c8a3 Multiple missing .El's. 1999-03-09 02:58:08 +00:00
mrg 9f84449ae5 add missing .Nm sections. 1997-11-11 14:39:59 +00:00
lukem e5a1e707a3 remove WARNS=1 1997-10-20 00:51:04 +00:00
lukem 2486fca708 getopt returns -1 not EOF 1997-10-20 00:50:53 +00:00
lukem a04cd750cc WARNSify, use <termcap.h> instead of <curses.h> 1997-10-14 01:46:32 +00:00
christos 3917c3179d - Makefile cleanups 1997-03-24 21:57:01 +00:00
thorpej 150c33e60b Use ${INSTALL}. 1996-10-18 05:55:26 +00:00
jtc f1df59ade6 Sync with 4.4lite2 1995-08-31 22:11:37 +00:00
jtc 1847eaed9f sys/termios.h -> termios.h 1995-06-19 22:47:37 +00:00
jtc b2c5e550bb Switch order rows and cols are extracted from the command line.
Now matches documentation and other UNIX systems (PR #636).
1994-12-13 08:17:29 +00:00
jtc fce6632b6a Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
1994-12-07 08:49:07 +00:00
jtc 8af8823772 imported from 4.4lite 1994-12-07 08:36:42 +00:00
cgd 996d1050eb don't assume that only valid thing starting with 'l' is longname.
Fix from Eric J. Haug <ejh@slueas.slu.edu>
1994-03-19 07:42:18 +00:00
cgd 0bdc4d8746 man page update from christos 1994-01-25 00:43:07 +00:00
cgd 03cf464d00 DTRT with termcap string arguments. from Christos-Zoulas@deshaw.com.
needs man page update.
1994-01-24 23:54:57 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft 75ff3a90bd Add RCS identifiers. 1993-07-30 23:49:23 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00