Follow-up to my post of 12/11/2015 11:23 PM: The desired effect can apparently be achieved by using CHR$(10) at the end of every line except the last one, then use CHR$(13), e.g. after KEY 5,"CLS"+CHR$(10)+"PRINT 55"+CHR$(13)