Name
CopyConsoleWindow -- copy text from another console window (V10.0)
Synopsis
CopyConsoleWindow(id[, overlay, srcx, srcy, dstx1, dsty1, dstx2, dsty2])
Platforms
Linux, macOS, Windows

Function
This function copies the text from the console window specified by id to the currently active console window. If the overlay parameter is True, only non-blank characters are copied, i.e. all whitespace characters are ignored. If the optional arguments after overlay are left out, only those characters in the source window that intersect with the destination window are copied, so that the characters appear in the same physical position on the screen.

If you specify the optional arguments after overlay, the two windows needn't overlap. The arguments srcx and srcy specify the top left corner of the region to be copied. The arguments dstx1, dsty1, dstx2, and dsty2 specify the region within the destination window to copy to. All positions must be given in characters.

You must enable advanced console mode using EnableAdvancedConsole() before you can use this function. See EnableAdvancedConsole for details.

Inputs
id
id of the console window to copy from
overlay
optional: whether or not only non-blank characters should be skipped (defaults to False)
srcx1
optional: x offset in the source console window
srcy1
optional: y offset in the source console window
dstx1
optional: destination start x offset
dsty1
optional: destination start y offset
dstx2
optional: destination end x offset
dsty2
optional: destination end y offset

Show TOC