Skip to content

Commit

Permalink
changing Rye shell to basic ansi colors, so it themable in terminals …
Browse files Browse the repository at this point in the history
…and works in emacs ansi-term
  • Loading branch information
refaktor committed Apr 8, 2024
1 parent f937891 commit 5bac58b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion evaldo/repl.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func MaybeDisplayFailureOrError(es *env.ProgramState, genv *env.Idxs) {
fmt.Println("\x1b[33m" + "Failure" + "\x1b[0m")
}
if es.ErrorFlag {
fmt.Println("\x1b[31;3m" + es.Res.Print(*genv))
fmt.Println("\x1b[31m" + es.Res.Print(*genv))
switch err := es.Res.(type) {
case env.Error:
fmt.Println(err.CodeBlock.PositionAndSurroundingElements(*genv))
Expand Down
2 changes: 1 addition & 1 deletion examples/99beers.rye
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

rye.!!!!__a<>|sdsd ; Testing with \word instead of |word for pipe-words
rye ; Testing with \word instead of |word for pipe-words

; function private creates a context, executes code in it and just returns the last value
; experimenting with using it for "ultra-private" environments and verbiage :)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ require (
github.com/mrz1836/postmark v1.6.4
github.com/pkg/term v1.1.0
github.com/refaktor/go-peg v0.0.0-20220116201714-31e3dfa8dc7d
github.com/refaktor/liner v1.2.6
github.com/refaktor/liner v1.2.10
github.com/sashabaranov/go-openai v1.20.4
github.com/shirou/gopsutil/v3 v3.24.3
github.com/thomasberger/parsemail v1.2.6
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE=
github.com/refaktor/go-peg v0.0.0-20220116201714-31e3dfa8dc7d h1:FXrWUGgPRzhaZIBho8zNLSrMp0VpP8E9+wbRRnJYlbE=
github.com/refaktor/go-peg v0.0.0-20220116201714-31e3dfa8dc7d/go.mod h1:iIkrsFobLIWX8kQ6Oqj4cl4nwdMSE92DWpWwk9YlG9s=
github.com/refaktor/liner v1.2.6 h1:UtI+H2w5L9z6ASQ2nZlJCZ/9AB12sGYY0xgJUT2g8kg=
github.com/refaktor/liner v1.2.6/go.mod h1:ziZSGVYZ4OzZ9kbeB254MtIrxxQlDibULRQGlDi1iK8=
github.com/refaktor/liner v1.2.10 h1:MjbQj9EfNuSFnNk9zan37xpkNIRpsWKenyIBg7FZdVw=
github.com/refaktor/liner v1.2.10/go.mod h1:ziZSGVYZ4OzZ9kbeB254MtIrxxQlDibULRQGlDi1iK8=
github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/sashabaranov/go-openai v1.20.4 h1:095xQ/fAtRa0+Rj21sezVJABgKfGPNbyx/sAN/hJUmg=
Expand Down

0 comments on commit 5bac58b

Please sign in to comment.