mirror repo of https://github.com/littlequartz/clink. a socket programming assignment for Sistem Terdistribusi
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 |
||
|---|---|---|
| go.mod | ||
| go.sum | ||
| main.go | ||
| server.go | ||