blymn
6c29066dc9
* truncate field contents to field length if field is or becomes static
...
* Allow field options to be changed when field posted unless field
is the current one.
* Allow field justification to be changed when field posted unless it
is the current one.
* dynamic_field_info now returns field size in rows and columns if
the field is static - previously this was an error.
2001-03-25 12:21:06 +00:00
blymn
a6ae537d07
Handle the "unknown" ipv6 address form (::).
2001-02-16 03:28:24 +00:00
blymn
3ebef9c407
Added new function form_max_page.
2001-02-16 03:21:35 +00:00
blymn
9bb8631d38
replace strncpy with strlcpy.... 'nuff said.
2001-02-16 03:19:32 +00:00
blymn
af82d72d3e
Avoid trying to wrap a single row field.
2001-02-15 05:21:26 +00:00
blymn
6cda6dc59f
Truncate the buffer string to the field buffer size if the field is static.
2001-02-15 05:20:42 +00:00
blymn
95df9c4076
Various bug fixes:
...
* Allow the / char in the char_check routine
* Added debug for field checking
* Fixed handling of the 0xaabbccdd form
* Always set buffer 1 if it is available - previously dotted quad
did not set this buffer.
* Fixed segv if no dots found
2001-02-13 01:00:11 +00:00
blymn
ab9688a19e
Fixed various bugs, the ipv6 type now works...
2001-02-11 12:15:30 +00:00
blymn
944e9d510a
Extended the address formats that are allowed to include aa.bb.cc.dd/nn
...
and 0xaabbccdd styles.
2001-02-10 14:57:53 +00:00
blymn
cf4178992e
Check NULL0K _before_ PASSOK and clean up the PASSOK logic.
2001-02-10 14:55:18 +00:00
blymn
445edb6de2
Added ipv6 builtin type.
2001-02-10 14:53:11 +00:00
blymn
11525656c8
New builtin type to handle ipv6 style addresses. Thanks to Charles
...
Hannum for suggesting this needed to be done.
2001-02-10 14:51:32 +00:00
blymn
3d2346b6d0
* Moved field overflow check into _formi_add_char to allow overwriting a
...
full field.
* Fixed buf0_status being reset so O_BLANK now works correctly.
2001-02-06 00:02:25 +00:00
blymn
69869e5c1a
Restructured driver character insert to allow overwrite of full field
...
without autoskipping.
2001-02-05 23:59:52 +00:00
blymn
644e74211b
Made the field wrapping function available to other modules.
2001-02-03 12:41:08 +00:00
blymn
d7aa2675c9
Fixed the counting of rows in the field.
...
Fixed O_NULLOK handling in field validation
2001-02-03 12:38:47 +00:00
blymn
7ce7b46217
Buffer now wrapped and redrawn when buffer is set.
2001-02-03 12:35:14 +00:00
blymn
043f30d2d2
Reset offsets when a new field is entered.
2001-02-03 12:33:17 +00:00
blymn
99af4c1003
Added field and character checking.
2001-01-30 06:44:42 +00:00
blymn
790e1a7fb4
When buffers are created they are given an empty string instead of just
...
being set to NULL. Stops us returning a NULL pointer for buffers that
are never set.
2001-01-30 06:33:51 +00:00
blymn
91a2e44938
Fix off by one bug in field scrolling decision when inserting chars.
2001-01-23 02:01:56 +00:00
blymn
6334f1911b
Added support for the O_OVERLOAD_* form options.
2001-01-23 01:59:29 +00:00
blymn
b7108db3c2
Added check for null args pointer.
2001-01-23 01:57:01 +00:00
blymn
2746300fb2
Don't manipulate a field with a null string pointer.
...
Cleaned up debug code to handle null string pointer case too.
2001-01-22 01:07:33 +00:00
blymn
0e267bb5c1
Changed ordering of the cursor positioning call so the posted flag is
...
set before form_pos_cursor is called.
2001-01-22 01:05:34 +00:00
blymn
9149afdc3b
bump lib minor
2001-01-21 11:49:20 +00:00
blymn
5b3b45d26a
Position cursor when posting the form.
2001-01-21 11:48:29 +00:00
blymn
3df15dbec6
Prevent negative index on strncpy if end = start = 0
2001-01-21 11:47:09 +00:00
blymn
cee5688d61
Prototype function for opening debug file.
2001-01-21 11:43:43 +00:00
blymn
cc04d0d72a
Prevent negative index in strncpy if start = end = 0
2001-01-21 11:42:14 +00:00
augustss
c029defce9
Make these compile again.
...
(Say after me: Compile before commit. :)
2001-01-20 14:48:55 +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
cgd
d594ce939b
comment or delete text after CPP directives.
2001-01-16 02:50:27 +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