Dulek wrote:
First one is with fields in ncurses forms. I want to create a field, where
user can enter path to open. Unfortunately when I create it and enter some
characters, I'm getting empty buffer with field_buffer function.
http://docsrv.sco.com/SDK_charm/_Setting_and_Reading_Field_Buffe.html says:
| The function field_buffer always returns the correct value if the field
| is not current. However, if the field is current, the function is
| sometimes inaccurate because data is not moved to field buffer 0
| immediately upon entry. You may rest assured that field_buffer is
| accurate on the current field if
| * it is called from the field check validation routine, if any
| * it is called from the form or field initialization or termination
| routines, if any
| * it is called just after a REQ_VALIDATION request to the form driver
(Is that documented anywhere else?)