fix: only use ansi for newline on Powershell

This commit is contained in:
Jan De Dobbeleer 2020-10-21 09:35:40 +02:00 committed by Jan De Dobbeleer
parent c24ecae9d5
commit 344277c09b

View file

@ -131,11 +131,10 @@ func (r *Renderer) lenWithoutANSI(str string) int {
}
func (r *Renderer) lineBreak() string {
switch r.shell {
case "bash", "zsh", "nu":
return "\n"
if r.shell == "pwsh" {
return "\x1b[1000C "
}
return "\x1b[1000C "
return "\n"
}
func (r *Renderer) carriageForward() string {