A-88
ESC X Set Horizontal Starting Position Example
OPEN "COM1:9600,n,8,1" FOR OUTPUT AS #1
PRINT #1, CHR$(27); "*";
PRINT #1, CHR$(29); "t"; CHR$(30);
PRINT #1, CHR$(29); "V1";
PRINT #1, "True Left Margin"; CHR$(10)
PRINT #1, CHR$(27); "X"; CHR$(1); CHR$(150);
PRINT #1, "2 Inch Indent"; CHR$(10);
PRINT #1, CHR$(27); "X"; CHR$(0); CHR$(203);
PRINT #1, "1 Inch Indent"; CHR$(10);
PRINT #1, CHR$(12);
Example 23: ESC X Set Horizontal Starting Position
ESC Y Set Vertical Starting Position Example
OPEN "COM1:9600,n,8,1" FOR OUTPUT AS #1
PRINT #1, CHR$(27); "*";
PRINT #1, CHR$(29); "t"; CHR$(30);
PRINT #1, CHR$(29); "V1";
PRINT #1, "True Top Margin"; CHR$(10);
PRINT #1, CHR$(27); "Y"; CHR$(20);
PRINT #1, "20 millimeters from the top"; CHR$(10);
PRINT #1, CHR$(27); "Y"; CHR$(10);
PRINT #1, "10 millimeters from the top"; CHR$(10);
PRINT #1, CHR$(12);
Example 24: ESC Y Set Vertical Starting Position
GS DC2 Set Font to Double Height Example
OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1
PRINT #1, CHR$(27); "*";
PRINT #1, CHR$(27); "T";
PRINT #1, CHR$(29); CHR$(18);
PRINT #1, "This line is Double Height"; CHR$(10);
PRINT #1, CHR$(29); CHR$(19);
PRINT #1, "This line is Normal Height"; CHR$(10);
PRINT #1, CHR$(12);
Example 25: GS DC2 Set Font to Double Height