Make INSERT mode work (rather than crash)
Fix bogus ASSERT in clamp()
Fix DL (Delete Lines) where the clamped value was disregarded
Make Buffer::insertLines() robust with "large" n
Write to the FIFO in non-blocking mode, so as not to hang