Printer parameter files - Section 3: STANDARD CONTROL SEQUENCES

EXAMPLE

1. Sculptor print manager

1[1]:

Width 1= 80

1[2]:

Width 2 = 96

1[3]:

Width 3 = 132

2[1]:

Length 1 = 66

3[1]:

Set width 1 = ESC,&,k,0,S

3[2]:

Set width 2 = ESC,&,k,4,S

3[3]:

Set width 3 = ESC,&,k,2,S

4[1]:

Set length 1 = ESC,&,l,6,6,F

5:

Initialise printer = ESC,E

6:

Reset printer = ESC,E

7:

Top of form = ^L

8:

Clear margins = ESC,9

2. Windows print manager

1[1]:

Width 1= 80

1[2]:

Width 2 = 96

1[3]:

Width 3 = 132

2[1]:

Length 1 = 55

3[1]:

Set width 1 = “,@12”

3[2]:

Set width 2 = “,@10”

3[3]:

Set width 3 = “,@8”

4[1]:

Set length 1 =

5:

Initialise printer = “courier,@12”

6:

Reset printer = “courier,@12”

7:

Top of form =

8:

Clear margins =

3. Rich text format print manager

1[1]:

Width 1= 80

1[2]:

Width 2 = 96

1[3]:

Width 3 = 132

2[1]:

Length 1 = 55

3[1]:

Set width 1 = “”

3[2]:

Set width 2 = “”

3[3]:

Set width 3 = “”

4[1]:

Set length 1 =

5:

Initialise printer = “{\rtf1\ansi\deff0\deftab720{\f onttbl{\f2\fmodern\fprq1\fcharse t238 Courier New;}}{\colortbl\red0\green0\blu e0;}\deflang1034\pard\plain\f2\ fs20”

6:

Reset printer =

7:

Top of form =

8:

Clear margins =

This section defines standard print control sequences.

Entries 1 and 3 are used to define and set control sequences for different widths; entries 2 and 4 similarly define and set the page lengths.

Entry 9 is currently reserved by Sculptor.

All other entries may be omitted if the printer does not have the specified feature. When Sculptor sends one of these sequences, it sends all the sub-entry sequences, in order. Dividing an entry into sub-entries can greatly aid legibility in the case of lengthy sequences.

The following entries are also in use, with each sub-entry defining the control sequence for a member of the specified category:

Entry

Description

Examples

51

Orientation

Portrait; Landscape

52

Paper sources

Lower cassette; Manual feed

53

Page sizes

Letter; A4; B5

54

Font styles

Upright; Italic; Condensed

55

Typeface families

Courier; Arial; Times New Roman

56

Symbol sets

Desktop; Windows 3.1 Latin 1; MC Text


Syntax

Entries in this section are control sequences.


Availability

Users should not add new entries to this section. All higher-numbered entries are reserved for future use by Sculptor. Section 4 (User control sequences) should be used if additional control sequences are required.

Sub-entries may be added. In entries 1-4, these define additional widths and lengths. In all subsequent entries, they merely serve to break down lengthy or multiple control sequences into more manageable, comprehensible units.


Entries

1

Page width. Enter the number of characters across the page. To define more than one page width, use a sub-entry for each. Entry 3 must then be given the same sub-entries, defining the sequence to be sent to set each width. A sub-entry may be used for each width supported by the printer. At least one width must be specified. The first width defined is the default when the program starts and can be reselected at any time by setting sys.PageWidth to 0.

2

Page length. Enter the number of lines on a standard page To define more than one length, use a sub-entry for each. Entry 4 must then be given the same sub-entries, defining the sequence to be sent to set each length. A sub-entry may be used for each length supported by the printer. At least one length must be specified.

3

Set page width. Each sub-entry should be set to the control sequence which selects the corresponding page width in entry 1.

4

Set page length. Each sub-entry should be set to the control sequence which selects the corresponding page length in entry 2.

5

Initialise printer. This sequence is automatically issued at the start of a report.

6

Reset printer. This sequence is automatically issued at the end of a report.

7

Top of form. The code to position the printer carriage at the top of the next page. This is usually the form feed code. If this entry is left blank, line feeds are output to position the page.

8

Clear margins.

9

Reserved by Sculptor.

10

Fixed underline.

11

Floating underline.

12

End underline.

13

Double width.

14

Single width.

15

Enhanced characters. For use with printers which have both a draft and a high quality character set. This is the sequence to select high quality.

16

Standard characters. For use with printers which have both a draft and a high quality character set. This is the sequence to select draft quality.

17

Alternate characters. The code for any alternate character set supported by the printer.

18

Ordinary characters. If an alternate character set has been defined, this entry should contain the sequence to return the printer to the standard character set.

19

Primary font.

20

Secondary font.

21

Fixed spacing.

22

Proportional spacing.

23

Enable perforation skip.

24

Disable perforation skip.

25

Start row. 1

26

End row. 1

27

Start column aligned left. 1

28

Start column aligned center. 1

29

Start column aligned right. 1

30

End column. 1

31

Real space (non-breakable space) 1

32

Real newline 1

33

Escape characters 1

34

Escape values (one sub-entry for each Escape character) 1

51

Orientations.

52

Paper sources.

53

Page sizes.

54

Font styles.

55

Typeface families.

56

Symbol sets.

1(1,2,3,4,5,6,7,8,9,10)

Added in Sculptor version 6.2.0


Outputting control sequences - the psc function

Control sequences are output by means of the print command and the psc() function:

print psc (seqno [, subno]);

All sequences defined by Sculptor in this section have mnemonic manifest constant definitions in the file $SCULPTOR/include/printer.h (PSC_ values).


RELATED TOPICS

Structure of a parameter file

Control sequences

Printer parameter files