Commodore MPS 1000 — Commodore MPS 1000 Dot Matrix Printer User's Manual PDF (EN)

Carriage Return Without Line Feed You can instruct the printer to do a carriage return (CR) without moving down to the next line (a line feed, or LF), thereby repositioning at the first space on the current line, allowing you to overstrike the line two or more times. Enter the code for SHIFTed RETURN, CHR$(141), to issue a carriage return without a line feed. Enter the following pro- gram, which :emonstrates how this can be used to boldface a line: 10 OPEN 4,4 20 PRINT#4, "CARRIAGE RE1URN WITHOUT LINE FEED" ;CHR$(141); 30 PRINT#4, ''CARRIAGE RE1URN WITHOUT LINE FEED' ' 40 CLOSE4 Result:

CARRIAGE RETURN WITHOUT LINE FEED You can also use this code to underline a sentence, by overprinting a second line of "underline" characters created by pressing the Commo- dore key with the @ key. The following program demonstrates under- lining in this fashion: 10 OPEN 4,4 20 PRINT#4,"UNDERLINED CHARACTERS";CHR$(141); 30 PRINT #4, '' _________ _ 40 CLOSE4 Result: U.E.N.DEH.LLNED ___ .CHAH.f\C.TEB.S. Tabs The MPS 1000 has two types of horizontal tabs. The first type divides the page into 80 columns, each one character wide. For this type, you send the code CHR$(16) followed by the number of the column where you want the printing to begin.

This number, which must be two dig- its, goes inside the quotation marks, just before the text. The number tells the printer where to start printing, but it is not printed. For exam- ple, the program below uses CHR$(16) along with the number 15 inside the quotation marks. This makes the printing start in the fifteenth column. The numbers in line 20 give you a reference point so that you can see exactly where the next line starts. Notice that the first column is numbered zero, not one. 42