请输入您要查询的百科知识:

 

词条 ASA carriage control characters
释义

  1. Operation

  2. See also

  3. References

  4. External links

ASA control characters are simple printing command characters used to control the movement of paper through line printers. These commands are presented as special characters in the first column of each text line to be printed, and affect how the paper is advanced before the line is printed. The remainder of the line is printed starting in the first printable position.

"ASA" is the abbreviation of the American Standards Association, a former name for the American National Standards Institute (ANSI), which has standardized these control characters in ANSI X3.78-1981(R1992) representation of vertical carriage positioning characters in information interchange. These are also called "FORTRAN control characters" because they first appeared in versions of FORTRAN II in the early 1960s,[1] although they have since been used by other programming languages such as COBOL and PL/I.

Operation

ASA Character Action ASCII Equivalent
blank Advance 1 line before printing (single spacing) CR LF
1Advance to next page before printing (form feed)CR FF
2–9, A, B, C Advance to vertical tab stop or carriage control tape channel CR VT (approximately)
0 Advance 2 lines before printing (double spacing) CR LF LF
- Advance 3 lines (triple spacing) CR LF LF LF
+ Do not advance any lines before printing,
overstrike previous line with current line
CR

Overstriking can be used to make boldface text by printing the same line twice without advancing the paper. It can also be used to make underlined text by printing a line containing underscore characters in the print positions occupied by the text to be underscored.

Mainframe printers originally had a carriage control tape, with 12 channels (1–9, A, B, C) that can be assigned a fixed position on the page by punching a hole, allowing the printer to skip a variable distance down the page to a fixed location. Newer printers such as the IBM 4248 have done away with physical tape and use an electronic Forms Control Buffer (FCB).

ASA carriage control characters are still used for printer output from mainframe applications and software today. They are interpreted by drivers and other software before being printed on modern printers.

Example output containing ASA carriage control characters:

 {{brown|'''1'''}}This is the first line on the page {{brown|'''0'''}}This is the third line on the page {{brown|'''-'''}}This is the 6th line on the page  This is the 7th line on the page {{brown|'''+'''}}____    the                      - Overstrike and boldface the 7th line 

Example as printed output:

 This is the first line on the page  This is the third line on the page   This is the 6th line on the page

This is the 7th line on the page - Overstrike and boldface the 7th line

See also

  • Carriage control tape
  • IBM Machine Code Printer Control Characters

References

1. ^{{cite book|last1=IBM Corporation|title=Fortran Specifications and Operating Procedures IBM 1401|date=1964|page=18|url=http://bitsavers.trailing-edge.com/pdf/ibm/1401/C24-1455-2_Fortran_Specifications_and_Operating_Procedures_Apr65.pdf|accessdate=August 18, 2016}}

External links

  • More elaborate description at Felgall Mainframe
  • {{cite web|last1=IBM Corporation|title=Carriage Control Characters|url=https://web.archive.org/web/20161223110404/http://www.ibm.com/support/knowledgecenter/SSB27U_5.4.0/com.ibm.zvm.v54.dmsa5/hcsd2b00182.htm|website=IBM Knowledge Center|accessdate=Sep 1, 2016}}
  • First-character forms-control data definition  

2 : Computer printers|Control characters

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/20 8:02:15