Commit Graph

19 Commits

Author SHA1 Message Date
roy aadfdb111b terminfo: promote numeric parameters from short to int
POSIX mandates implementations must support upto a short but may exceed it.
When NetBSD terminfo was implemented, no terminfo description used over
a short, but because ncurses has supported ints for some time, some now do.

Infact, such a terminfo description was imported where colour pairs for
screen-256color went up to 65536 which exposed a bug in the existing
implementation where it set to zero. Because the number might mean
something more than a range, we need to be able to store it accurately.

This requires a version bump because whilst the API hasn't changed thanks
to C int promotion, the ABI has. Also the underlying database structure
has changed as well - we now store the numeric paramter inside a uint32_t
field rather than a uint16_t one.
Whilst this change can still read the old style database, the old one
cannot read the new one and thus we now maintain the database as
terminfo2.cdb, leaving the old library and database alone so old programs
still work fine.

libcurses, libfrom, libmenu and libpanel have also been bumped to
accomoate this change.
2020-03-13 15:19:24 +00:00
blymn 4aba88d186 Bump major number due to libcurses major bump 2019-06-30 22:17:22 +00:00
christos 46edb91e9f bump shared libraries. 2009-01-11 03:07:47 +00:00
blymn 19f07fb20a * Rewrote internal handling of multiline field line data to fix a bug
where a newly opened line would immediately get wrapped out of existence.
  The old method of handling lines in a multiline field did not cope with
  this elegantly.

* Added new field flag O_REFORMAT which, when set, returns the field
  buffer with newlines inserted where the line wrapped.  Previously, there
  was no way of preserving the on screen format of a multiline field.

* Added new file gdbinit which contains a macro to verify and print
  the multiline field line data structure.

* Bumped libform major number due to changes in the _form_field structure.
2004-11-24 11:57:09 +00:00
jdc ad95b1541c Increment major number (to 4) because of the libcurses major number change
and because of the change to match_enum().
2004-03-22 19:00:09 +00:00
blymn c4f23a93e4 Added extension to interface, set_field_printf which allows a printf
style setting of field buffers.
2002-08-09 14:15:12 +00:00
christos c709268130 bump major because of libcurses bump. 2001-12-03 14:02:41 +00:00
blymn 7e7a04dc80 Bumped major because driver commands have changed value and the subwin
is no longer created by the library.
2001-03-25 12:37:29 +00:00
blymn 3ebef9c407 Added new function form_max_page. 2001-02-16 03:21:35 +00:00
blymn 445edb6de2 Added ipv6 builtin type. 2001-02-10 14:53:11 +00:00
blymn 9149afdc3b bump lib minor 2001-01-21 11:49:20 +00:00
blymn 36483ba984 * Fixed common error in all types code
* Removed the args field from types struct and made sure the args in
  the field are used.
2001-01-20 11:03:43 +00:00
blymn bcd5895d31 Fixed segv if a field that never had buffer 0 set has characters added
to it.
2001-01-18 23:53:10 +00:00
blymn fde37c21e6 * Stop next/prev field commands wrapping
* Made debug file open a function call that can be called multiple
  times.
* Fixed the enum type.
2001-01-18 05:42:23 +00:00
blymn c021922626 Multiple fixes:
* A debug version of libform will be build if DEBUG_FORMS is defined
* Can no longer edit fields that do not have O_EDIT set
* Changed background attribute to A_NORMAL like ncurses
* Fixed truncation of field contents when content length == field length
* Current field is set to first visible & active field on form post
2001-01-16 01:02:47 +00:00
jdc ebc0cfbccf Bump libmenu and libform majors because of libcurses major bump.
Pointed out by mrg.
2001-01-07 13:15:10 +00:00
kleink a4040bcbd1 Undo previous major bump - the ABI wasn't affected by the corresponding
code change.
2001-01-04 17:20:06 +00:00
blymn af28ef95ea * Changed type of userptr to be void * (now matches ncurses)
* Bumped lib major version due to above.
* Changed debug output to go to a file instead of stderr, the file gets
  opened when the form is posted iff one is not already open.
2001-01-04 12:30:37 +00:00
blymn 4185942834 Added early release version of libform - please be gentle. 2000-12-17 12:04:30 +00:00