[prog] ncurses forms library

Elizabeth Barham lizzy at soggytrousers.net
Thu Oct 30 06:39:26 EST 2003


You can use field_buffer to pull the data out of the field:

        buff =  field_buffer(field[0], 0);
        assert(buff != 0);
        printf("value: %s\n", buff);

where field[0] was assigned to earlier as:
        field[0] = new_field(1, 10, 4, 18, 0, 0);

Elizabeth


More information about the Programming mailing list