#348 LF behaves like newline

shell (25)

In MS-DOS newlines are supposed to be CRLF(carriage return, line feed), but in DOSBox LF is behaving like a newline. LF should not return the coloumn to zero that is the point of CR. This breaks any old MS-DOS applications(or new ones) that depended on this behaviour to format strings.


  • Anonymous - 2010-05-11

    prevent line feed from returning to coloumn 0

  • Anonymous - 2010-05-11

    I have attached a patch that removes a "hack" so CR, LF, and CRLF will function properly; however, \n does not return to coloumn 0 and the DOSBox shell display uses \n all over the place without \r and so displays incorrectly. Ideally, \n should map to CRLF and LF should not map to \n, but I don't know how to make DOSBox behave this way. If the chess program in question was broken because it didn't correctly use CRLF for newlines, then it is a bug in the application, not DOSBox.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks