summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorDavid Schlachter <t480-debian-git@schlachter.ca>2026-01-08 01:47:49 -0500
committerDavid Schlachter <t480-debian-git@schlachter.ca>2026-01-08 01:47:49 -0500
commit608e12a601d32797d93a550ac9b33d446f38bf55 (patch)
treee76cb88422546613891795f3ae2079ca0cd57ad9 /main.go
parentb21350357e8471952d2bd15d15ea77220d3caf21 (diff)
Add colors so it's easier to read
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index f1a4076..d5900b7 100644
--- a/main.go
+++ b/main.go
@@ -135,11 +135,11 @@ var whitespaceTrimmerRe = regexp.MustCompile(`^[ \t]*$`)
func (m model) View() string {
return fmt.Sprintf(
- "Look up a word:\n\n%s\n\nStatus: %s\n\n%s\n\n%s\n%s",
+ "\x1b[1;30;42mLook up a word:\x1b[0m\n\n%s\n\n\x1b[1;30;42mStatus:\x1b[0m %s\n\n%s\n\n%s\n%s",
m.wordInput.View(),
formatStatus(m.err, m.wordAddStatus),
"(ctrl-c to quit, esc to clear, enter to add to Anki)",
- "Current definition:\n",
+ "\x1b[1;30;42mCurrent definition:\x1b[0m\n",
m.vp.View(),
) + "\n"
}