- Read screen hardcopy output as binary first - Decode with UTF-8 using 'replace' error handling - Fallback to latin-1 encoding if needed - Strip ANSI escape sequences from output - Handles mixed encodings and binary data gracefully This fixes crashes when screen sessions contain non-UTF-8 bytes or terminal control sequences. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| screen_server.py | ||