Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   attr_get.3x    ( 3 )

подпрограммы библиотеки Curses для управления атрибутами символов и окон (curses character and window attribute control routines)

  Name  |  Synopsis  |  Description  |  Video attributes  |  Note  |  History  |    Extensions    |  Portability  |  Return value  |  See also  |

Расширения (Extensions)

This implementation provides the A_ITALIC attribute for terminals
       which have the enter_italics_mode (sitm) and exit_italics_mode
       (ritm) capabilities.  Italics are not mentioned in X/Open Curses.
       Unlike the other video attributes, A_ITALIC is unrelated to the
       set_attributes capabilities.  This implementation makes the
       assumption that exit_attribute_mode may also reset italics.

Each of the functions added by XSI Curses has a parameter opts, which X/Open Curses still (after more than twenty years) documents as reserved for future use, saying that it should be NULL. This implementation uses that parameter in ABI 6 for the functions which have a color-pair parameter to support extended color pairs:

• For functions which modify the color, e.g., wattr_set, if opts is set it is treated as a pointer to int, and used to set the color pair instead of the short pair parameter.

• For functions which retrieve the color, e.g., wattr_get, if opts is set it is treated as a pointer to int, and used to retrieve the color pair as an int value, in addition retrieving it via the standard pointer to short parameter.

The remaining functions which have opts, but do not manipulate color, e.g., wattr_on and wattr_off are not used by this implementation except to check that they are NULL.