Please enable JavaScript to view this site.

ZTERM

This sequences copies text from the emulation display onto the Windows clipboard.

Parameter

Value or Description

Sequence

ESC ESC CHR$(5) row,col,len... CHR$(0)

row

The row number to copy from plus a space

col

The column number to copy from plus a space

len

The length of text to copy

 

If more than one line is copied, ZTERM will automatically add CR characters to each line.

Example

This program copies three lines at 2,30, 3,30 and 4,30 onto the clipboard. The length of each line is 40 characters.

print tab(-1,0);                               

print tab(-1,11);                              

print tab(2,5);"Name:";                        

print tab(3,5);"Address:";                     

print tab(4,5);"City, State, ZIP:";            

print tab(-1,12);                              

print tab(2,30);"COOLSTF.com"                  

print tab(3,30);"11614 Waesche Drive"          

print tab(4,30);"Bowie MD 20721"               

 

print chr$(27);chr$(27);chr$(5);               

print chr$(32 + 2);chr$(32 + 30);chr$(32 + 40);

print chr$(32 + 3);chr$(32 + 30);chr$(32 + 40);

print chr$(32 + 4);chr$(32 + 30);chr$(32 + 40);

print chr$(0);                               

 

Note: On terminals like the AM62C and Wyse 50, you can get the contents of the top and bottom status lines by using CHR$(32 + 0) for the top and CHR$(32 + 25) for the bottom.

Note: For starting columns greater than 96 in 132 column mode, use the standard 132 column sequence - CHR$(25) followed by the column number minus 96 plus 32 to make it printable ASCII.