Skip to content

Commit

Permalink
fix: correct ANSI for path notification
Browse files Browse the repository at this point in the history
relates to #409
  • Loading branch information
JanDeDobbeleer committed Feb 14, 2021
1 parent 860eeb4 commit 7092896
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ansi_formats.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (a *ansiFormats) init(shell string) {
a.escapeLeft = "%{"
a.escapeRight = "%}"
a.hyperlink = "%%{\x1b]8;;%s\x1b\\%%}%s%%{\x1b]8;;\x1b\\%%}"
a.osc99 = "%%{\x1b]9;9;%s\x1b7%%}"
a.osc99 = "%%{\x1b]9;9;\"%s\"\x9c%%}"
case bash:
a.linechange = "\\[\x1b[%d%s\\]"
a.left = "\\[\x1b[%dC\\]"
Expand All @@ -60,7 +60,7 @@ func (a *ansiFormats) init(shell string) {
a.escapeLeft = "\\["
a.escapeRight = "\\]"
a.hyperlink = "\\[\x1b]8;;%s\x1b\\\\\\]%s\\[\x1b]8;;\x1b\\\\\\]"
a.osc99 = "\\[\x1b]9;9;%s\x1b7\\]"
a.osc99 = "\\[\x1b]9;9;\"%s\"\x9c\\]"
default:
a.linechange = "\x1b[%d%s"
a.left = "\x1b[%dC"
Expand All @@ -76,7 +76,7 @@ func (a *ansiFormats) init(shell string) {
a.escapeLeft = ""
a.escapeRight = ""
a.hyperlink = "\x1b]8;;%s\x1b\\%s\x1b]8;;\x1b\\"
a.osc99 = "\x1b]9;9;%s\x1b7"
a.osc99 = "\x1b]9;9;\"%s\"\x9c"
}
}

Expand Down

0 comments on commit 7092896

Please sign in to comment.