mirror repo of https://github.com/littlequartz/clink. a socket programming assignment for Sistem Terdistribusi
Go to file
Syahdan 4332c2e3a5 feat(chat): polish UI text; pre-connect to show welcome; add server logs
Client/main:
- Colorize display: hide raw IDs in rendered messages
  - Chat lines now “Name: message” (ID omitted)
  - [join]/[leave] now “[join] Name” / “[leave] Name”
  - [rename] now “[rename] OldName -> NewName”
  - Welcome now “Welcome Name”
- Init: if already connected, start reading immediately (textarea.Blink + readLineCmd)
- Pre-connect before TUI starts:
  - Dial with 3s timeout, read up to two initial lines with 1s deadline
  - Seed model with pre-read messages and existing conn

Server:
- IDs now lowercase hex; default username uses ID as-is
- Use strings.CutPrefix for “/name ” parsing
- Add structured logs for join/rename/leave with user, id, and remote addr

UI:
- Simplify chat line format for readability; keep color-coding based on ID-derived color
2025-10-15 11:27:59 +07:00
go.mod feat(server): usernames, IDs, and commands; sanitize names; richer join/leave messages 2025-10-15 11:25:56 +07:00
go.sum feat(server): usernames, IDs, and commands; sanitize names; richer join/leave messages 2025-10-15 11:25:56 +07:00
main.go feat(chat): polish UI text; pre-connect to show welcome; add server logs 2025-10-15 11:27:59 +07:00
server.go feat(chat): polish UI text; pre-connect to show welcome; add server logs 2025-10-15 11:27:59 +07:00