I checked the documentation before posting to check that the C64 was similar to the Acorn world: Commodore 64 Programmer's Reference Guide: "If no punctuation finishes the list, a carriage-return and a line- feed are printed at the end of the data. If a comma or semicolon terminates the output-list, the carriage-return and line-feed are suppressed." "For printer files, an automatic line-feed will be performed by carriage-return" "if you choose a logical file number that is greater than 127, then a line feed will follow all carriage returns." That clearly indicates that line-feed and carriage-return are two seperate functions. Remember, I'm talking about /screen/ drivers here, not teletypes, printers, typing input, etc. Character 13 - CR - repeatedly moves left until in the lefthand column Character 8 moves left one Character 9 moves right one Character 10 moves down one Character 11 moves up one The only system I knew before this thread where this does not happen is the Sinclair computers, where CHR$13 moves down and left, the equivalent of CR/LF, so making it impossible to do a LF or a CR. > MSDOS : $0d$0a > CBM : $0d > Amiga : $0a > Atari : $9b > Unix : $0a > Mac[*] : $0d Nope, I've used a Mac, and PRINT CHR$13; moves to the lefthand column without moving down, and PRINT CHR$10; moves down without changing the column, and the Unix systems I've used that have a screen driver (/not/ a teletype driver) do the same. If the others do perform as you say, then how on earth do you move the cursor down without changing the column? And how on earth do you move to the lefthand column without moving down a line? -- J.G.Harston - jgh@arcade.demon.co.uk - mdfs.net/User/JGH BBC BASIC for Windows and Internationalisation See http://mdfs.net/Software/BBCBasic/Windows/ProgTips ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Tue Mar 4 13:04:26 2008
This archive was generated by hypermail 2.1.8 : 2008-03-04 13:04:29 CET