SrcPage and DstPage params not used in BuffCopyBox()
In the specification of DECCRA, it says "If a page value exceeds the number of pages available in the current page arrangement, then the value is treated as the last available page number."
Currently Tera Term supports one page only. So DECCRA always affects page 1.
We are planning to support multiple pages in a future version.
In buffer.c, in BuffCopyBox() the params "SrcPage" and "DstPage" are not used, so it is not possible to copy a text box between different pages. It is important because "DECCRA—Copy Rectangular Area" command uses this params to copy text areas, than could be visible or not.
For example:
- Copy rectagle area from page 1 to page 2 (save background with DECCRA) "\e[1;1;10;10;1;1;1;2"
- Paint a window over this area in page 1.
- Copy rectagle area from page 2 to page 1 (restore background with DECCRA) "\e[1;1;10;10;2;1;1;1"
Regards