Background sessions no longer buffer monitor frames in mon_sbuf.
BBS output (out_sbuf) is still buffered so you see what the node
sent while you were away. The monitor starts live/fresh when you
switch sessions instead of replaying a backlog of RF traffic.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
interactive_loop now watches every connected session's socket in one
select() call. Background session data is stored in that session's scroll
buffers without touching the screen (suppress_draw flag). When the user
switches to that session, refresh_all() replays everything from the buffer.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
session_close() disconnects, closes log, switches to another active
session, then frees the slot. If it's the last session open, exits
the program (same behavior as Q). Menu updated to show X - Close Session.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds session_new(), session_switch(), session_next(), session_prev()
functions and wires them to F7 (new), F8 (prev), F9 (next) function keys
and Ctrl+A N / Ctrl+A 1-4 menu entries. Forward declarations added so
session helpers can be called from draw_status() before their definitions.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
All per-connection state (socket, buffers, logging, port tracking,
input history, scrollback) moved from global variables into a Session
struct. sessions[MAX_SESSIONS=4] holds the pool; S points to the
active one. CLI mode runs with S=&sessions[0] unchanged.
This is the foundation for multiple simultaneous sessions in the GUI.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Status bar: white-on-blue (was unreadable black-on-cyan with bold)
Layout: left=TermTCP version, center=host+elapsed, right=UTC time+LOG
- Function key bar at bottom: F1=Help F3=Connect F4=Disc F5=Forms
F6=Log F10=Quit — alternating chip/label colors, always visible
- Wire up F1/F3/F4/F5/F6/F10 in handle_key() (no more Ctrl+A required)
- New CP_FKEY color pair (blue on white) for fkey chips
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>