mirror of
https://oauth2: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@github.com/m1ngsama/TNT.git
synced 2026-05-10 19:00:57 +08:00
- README: add new commands to COMMAND mode table, MOTD section, update Known Limitations (100-msg limit now softened by :last/:search) - tnt.1: add :last/:search/:mute-joins to man page command table, add motd.txt to FILES section - CHANGELOG: add 2026-04-23 entry - QUICKREF: rewrite command section, add new commands, add motd.txt to files - ROADMAP: mark Stage 4 :last/:search/:mute-joins items as completed - DEPLOYMENT: add MOTD setup section
53 lines
1.5 KiB
Markdown
53 lines
1.5 KiB
Markdown
TNT Quick Reference
|
|
===================
|
|
|
|
BUILD
|
|
make production build
|
|
make debug debug symbols
|
|
make asan memory sanitizer
|
|
make release optimized + stripped
|
|
make clean remove artifacts
|
|
|
|
TEST
|
|
./test_basic.sh basic functionality
|
|
./test_stress.sh 20 60 stress test (20 clients, 60s)
|
|
|
|
DEBUG
|
|
ASAN_OPTIONS=detect_leaks=1 ./tnt
|
|
valgrind --leak-check=full ./tnt
|
|
make check
|
|
|
|
COMMANDS (COMMAND mode, prefix with :)
|
|
list, users, who show online users
|
|
nick <name> change nickname
|
|
msg <user> <text> whisper to user
|
|
w <user> <text> alias for msg
|
|
last [N] last N messages from log (default 10, max 50)
|
|
search <keyword> search full history (case-insensitive, 15 results)
|
|
mute-joins toggle join/leave notifications
|
|
help show all commands
|
|
clear clear output
|
|
q / quit / exit disconnect
|
|
|
|
INSERT MODE
|
|
/me <action> action message
|
|
@username mention (bell + highlight)
|
|
|
|
STRUCTURE
|
|
src/main.c entry, signals
|
|
src/ssh_server.c SSH, threads, commands
|
|
src/chat_room.c broadcast
|
|
src/message.c persistence, search
|
|
src/tui.c rendering, help
|
|
src/utf8.c unicode
|
|
|
|
LIMITS
|
|
64 clients max (configurable)
|
|
100 messages in RAM; unlimited on disk
|
|
1024 bytes/message
|
|
|
|
FILES
|
|
messages.log chat log (RFC3339)
|
|
host_key SSH key (auto-generated)
|
|
motd.txt message of the day (optional)
|
|
CHANGELOG.md version history
|