mirror of
https://oauth2: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@github.com/m1ngsama/TNT.git
synced 2026-06-26 06:44:39 +08:00
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.
|
||
|---|---|---|
| .. | ||
| .gitkeep | ||
| bootstrap.c | ||
| chat_room.c | ||
| client.c | ||
| commands.c | ||
| common.c | ||
| exec.c | ||
| input.c | ||
| main.c | ||
| message.c | ||
| ratelimit.c | ||
| ssh_server.c | ||
| tui.c | ||
| utf8.c | ||