diff options
| author | user <user@clank> | 2026-08-21 00:27:58 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-08-21 00:27:58 +0200 |
| commit | 2e74c6dceef18f75b849c729bd768330f73396fb (patch) | |
| tree | 706bac7dd5f89f9c137037ff1e3e9af5cfd6cd7b | |
| parent | slosh: the scrolled edge fade earns its name (diff) | |
| download | slosh-2e74c6dceef18f75b849c729bd768330f73396fb.tar.gz slosh-2e74c6dceef18f75b849c729bd768330f73396fb.tar.xz slosh-2e74c6dceef18f75b849c729bd768330f73396fb.zip | |
slosh: bell_mark defaults to "[!]"
Plain ASCII that says what it means, over a dot that had to be noticed.
The mark was always a short string rather than a glyph (the emoji-width
argument in config.kdl stands); the default just stops being shy.
| -rw-r--r-- | config/config.kdl | 9 | ||||
| -rw-r--r-- | src/config.c | 2 | ||||
| -rw-r--r-- | tests/test_bell.py | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/config/config.kdl b/config/config.kdl index ef699ff..c1e51da 100644 --- a/config/config.kdl +++ b/config/config.kdl @@ -250,10 +250,11 @@ bell_indicator true // What to draw. A short string rather than a fixed glyph, because the obvious // choice is an emoji bell and emoji are drawn two columns wide by many -// terminals while chrome here is booked as one -- so the default is narrow and -// anyone who knows their own terminal can say otherwise. (This file has no -// \u escape, so put the character itself here.) -bell_mark "•" +// terminals while chrome here is booked per glyph -- so the default is plain +// ASCII that says what it means, and anyone who knows their own terminal can +// say otherwise (a "•" if you like it quiet, a "🔔" if yours draws it well; +// this file has no \u escape, so put the character itself here). +bell_mark "[!]" // The one-row bar with tabs, the new-tab button and the pane count. status_bar true diff --git a/src/config.c b/src/config.c index ccbbc3a..a306314 100644 --- a/src/config.c +++ b/src/config.c @@ -863,7 +863,7 @@ void config_defaults(config_t *c) { snprintf(c->min_mark, sizeof c->min_mark, "\u25ac"); /* ▬ into the strip */ snprintf(c->newtab_mark, sizeof c->newtab_mark, "+"); c->bell_indicator = true; - snprintf(c->bell_mark, sizeof c->bell_mark, "\u2022"); + snprintf(c->bell_mark, sizeof c->bell_mark, "[!]"); c->keep_dead = KEEP_DEAD_COMMANDS; /* Gentle: an unfocused pane is one you are still reading half the time. * At 60 white text lands on #c3c3c3, which reads as "not this one" without diff --git a/tests/test_bell.py b/tests/test_bell.py index 64b58aa..db82903 100644 --- a/tests/test_bell.py +++ b/tests/test_bell.py @@ -13,7 +13,7 @@ import tempfile from harness import Session, check, report SH = ["/bin/sh", "-c", 'printf "\\033]2;p\\007"; stty raw -echo; cat'] -MARK = "\u2022" +MARK = "[!]" def cfg(text): |
