fix: correct ANSI sequence for line break

relates to #83
This commit is contained in:
Jan De Dobbeleer 2020-10-20 08:50:43 +02:00 committed by Jan De Dobbeleer
parent c3e81f4d75
commit decd2a9d24

View file

@ -72,7 +72,7 @@ func (r *Renderer) init(shell string) {
r.formats.single = "\x1b[%sm%s\x1b[0m"
r.formats.full = "\x1b[%sm\x1b[%sm%s\x1b[0m"
r.formats.transparent = "\x1b[%s;49m\x1b[7m%s\x1b[m\x1b[0m"
r.formats.linebreak = "\x1b[1000C "
r.formats.linebreak = "\x1b[E"
r.formats.linechange = "\x1b[%d%s"
r.formats.left = "\x1b[%dC"
r.formats.right = "\x1b[%dD"