[Top][All Lists]

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

Re: Forms and catching keys

From: Thomas Dickey
Subject: Re: Forms and catching keys
Date: Mon, 25 Oct 2010 04:31:15 -0400 (EDT)

On Mon, 25 Oct 2010, Clemens Ladisch wrote:

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

...only in the source-code, iirc.

Thomas E. Dickey

reply via email to

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