Remove the "halves" cover style again
Tried in macOS Terminal: it does not look good there either. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019reK4DUGYqDUjniWYJvwUW
This commit is contained in:
@@ -277,7 +277,6 @@ func TestCoverStyleFor(t *testing.T) {
|
||||
{"sextant", nil, "sextant"},
|
||||
{"auto", map[string]string{"TERM": "xterm-256color", "TERM_PROGRAM": "Apple_Terminal"}, "cells"},
|
||||
{"cells", map[string]string{"TERM": "xterm-kitty"}, "cells"},
|
||||
{"halves", map[string]string{"TERM_PROGRAM": "Apple_Terminal"}, "halves"},
|
||||
{"quadrant", map[string]string{"TERM_PROGRAM": "Apple_Terminal"}, "quadrant"},
|
||||
} {
|
||||
if got := coverStyleFor(tc.setting, env(tc.env)).name; got != tc.want {
|
||||
@@ -359,11 +358,3 @@ func TestCellsStyleIsFlat(t *testing.T) {
|
||||
t.Errorf("got %q %v %v", ch, fg, bg)
|
||||
}
|
||||
}
|
||||
|
||||
func TestHalvesStyle(t *testing.T) {
|
||||
dark, light := color.RGBA{0, 0, 0, 255}, color.RGBA{250, 250, 250, 255}
|
||||
ch, fg, bg := halvesStyle.bestCell([]color.RGBA{light, dark})
|
||||
if ch != '▌' || fg != light || bg != dark {
|
||||
t.Errorf("light left half: %q %v %v", ch, fg, bg)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user