mirror of https://github.com/tLDP/LDP
fix minor typos in NCURSES-Programming-HOWTO.sgml
This commit is contained in:
parent
966fd8fece
commit
53b6afc280
|
@ -1466,7 +1466,7 @@ define the foreground and background for the pair number you give. After that
|
|||
that pair number can be used as a normal attribute with <literal remap="tt">
|
||||
COLOR_PAIR()</literal>function. This may seem to be cumbersome at first.
|
||||
But this elegant solution allows us to manage color pairs very easily. To
|
||||
appreciate it, you have to look into the the source code of "dialog", a utility
|
||||
appreciate it, you have to look into the source code of "dialog", a utility
|
||||
for displaying dialog boxes from shell scripts. The developers have defined
|
||||
foreground and background combinations for all the colors they might need and
|
||||
initialized at the beginning. This makes it very easy to set attributes just by
|
||||
|
@ -2519,7 +2519,7 @@ menu's foreground or background which would have been useless.
|
|||
The function set_menu_grey() can be used to set the display attribute for the
|
||||
non-selectable items in the menu. This brings us to the interesting option for
|
||||
an item the one and only O_SELECTABLE. We can turn it off by the function
|
||||
item_opts_off() and after that that item is not selectable. It's like a grayed
|
||||
item_opts_off() and after that the item is not selectable. It's like a grayed
|
||||
item in those fancy windows menus. Let's put these concepts in practice with
|
||||
this example
|
||||
</para>
|
||||
|
@ -2974,7 +2974,7 @@ int field_status(FIELD *field); /* fetch status of field */
|
|||
</programlisting>
|
||||
|
||||
<para>
|
||||
It's better to check the field's status only after after leaving the field, as
|
||||
It's better to check the field's status only after leaving the field, as
|
||||
data buffer might not have been updated yet as the validation is still due. To
|
||||
guarantee that right status is returned, call field_status() either (1) in the
|
||||
field's exit validation check routine, (2) from the field's or form's
|
||||
|
|
Loading…
Reference in New Issue