Skip to content

Conversation

@Neragoth
Copy link

  • Add Windows compatibility for terminal width detection
  • Remove console.error statements for cleaner output
  • Remove DEBUG_FONT_INSTALL debug code
  • Remove unnecessary react-devtools-core dependency
  • Fix TypeScript/ESLint warnings
  • Add .gitattributes for consistent line endings (LF)
  • Improve error handling with silent failures

Tested on Windows 11. Unable to test on macOS/Linux platforms.

Capture d'écran 2025-08-18 110320

- Add Windows compatibility for terminal width detection
- Remove console.error statements for cleaner output
- Remove DEBUG_FONT_INSTALL debug code
- Remove unnecessary react-devtools-core dependency
- Fix TypeScript/ESLint warnings
- Add .gitattributes for consistent line endings (LF)
- Improve error handling with silent failures

Tested on Windows 11. Unable to test on macOS/Linux platforms.
@sirmalloc
Copy link
Owner

I'll have to review this a bit tomorrow. I notice you took out the terminal width detection method I was using for POSIX compliant systems. The reason that was in place is because when claude code runs the statusline as a subprocess, the statusline has no ability to directly access TTY properties, so any standard terminal width detection will always report the width as 80 columns. The method I had in place works on POSIX systems to find the parent process's TTY and get the actual width using stty. It's a messy hack, but it's the only option right now to get the full terminal width accurately until Anthropic decides to put it in the JSON passed to the process.

@sirmalloc sirmalloc force-pushed the main branch 2 times, most recently from c440de6 to 8e6b101 Compare August 21, 2025 06:02
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.

2 participants