"Stephen J. Turnbull" <turnbull(a)sk.tsukuba.ac.jp> writes:
You're right that in the case where the user inserts a linebreak
in
the first line of text using one convention and the preceding text
uses a different convention, we can't get it right. But I don't think
we really care, do we?
No.
In fact, if the user is editing the shell buffer as text, the
newline
convention used for insertions doesn't matter, the escape sequences
inserted are not part of the text stream as such. If the user cares
about those things, they have to edit the stream in binary mode.
Indeed. I just wanted to point out that user has to be
careful about differences between text and binary data even
if raw data can be restored.
--
Yoshiki Hayashi