Update terminal : move styling to cursor & better handling of newlines/linefeeds