TNT/src
m1ngsama 0a013ed40f tui: title bar gracefully degrades on narrow terminals (UX-6)
When the terminal is too narrow to hold

    username · 在线 N · MODE  [静音]                ? 帮助

the chips and hint would visually collide.  Now the renderer measures
required width against render_width and drops optional segments in
reverse priority until what's left fits:

    1. drop the "? 帮助" hint
    2. drop the "静音" marker (if shown)
    3. drop the mode chip
    4. drop the online-count chip

The bold username is always shown.  A minimum 1-column gap is kept
between left and right halves so they never touch.

Mostly cosmetic on a regular terminal, but matters on phones /
tmux split panes / narrow side windows.
2026-05-17 13:51:25 +08:00
..
.gitkeep Initial commit 2025-07-01 09:00:00 +08:00
bootstrap.c refactor: extract client module (PR2-M6) 2026-05-17 10:16:27 +08:00
chat_room.c feat: consolidated improvements, manpage, and deployment prep 2026-04-19 17:49:06 +08:00
client.c refactor: extract client module (PR2-M6) 2026-05-17 10:16:27 +08:00
commands.c commands: reject :nick collisions with active clients (UX-3) 2026-05-17 13:44:25 +08:00
common.c refactor: extract bootstrap module (PR2-M4) 2026-05-17 09:47:28 +08:00
exec.c refactor: extract client module (PR2-M6) 2026-05-17 10:16:27 +08:00
input.c input: vim-style paging keys in the help screen (UX-5) 2026-05-17 13:49:00 +08:00
main.c feat: add @mention notifications, idle timeout, and online duration 2026-04-19 23:12:45 +08:00
message.c chore: bug fixes and code cleanup 2026-05-16 22:44:41 +08:00
ratelimit.c refactor: extract ratelimit module (PR2-M1) 2026-05-16 23:06:56 +08:00
ssh_server.c refactor: extract client module (PR2-M6) 2026-05-17 10:16:27 +08:00
tui.c tui: title bar gracefully degrades on narrow terminals (UX-6) 2026-05-17 13:51:25 +08:00
utf8.c fix: correct pubkey auth response, strncpy warning, and NUL byte validation 2026-04-19 18:27:50 +08:00