thomson@zazen.macc.wisc.edu (Don Thomson) (03/25/91)
A couple of weeks ago I posted the following query to comp.lang.c. I received lots of responses, all of them saying "I'm looking for the same thing, so please send me whatever you find out", but not a single answer to the question! Since there seem to be so many of us looking for the same thing, I'm posting this to comp.unix.questions instead, hoping to catch a slightly different (albeit overlapping) audience and perhaps turn up a few suggestions: > In the spirit of not reinventing the wheel, I'm looking for public domain C > source on which to base a set of generic editing routines for entering > fields of data of different types: string, multiple-row text, integer, > float, choice of scalar values (i.e. Yes/No), etc. The routines would need > to be as portable as possible and would presumably be curses based. The > string/text fields would allow modification of existing text and choice of > insert/overtype modes. The numeric and scalar fields would check for entry > of legal values (i.e. digits and decimal point) with each key stroke (as > opposed to verifying legality after pressing <RETURN>). Any > recommendations for code that implements these kind of routines well and is > available via anonymous ftp? Thanks. -- ----- Don Thomson ----- MACC, 1210 W. Dayton, Madison, WI 53706 ------------- (608) 262-0138 thomson@macc.wisc.edu / thomson@wiscmacc.bitnet
brnstnd@kramden.acf.nyu.edu (Dan Bernstein) (03/26/91)
If you only need 3270 form-mode functions, you might try to adapt code from tn3270 (on, e.g., ucbarpa.berkeley.edu). Of course, if the tn3270 code were written with any thought to modularity, you'd be able to use it directly in your application. ---Dan