(LOGO.JPG) Python for OpenVMS

(go to: table of contents, index, list of vms_smg, prev: REMOVE_LINE, next: REPAINT_SCREEN)


REPAINT_LINE - Repaint One or More Lines on the Current Pasteboard

Format:
    None = vms_smg.repaint_line (pasteboard_id, \
                  start_row, [number_of_lines])
Returns:

None

Arguments:

pasteboard_id
The pasteboard associated with the physical screen to be repainted.
start_row
The pasteboard row number to start repainting.
number_of_lines
Number of contiguous lines to repaint.
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)

Send 2 broadcasts to the terminal device from another process:

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

Screen layout, file: VMS_SMG_048.JPG

(picture VMS_SMG_048.JPG)

>>> # cause the specified lines to be redrawn
>>> vms_smg.repaint_line (pasteboard_id, 6, 4)
>>>

Screen layout, file: VMS_SMG_049.JPG

(picture VMS_SMG_049.JPG)

Notice that pasteboard lines 6 through 9 have been redrawn.


(go to: table of contents, index, list of vms_smg, prev: REMOVE_LINE, next: REPAINT_SCREEN)

11-SEP-2000 ZE.