Previous: , Up: Curses Tutorial   [Contents][Index]

4.15 Forms Library

Well, if you have seen those forms on web pages that take input from users and do various kinds of things, you might be wondering how one would create such form in a text mode display. It’s quite difficult to write those nifty forms in plain ncurses. The forms library tries to provide a basic framework to build and maintain forms with ease. It has lots of features that manage validation, dynamic expression of fields, and so on. Let’s see it in full flow.

A form is a collection of fields. Each field can be either a label (static text) or a data-entry location. The forms library also provides functions to divide forms into multiple pages.