Add function to enable clearing of a line on which the cursor/head of a stream is positioned till the next newline character