(LOGO.JPG) Python for OpenVMS

(go to: table of contents, index, list of vms_smg, prev: PREV, next: RETURN_CURSOR_POS)


RESTORE_PHYSICAL_SCREEN - Restore Physical Pasteboard

Rewrite the pasteboard image as it was at the time the vms_smg.save_physical_screen() routine was called.

Format:

    None = vms_smg.restore_physical_screen (pasteboard_id, display_id)
Returns:

None

Arguments:

pasteboard_id
The pasteboard to be restored.
display_id
The virtual display created by the SAVE_PHYSICAL_SCREEN routine.
Examples:
>>> 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 a virtual display
>>> status, display_id = vms_smg.create_virtual_display \
...         (5, 10, vms_smgdef.SMG_M_BORDER, None, None)
>>>

>>> # paste the virtual display
>>> status = vms_smg.paste_virtual_display \
...          (display_id, pasteboard_id, 3, 5, None)
>>>

Screen layout, file: VMS_SMG_001.JPG

(picture VMS_SMG_001.JPG)

>>> # save part of the physical screen
>>> display_id = vms_smg.save_physical_screen (pasteboard_id, 4, 7)
>>>

Notice that the screen range has been blanked:

Screen layout, file: VMS_SMG_052.JPG

(picture VMS_SMG_052.JPG)

Send 2 broadcasts to the terminal device from another process:

$ reply /terminal= _FTA23: -
  "BRDCST1 ===== ===== ===== ===== ===== ===== "
$ reply /terminal= _FTA23: -
  "BRDCST2 ===== ===== ===== ===== ===== ===== "

Screen layout, file: VMS_SMG_053.JPG

(picture VMS_SMG_053.JPG)

Notice that the first broadcast has scrolled away.

>>> # restore (part of) the pasteboard
>>> vms_smg.restore_physical_screen (pasteboard_id, display_id)
>>>

Screen layout, file: VMS_SMG_001.JPG

(picture VMS_SMG_001.JPG)


(go to: table of contents, index, list of vms_smg, prev: PREV, next: RETURN_CURSOR_POS)

11-SEP-2000 ZE.