summaryrefslogtreecommitdiffstats
path: root/lib/libforms
Commit message (Collapse)AuthorAgeFilesLines
* Removed the y.tab.h file from the sources. It is automatically generatedats1995-04-151-0/+2
| | | | | | from yacc. Put the lex.c parser.c and y.tab.h into a CLEANFILES target in the makefile, they are all generated and need to be removed on a clean.
* Tweak a few things just to show how form traversal might work fully.jkh1995-03-282-8/+8
| | | | | Fix some spelling errors in the example.c file and make error handling a little more explanatory.
* Include <strhash.h> instead now.jkh1995-03-281-1/+1
|
* change hash.h to strhash.h to match new convention.jkh1995-03-264-5/+4
| | | | Manpage for strhash functions to follow tomorrow.
* Use a hash table to hold all the bindings info rather than a linked list.paul1995-03-269-146/+321
| | | | | | | | | | Forms now have their own local bindings table so that anything declared within a form is local to that form. This means you can have fields of the same name in different forms. Added inlined attribute setting for strings e.g. "This is \bold bold" Added entry and exit functions for fields.
* Pull old lex.l out of attic and update to new one.paul1995-03-011-13/+89
|
* Completely rewrite libforms so everything is done at runtime ratherpaul1995-03-0117-488/+4868
| | | | | | | | than at compile time. Should have same functionality as old libforms but with new mechanism. Lots of new features that use the new mechanism are still to be added.
* Implemented height field for text fields so they can now be more thanpaul1995-02-017-94/+58
| | | | | | | | | | | | one line long. Fixed a bug in the input field with cursor positioning at the end of the field. Make the print_status function available to apps so they can print status messages. Updated the example for the new fib parser.
* Add all the necessary bits to use color if the terminal allows it.paul1995-01-304-53/+118
| | | | | | | | | | | You can now specify separate attributes for selected/not selected cases individually for each field and also an attr for the form as a whole so you can now have colored backgrounds for the form and different coloured fields etc. Update the example. Change the copyright to a BSD style one.
* Truncate any default inputs to the input width.paul1995-01-253-13/+17
| | | | Update the example so it works properly.
* New example that uses the new forms language.paul1995-01-251-6/+96
|
* Update libforms to agree with new fib.paul1995-01-252-16/+21
|
* CFLAGS: = --> +=ache1995-01-241-1/+1
|
* Changed the example to use the forms spec file.paul1995-01-242-2/+74
|
* Changed the example to use the forms spec file.paul1995-01-242-3/+3
| | | | Made a couple of variable name changes.
* Added emacs ^A,^E,^B & ^F keybindings to field editor.paul1995-01-112-7/+7
| | | | Changed a constant to a sizeof in test.c
* Change size of example form from 80x25 to 80x24 so it workspaul1995-01-111-1/+1
| | | | in a standard xterm.
* As long as I can't figure out why this doesn't work, I might as welljkh1995-01-102-2/+14
| | | | add some error checking to it and clean this up a bit.
* Place the cursor better on buttons.paul1995-01-101-1/+1
| | | | Stop field display attributes getting clobbered.
* New forms library. This provides some basic functions for writingpaul1995-01-106-369/+622
| | | | | | | | | | | | | | | | | | | | | input forms. It has the following simple fields: Text fields: Just titles, labels etc. Input fields: An editable text field that may or may not have an initial default value. Labelled input field: This is an input field that has an initial informative entry in it but it vanishes when you start editing the field. Toggle fields: These are fields with a pre-defined list of options which you cycle through using the space bar. Action fields: These are button type fields that call functions when they are selected. A simple demo is included in examples.
* Fix some bugs with forms that have only text fields.paul1994-11-132-3/+14
| | | | Add an extern form to forms.h for apps to pick up.
* The start of a forms editor library. Currently implements text andpaul1994-11-138-0/+626
input fields. It reads a template file passed to init_forms(char *) and creates a curses based form editor. See the examples directory for a basic demo.
OpenPOWER on IntegriCloud