summaryrefslogtreecommitdiff
path: root/internal/pacman
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-07-12 10:37:24 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-07-12 10:37:24 -0400
commit95552235594b15d74922e606d2a3c54f7e05224a (patch)
tree33e63873ab48c98579e2ee02c497898d77426835 /internal/pacman
parent8512948bf500a47e78bc5d4e92cb56fc6a692d7d (diff)
nil pointer managementHEADmaster
Diffstat (limited to 'internal/pacman')
-rw-r--r--internal/pacman/pacman.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/internal/pacman/pacman.go b/internal/pacman/pacman.go
index cb663af..8972d12 100644
--- a/internal/pacman/pacman.go
+++ b/internal/pacman/pacman.go
@@ -40,9 +40,10 @@ func (p *Pacman) blink() {
func (p *Pacman) drawInstruction() render.DrawInstruction {
return render.DrawInstruction{
- X: int(p.x),
- Y: int(p.y),
- Content: p.Icon(),
+ X: int(p.x),
+ Y: int(p.y),
+ Content: p.Icon(),
+ Decorators: []string{"\033[38;2;250;249;8m"},
}
}
@@ -86,6 +87,10 @@ func (p *Pacman) Redirect(dir Direction) {
func (p *Pacman) Icon() string {
icns := map[Direction]map[bool]string{
+ // UP: {true: "V", false: "v"},
+ // DOWN: {true: "^", false: "A"},
+ // RIGHT: {true: "{", false: "<"},
+ // LEFT: {true: "}", false: ">"},
UP: {true: "", false: "󰬧"},
DOWN: {true: "", false: "󰬭"},
LEFT: {true: "", false: "󰬫"},