#348 LF behaves like newline

open
nobody
shell (25)
5
2012-09-07
2010-05-11
David Campbell
No

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.

Discussion

  • David Campbell
    David Campbell
    2010-05-11

    prevent line feed from returning to coloumn 0

     
    Attachments
  • David Campbell
    David Campbell
    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.