> А за "С:"? wat > А за "\"? FYI the DOS escape is ^. It's just different, not worse in any way. Also, DOS works with parameters in a quite comprehensible way. It takes like a half an hour to write a compatible commandline parser in Python, and it actually looks great, like I dunno, it shrinks to a simplest possible attractor, and when it's there, it works. > Ещё бы найти ссуку, которая конец строки в Досе определила как два аски символа... CR: Carriage return, '\r', moves carriage to the initial position LF: Line Feed, '\n', moves the caret to the next line. Это не они придумали, в общем-то. Что забавно, распечатывание текстов с левыми \r, особенно под цигвином, до сих пор работает как задумано. В смысле, `printf('some shit'); printf('\rsome other shit');` оставляет на экране строку "some other shit".
no subject
Date: 2009-10-16 07:40 pm (UTC)wat
> А за "\"?
FYI the DOS escape is ^. It's just different, not worse in any way. Also, DOS works with parameters in a quite comprehensible way. It takes like a half an hour to write a compatible commandline parser in Python, and it actually looks great, like I dunno, it shrinks to a simplest possible attractor, and when it's there, it works.
> Ещё бы найти ссуку, которая конец строки в Досе определила как два аски символа...
CR: Carriage return, '\r', moves carriage to the initial position
LF: Line Feed, '\n', moves the caret to the next line.
Это не они придумали, в общем-то. Что забавно, распечатывание текстов с левыми \r, особенно под цигвином, до сих пор работает как задумано. В смысле, `printf('some shit'); printf('\rsome other shit');` оставляет на экране строку "some other shit".