Skip to content

Commit

Permalink
fix: only use ansi for newline on Powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Oct 21, 2020
1 parent c24ecae commit 344277c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions renderer.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 344277c

Please sign in to comment.