TNT/include
m1ngsama ddcecbea81 tui: persistent @mention unread counter in title bar (UX-11)
The bell + brief yellow highlight on the chat line meant that if you
weren't looking at the screen the moment someone @-mentioned you, you
had no way to know.

Now the title bar carries a sticky chip:

    tester · 在线 3 · NORMAL  ★ 2                ? 帮助

- bright yellow "★ N" appears whenever client->unread_mentions > 0
- count is bumped atomically in notify_mentions() for each target
- cleared automatically when the user returns to attention:
  * pressing 'i' in NORMAL to re-enter INSERT mode
  * pressing 'G' in NORMAL to jump to the live tail
- never dropped by the narrow-terminal degradation (UX-6) unless
  every other optional chip has already been shed — it's the highest
  priority signal in the bar

Counter is _Atomic int so the cross-thread bump in notify_mentions
doesn't tear against the local thread's reads / resets.
2026-05-17 14:27:46 +08:00
..
.gitkeep Initial commit 2025-07-01 09:00:00 +08:00
bootstrap.h refactor: extract input module (PR2-M5) 2026-05-17 10:01:48 +08:00
chat_room.h feat: consolidated improvements, manpage, and deployment prep 2026-04-19 17:49:06 +08:00
client.h refactor: extract client module (PR2-M6) 2026-05-17 10:16:27 +08:00
commands.h refactor: extract commands module (PR2-M3) 2026-05-17 09:26:48 +08:00
common.h refactor: extract bootstrap module (PR2-M4) 2026-05-17 09:47:28 +08:00
exec.h refactor: extract exec module (PR2-M2) 2026-05-17 08:49:58 +08:00
input.h refactor: extract input module (PR2-M5) 2026-05-17 10:01:48 +08:00
message.h feat: add :last, :search, :mute-joins commands and MOTD support 2026-04-23 12:03:27 +08:00
ratelimit.h refactor: extract ratelimit module (PR2-M1) 2026-05-16 23:06:56 +08:00
ssh_server.h tui: persistent @mention unread counter in title bar (UX-11) 2026-05-17 14:27:46 +08:00
tui.h tui: dedicated MOTD renderer (M7-5) 2026-05-17 13:16:37 +08:00
utf8.h refactor: stabilize SSH runtime and add exec interface 2026-03-10 18:52:20 +08:00