Newline segment, borrowed from https://github.com/proteansec/powerline-shell/blob/dd8813969a0f2111540a6ce30337e2acf07ba6dd/segments/newline.py