bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Forms and catching keys


From: Clemens Ladisch
Subject: Re: Forms and catching keys
Date: Mon, 25 Oct 2010 08:53:37 +0200
User-agent: Thunderbird 2.0.0.24 (Windows/20100228)

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?)


Regards,
Clemens



reply via email to

[Prev in Thread] Current Thread [Next in Thread]