Skip to content

Commit

Permalink
Parsing ansi color codes (#4)
Browse files Browse the repository at this point in the history
* Utilize tview's TranslateANSI function to translate ANSI color codes for colorizing output
---------

Co-authored-by: Seth Herz <[email protected]>
  • Loading branch information
herzs11 and Seth Herz authored Dec 11, 2024
1 parent 83e0482 commit 5bb62ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"golang.org/x/term"
)

const version = "0.3.3"
const version = "0.3.4"

func completionCommand() *cobra.Command {
return &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion src/ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func (ui *UI) evaluateExpression() func() {
}
}
out, _ := program.Run(sb.String())
ui.OutputView.SetText(out)
ui.OutputView.SetText(tview.TranslateANSI(out))
}
}

Expand Down

0 comments on commit 5bb62ff

Please sign in to comment.