Commit Graph

73 Commits

Author SHA1 Message Date
christos b9c2e08099 make use we don't touch memory past the end of the buffer. Pointed out
by tnozaki.
2011-11-13 15:24:04 +00:00
joerg 5b270365fe Fix dependencies on generated files. 2011-11-03 07:19:39 +00:00
yamt e2d8d702cb use the tools version of utilities for other scripts, too 2011-11-02 20:39:41 +00:00
christos 76151da247 use the tools version. 2011-11-02 20:30:00 +00:00
christos 474f83c4ae Separate the generators out, so that they can be re-used by tools, and
don't play games with curdir/objdir.
2011-11-02 17:48:53 +00:00
roy 9e5def586b Now that nbperf can generate the same file using the -p option,
there is no longer a need to store these files in CVS.
2011-11-02 12:09:25 +00:00
roy 62480e1c72 There is no standard way of getting a list of aliases for the
terminal. However, some applications such as telnet want to know this.
ncurses dumps the terminfo header into an undefined variable ttytype
and these applications then parse it to work out the aliases.
We should do the same for now, until a standard mechanism for getting
the information is available or the need for it goes away.
2011-10-05 10:46:08 +00:00
roy 64afaacce6 Move longname(3) from curses to terminfo, pre-cursor to fix PR/43386. 2011-10-04 11:01:13 +00:00
roy 2f9b6d37f2 Fix tparm.
As we now go via tiparm, store nums as int to conserve memory.
2011-10-03 20:13:48 +00:00
roy 91ab69b0df Remove _ti_freeterm as consumers should just use del_curterm. 2011-10-03 19:18:55 +00:00
roy 7fc83a7d87 Correct args 2011-10-03 19:15:03 +00:00
roy 44e794b040 Install correct man page links. 2011-10-03 13:10:58 +00:00
roy 39aae097d0 Correctly use ti_ instead of t_ for our extensions as per the man page.
Replace vtparm with tiparm.
tiparm is also non standard, but has been proposed at least.
2011-10-03 12:31:51 +00:00
roy fd2d10c6b0 Add termname(3) as defined by POSIX. 2011-10-02 19:24:25 +00:00
christos cc9ecc5e39 PR/45370: Takehiko NOZAKI: termcap emulation tget{flag,num,str} should
work with non-NUL terminated strings.
2011-09-16 18:51:44 +00:00
christos 5353040f23 document non-literal format strings 2011-08-16 10:35:03 +00:00
roy 3a520e5e78 Make new compiled terms for our updated terminfo. 2011-06-19 16:36:04 +00:00
roy ed684e08ea Clean up some compile warnings 2011-04-11 21:37:19 +00:00
roy 9a92225ded POSIX says that term.h should define tgetstr and friends
Fixes PR lib/43941
2011-04-11 21:13:09 +00:00
roy f42fd8d0f1 Simplify some conversion by usig pre formatted strings and a function
to print a parameter.
2011-03-18 10:42:54 +00:00
christos 50f9c0a390 OOPS has been reverted. 2011-03-14 11:44:20 +00:00
christos 29ba757a34 revert OOPS change now that most of the reasons for tgoto to return NULL
have been eliminated.
2011-03-11 13:28:52 +00:00
roy df504c6413 Do our best to process invalid terminfo strings instead of just
returning NULL.
2011-03-10 13:39:26 +00:00
roy 9d7b5f143f Fix two other off-by-one errors when processing %P and %g commands. 2011-03-10 10:46:33 +00:00
roy 40109496d4 Add support for translating the following termcap commands into terminfo:
%B %D %r %2 %3 %d %+ %> %.
Fixes PR bin/44692.
2011-03-10 10:17:19 +00:00
roy 74cdc55234 Fix an off-by-one error when processing embedded values. 2011-03-10 09:45:32 +00:00
christos 959ab2631c Restore historical behavior of tgoto() to return "OOPS" on failure. This is
best for now because there are too many programs that don't check the return
value of it. Of course cursor motion commands from $TERMCAP have 0 chance
of working now, since their % escapes are not translated to terminfo. In
the window case %+ expects one param from the stack in the termcap case
and two in the terminfo so we barf. We need proper captoinfo handling for
the % escapes, like the one in ncurses. Hi Roy :-)
2011-03-07 00:27:51 +00:00
christos f207e61c08 replace `` with $(). Hopefully with enough examples around people will
forget about ``.
2010-10-12 12:57:51 +00:00
christos e6dabc3c76 PR/43961: YAMAMOTO Takashi: uninitialized variable in termcap.c
Remove dead code.
2010-10-12 12:49:27 +00:00
roy 215c5976aa Our API just uses typedefs, so don't use the struct symbol which will avoid
any potential conflicts with userland.
2010-09-22 06:10:51 +00:00
mrg 4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
roy 76cbf63f87 area is now used 2010-07-04 07:30:33 +00:00
roy 1f27d9b179 Convert padding for unknown capabilities as well. 2010-03-04 15:35:26 +00:00
roy 6855db0f30 Convert padding and give terminfo some default assumptions about termcap. 2010-03-04 15:16:39 +00:00
roy ca77b139e2 Abort an error. 2010-03-03 12:09:49 +00:00
roy 4b2d6106cf Use _ti_get_token instead of strsep when parsing termcap entries.
This allows us to handle \E\ as a valid sequence.
2010-03-02 14:11:11 +00:00
roy c6aefd4d60 Escape , when converting to terminfo. 2010-03-01 11:02:31 +00:00
dholland 5c7d0d1fb6 compile.c needs sys/endian.h; PR 42875 from Henning Petersen. 2010-03-01 01:59:48 +00:00
wiz 6d85ff35e1 '>' replacement for HTML output, be explicit about slash. 2010-02-26 07:03:49 +00:00
roy 007ba6f7e2 Implement captoinfo so that we can convert $TERMCAP into $TERMINFO.
We don't currently map %> %B %D.
That means no conversion for regent100, hz1500, act4, act5, mime terms.
2010-02-26 00:09:00 +00:00
roy 478e5b9ae4 If we only have a name then we flatten to an alias. 2010-02-25 23:44:02 +00:00
roy fde317d2b1 libterminfo can now compile a single terminfo description which allows
$TERMINFO to be a terminfo description as well as a file reference.

This enables the user to modify the terminfo description on read-only
media.
2010-02-22 23:05:39 +00:00
njoly 62fab5d4b7 Do clean generated terminfo.5 file. 2010-02-19 13:53:17 +00:00
roy 420f923a19 Store the generated compiled terminfo descriptions so that we can build
a consistent library just from source.
2010-02-12 12:18:33 +00:00
martin 33f9f146f2 Fix an array bounds check - fixes PR lib/42793.
Restore a comment (from libterm/tputs.c), requested by jdc.
2010-02-12 10:36:07 +00:00
roy c1a1881ef9 Don't try to map obsolete termcap bc and nl to terminfo. 2010-02-12 10:18:56 +00:00
wiz 6e41b81e29 Oxford serial comma. 2010-02-11 16:28:06 +00:00
roy 45b8382fe3 Include xterm. 2010-02-11 14:49:56 +00:00
roy 2680cfc1a1 Use $TOOL_TIC 2010-02-11 14:44:44 +00:00
roy b32b792e3b Respect TERMINFO_DIRS and document using an embedded database. 2010-02-11 14:36:09 +00:00