Skip to content

Add plain-text mode for Windows telnet compatibility#3

Merged
bscott merged 1 commit intomainfrom
v0.2.1
Feb 3, 2026
Merged

Add plain-text mode for Windows telnet compatibility#3
bscott merged 1 commit intomainfrom
v0.2.1

Conversation

@bscott
Copy link
Owner

@bscott bscott commented Feb 3, 2026

Fixes #2

Summary

Adds a --plain-text flag to disable ANSI formatting for Windows telnet compatibility.

Windows telnet has limited ANSI escape sequence support which causes garbled formatting characters. This change provides a plain-text mode that strips all ANSI codes and cursor control sequences.

Changes

  • Add --plain-text CLI flag to disable ANSI formatting
  • Create plain-text formatters without ANSI codes (internal/ui/plaintext.go)
  • Skip cursor control sequences in plain-text mode
  • Update documentation with Windows telnet compatibility guide

Usage

./chat-server --plain-text

Testing

  • All existing tests pass
  • Build succeeds for all platforms
  • Flag appears in --help output

Documentation

  • Updated README.md with Windows telnet compatibility section
  • Updated CLAUDE.md with plain-text mode usage
  • Added --plain-text flag to configuration table

Fixes #2

Windows telnet has limited ANSI escape sequence support which causes
formatting issues. This adds a --plain-text flag that disables all
ANSI formatting for better compatibility.

Changes:
- Add --plain-text CLI flag to disable ANSI formatting
- Create plain-text formatters without ANSI codes
- Skip cursor control sequences in plain-text mode
- Update documentation with Windows telnet compatibility guide
@bscott bscott merged commit 9035c19 into main Feb 3, 2026
1 check passed
@bscott bscott deleted the v0.2.1 branch March 1, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

telnet in Windows character formatting not rendering correctly

1 participant