(go to: table of contents, index, list of vms_smg, prev: PUT_CHARS_HIGHWIDE, next: PUT_CHARS_WIDE)
Format:
PUT_CHARS_MULTI - Put Text with Multiple Renditions to Display
Write text with multiple renditions to the virtual display.
status = vms_smg.put_chars_multi (display_id, text, \
[start_row], [start_column], [flags], \
[rendition_string], [rendition_complement], \
[character_set])
Returns:
Arguments:
Examples:
(go to: table of contents,
index, list of vms_smg,
prev: PUT_CHARS_HIGHWIDE,
next: PUT_CHARS_WIDE)
>>> 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
>>> status, vtdpy1 = vms_smg.create_virtual_display \
... (5, 10, vms_smgdef.SMG_M_BORDER, None, None)
>>>
>>> # paste virtual display
>>> status = vms_smg.paste_virtual_display \
... (vtdpy1, pasteboard_id, 3, 5, None)
>>>
>>> # write to virtual display
>>> status = vms_smg.put_chars_multi (vtdpy1, 'VTDPY1', 1, 1)
>>>
>>> # write to virtual display - graphics
>>> status = vms_smg.put_chars_multi (vtdpy1, 'qnqxq', 2, 2, 0, \
... None, None, vms_smgdef.SMG_C_SPEC_GRAPHICS)
>>>
>>> rendition_string = chr(vms_smgdef.SMG_M_BOLD) + \
... chr(vms_smgdef.SMG_M_REVERSE) + \
... chr(vms_smgdef.SMG_M_UNDERLINE)
>>> # caution - these are control characters that can screw up
>>> # a terminal's setting! - use repr() for inspection
>>> print repr (rendition_string)
'\001\002\010'
>>>
>>> status = vms_smg.put_chars_multi (vtdpy1, 'bru', 4, 1, 0, \
... rendition_string, None, vms_smgdef.SMG_C_ASCII)
>>>