(go to: table of contents, index, list of vms_smg, prev: GET_CHAR_AT_PHYSICAL_CURSOR, next: GET_KEYBOARD_ATTRIBUTES)
Format:
VMS_SMG_GET_DISPLAY_ATTR - Return Character at Cursor
Returns the attributes associated with a virtual display.
height, width, display_attributes, video_attributes, \
character_set, flags = vms_smg.get_display_attr (display_id)
Returns:
Arguments:
Examples:
(go to: table of contents,
index, list of vms_smg,
prev: GET_CHAR_AT_PHYSICAL_CURSOR,
next: GET_KEYBOARD_ATTRIBUTES)
>>> import vms_smg
>>> import vms_smgdef
>>> # create a new DECwindows terminal using SMG
>>> status, pasteboard_id, number_of_pasteboard_rows, \
... number_of_pasteboard_columns, type_of_terminal, \
... device_name = vms_smg.create_pasteboard \
... (None, vms_smgdef.SMG_M_WORKSTATION)
>>>
>>> # create virtual display 1
>>> status, vtdpy1 = vms_smg.create_virtual_display \
... (5, 10, vms_smgdef.SMG_M_BORDER, None, None)
>>>
>>> # paste virtual display 1
>>> status = vms_smg.paste_virtual_display \
... (vtdpy1, pasteboard_id, 3, 5, None)
>>>
>>> # write to virtual display 1
>>> status = vms_smg.put_chars (vtdpy1, 'V1', 0, 0)
>>> status = vms_smg.put_chars (vtdpy1, 'TXT', 2, 2)
>>>
>>> # request information
>>> height, width, display_attributes, video_attributes, \
... character_set, flags = vms_smg.get_display_attr (vtdpy1)
>>>
>>> print height, width
5 10
>>> print display_attributes, vms_smgdef.SMG_M_BORDER
1 1
>>> print video_attributes
0
>>> print character_set, vms_smgdef.SMG_C_ASCII
1 1
>>> print flags
0
>>>